gstream-save_input_approver - Man Page
save_input_approver
Synopsis
#include <gstream.h>
void save_input_approver();
Description
A typical use of the input approver system is to temporarily set a home-made approver, launch an input and then get the original settings back. Consequently there is a pair of functions to help you with that, save_input_approver and restore_input_approver.
Saving will backup the currently used approver, so you can continue using it.
gs.save_input_approver(); gs >> my_string; // uses still default approver gs.set_input_approver(ia_my_own); gs >> my_string; // uses ia_my_own approver gs.restore_input_approver(); gs >> my_string; // uses default approver again
See Also
gstream-restore_input_approver(3), gstream-set_input_approver(3), gstream-get_input_approver(3)
Referenced By
gstream-get_input_approver(3), gstream-restore_input_approver(3), gstream-set_input_approver(3).
version 1.6 gstream manual