2 * File automatically generated by
3 * gengen 1.2 by Lorenzo Bettini
4 * http://www.gnu.org/software/gengen
7 #ifndef INIT_ARGS_INFO_GEN_CLASS_H
8 #define INIT_ARGS_INFO_GEN_CLASS_H
16 class init_args_info_gen_class
27 init_args_info_gen_class() :
32 init_args_info_gen_class(const string &_help_strings, const string &_max, const string &_min, bool _multiple, const string &_num, const string &_var_arg) :
33 help_strings (_help_strings), max (_max), min (_min), multiple (_multiple), num (_num), var_arg (_var_arg)
38 generate_string(const string &s, ostream &stream, unsigned int indent)
40 if (!indent || s.find('\n') == string::npos)
46 string::size_type pos;
47 string::size_type start = 0;
48 string ind (indent, ' ');
49 while ( (pos=s.find('\n', start)) != string::npos)
51 stream << s.substr (start, (pos+1)-start);
53 if (start+1 <= s.size ())
56 if (start+1 <= s.size ())
57 stream << s.substr (start);
60 void set_help_strings(const string &_help_strings)
62 help_strings = _help_strings;
65 void set_max(const string &_max)
70 void set_min(const string &_min)
75 void set_multiple(bool _multiple)
80 void set_num(const string &_num)
85 void set_var_arg(const string &_var_arg)
90 void generate_init_args_info(ostream &stream, unsigned int indent = 0);
94 #endif // INIT_ARGS_INFO_GEN_CLASS_H