2 * File automatically generated by
3 * gengen 1.2 by Lorenzo Bettini
4 * http://www.gnu.org/software/gengen
7 #ifndef MULTIPLE_OPT_LIST_GEN_CLASS_H
8 #define MULTIPLE_OPT_LIST_GEN_CLASS_H
16 class multiple_opt_list_gen_class
22 multiple_opt_list_gen_class()
26 multiple_opt_list_gen_class(const string &_arg_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_arg_name(const string &_arg_name)
59 void generate_multiple_opt_list(ostream &stream, unsigned int indent = 0);
63 #endif // MULTIPLE_OPT_LIST_GEN_CLASS_H