2 * File automatically generated by
3 * gengen 1.4.1 by Lorenzo Bettini
4 * http://www.gnu.org/software/gengen
7 #ifndef FILE_SAVE_MULTIPLE_GEN_CLASS_H
8 #define FILE_SAVE_MULTIPLE_GEN_CLASS_H
16 class file_save_multiple_gen_class
25 file_save_multiple_gen_class() :
30 file_save_multiple_gen_class(bool _has_arg, const string &_opt_name, const string &_opt_var, const string &_values) :
31 has_arg (_has_arg), opt_name (_opt_name), opt_var (_opt_var), values (_values)
36 generate_string(const string &s, ostream &stream, unsigned int indent)
38 if (!indent || s.find('\n') == string::npos)
44 string::size_type pos;
45 string::size_type start = 0;
46 string ind (indent, ' ');
47 while ( (pos=s.find('\n', start)) != string::npos)
49 stream << s.substr (start, (pos+1)-start);
51 if (start+1 <= s.size ())
54 if (start+1 <= s.size ())
55 stream << s.substr (start);
58 void set_has_arg(bool _has_arg)
63 void set_opt_name(const string &_opt_name)
68 void set_opt_var(const string &_opt_var)
73 void set_values(const string &_values)
78 void generate_file_save_multiple(ostream &stream, unsigned int indent = 0);
82 #endif // FILE_SAVE_MULTIPLE_GEN_CLASS_H