2 * File automatically generated by
3 * gengen 1.2 by Lorenzo Bettini
4 * http://www.gnu.org/software/gengen
7 #ifndef CLEAR_ARG_GEN_CLASS_H
8 #define CLEAR_ARG_GEN_CLASS_H
16 class clear_arg_gen_class
26 clear_arg_gen_class() :
27 has_arg (false), has_orig (false)
31 clear_arg_gen_class(bool _has_arg, bool _has_orig, const string &_name, const string &_suffix, const string &_value) :
32 has_arg (_has_arg), has_orig (_has_orig), name (_name), suffix (_suffix), value (_value)
37 generate_string(const string &s, ostream &stream, unsigned int indent)
39 if (!indent || s.find('\n') == string::npos)
45 string::size_type pos;
46 string::size_type start = 0;
47 string ind (indent, ' ');
48 while ( (pos=s.find('\n', start)) != string::npos)
50 stream << s.substr (start, (pos+1)-start);
52 if (start+1 <= s.size ())
55 if (start+1 <= s.size ())
56 stream << s.substr (start);
59 void set_has_arg(bool _has_arg)
64 void set_has_orig(bool _has_orig)
69 void set_name(const string &_name)
74 void set_suffix(const string &_suffix)
79 void set_value(const string &_value)
84 void generate_clear_arg(ostream &stream, unsigned int indent = 0);
88 #endif // CLEAR_ARG_GEN_CLASS_H