1save_input_approver(3)          gstream manual          save_input_approver(3)
2
3
4

NAME

6       save_input_approver
7

SYNOPSIS

9       #include <gstream.h>
10
11
12       void save_input_approver();
13

DESCRIPTION

15       A  typical  use  of  the  input approver system is to temporarily set a
16       home-made approver, launch an input and then get the original  settings
17       back.  Consequently there is a pair of functions to help you with that,
18       save_input_approver and restore_input_approver.
19
20       Saving will backup the currently used approver,  so  you  can  continue
21       using it.
22
23          gs.save_input_approver();
24          gs >> my_string;           // uses still default approver
25          gs.set_input_approver(ia_my_own);
26          gs >> my_string;           // uses ia_my_own approver
27          gs.restore_input_approver();
28          gs >> my_string;           // uses default approver again
29
30
31
32

SEE ALSO

34       gstream-restore_input_approver(3),       gstream-set_input_approver(3),
35       gstream-get_input_approver(3)
36
37
38
39gstream                           version 1.6           save_input_approver(3)
Impressum