2 * File automatically generated by
3 * gengen 1.2 by Lorenzo Bettini
4 * http://www.gnu.org/software/gengen
7 #ifndef UPDATE_GIVEN_GEN_CLASS_H
8 #define UPDATE_GIVEN_GEN_CLASS_H
16 class update_given_gen_class
19 string option_var_name;
22 update_given_gen_class()
26 update_given_gen_class(const string &_option_var_name) :
27 option_var_name (_option_var_name)
32 generate_string(const string &s, ostream &stream, unsigned int indent)
34 if (!indent || s.find('\n') == string::npos)
40 string::size_type pos;
41 string::size_type start = 0;
42 string ind (indent, ' ');
43 while ( (pos=s.find('\n', start)) != string::npos)
45 stream << s.substr (start, (pos+1)-start);
47 if (start+1 <= s.size ())
50 if (start+1 <= s.size ())
51 stream << s.substr (start);
54 void set_option_var_name(const string &_option_var_name)
56 option_var_name = _option_var_name;
59 void generate_update_given(ostream &stream, unsigned int indent = 0);
63 #endif // UPDATE_GIVEN_GEN_CLASS_H