2
* File automatically generated by
3
* gengen 1.1 by Lorenzo Bettini
4
* http://www.gnu.org/software/gengen
7
#ifndef MULTIPLE_OPT_STRUCT_GEN_CLASS_H
8
#define MULTIPLE_OPT_STRUCT_GEN_CLASS_H
16
class multiple_opt_struct_gen_class
23
multiple_opt_struct_gen_class()
27
multiple_opt_struct_gen_class(const string &_list_name, const string &_type) :
28
list_name (_list_name), type (_type)
33
generate_string(const string &s, ostream &stream, unsigned int indent)
35
if (!indent || s.find('\n') == string::npos)
41
string::size_type pos;
42
string::size_type start = 0;
43
string ind (indent, ' ');
44
while ( (pos=s.find('\n', start)) != string::npos)
46
stream << s.substr (start, (pos+1)-start);
48
if (start+1 <= s.size ())
51
if (start+1 <= s.size ())
52
stream << s.substr (start);
55
void set_list_name(const string &_list_name)
57
list_name = _list_name;
60
void set_type(const string &_type)
65
void generate_multiple_opt_struct(ostream &stream, unsigned int indent = 0);
69
#endif // MULTIPLE_OPT_STRUCT_GEN_CLASS_H