2 * File automatically generated by
3 * gengen 1.2 by Lorenzo Bettini
4 * http://www.gnu.org/software/gengen
7 #ifndef RESET_GROUP_GEN_CLASS_H
8 #define RESET_GROUP_GEN_CLASS_H
16 class reset_group_gen_class
24 reset_group_gen_class()
28 reset_group_gen_class(const string &_args_info, const string &_body, const string &_name) :
29 args_info (_args_info), body (_body), name (_name)
34 generate_string(const string &s, ostream &stream, unsigned int indent)
36 if (!indent || s.find('\n') == string::npos)
42 string::size_type pos;
43 string::size_type start = 0;
44 string ind (indent, ' ');
45 while ( (pos=s.find('\n', start)) != string::npos)
47 stream << s.substr (start, (pos+1)-start);
49 if (start+1 <= s.size ())
52 if (start+1 <= s.size ())
53 stream << s.substr (start);
56 void set_args_info(const string &_args_info)
58 args_info = _args_info;
61 void set_body(const string &_body)
66 void set_name(const string &_name)
71 void generate_reset_group(ostream &stream, unsigned int indent = 0);
75 #endif // RESET_GROUP_GEN_CLASS_H