2 * File automatically generated by
3 * gengen 1.4.1 by Lorenzo Bettini
4 * http://www.gnu.org/software/gengen
7 #ifndef CLEAR_GIVEN_GEN_CLASS_H
8 #define CLEAR_GIVEN_GEN_CLASS_H
16 class clear_given_gen_class
24 clear_given_gen_class() :
29 clear_given_gen_class(const string &_arg_struct, bool _group, const string &_var_arg) :
30 arg_struct (_arg_struct), group (_group), var_arg (_var_arg)
35 generate_string(const string &s, ostream &stream, unsigned int indent)
37 if (!indent || s.find('\n') == string::npos)
43 string::size_type pos;
44 string::size_type start = 0;
45 string ind (indent, ' ');
46 while ( (pos=s.find('\n', start)) != string::npos)
48 stream << s.substr (start, (pos+1)-start);
50 if (start+1 <= s.size ())
53 if (start+1 <= s.size ())
54 stream << s.substr (start);
57 void set_arg_struct(const string &_arg_struct)
59 arg_struct = _arg_struct;
62 void set_group(bool _group)
67 void set_var_arg(const string &_var_arg)
72 void generate_clear_given(ostream &stream, unsigned int indent = 0);
76 #endif // CLEAR_GIVEN_GEN_CLASS_H