2 * File automatically generated by
3 * gengen 1.2 by Lorenzo Bettini
4 * http://www.gnu.org/software/gengen
7 #ifndef FILE_SAVE_GEN_CLASS_H
8 #define FILE_SAVE_GEN_CLASS_H
16 class file_save_gen_class
29 file_save_gen_class(const string &_arg, const string &_given, const string &_opt_name, const string &_values) :
30 arg (_arg), given (_given), opt_name (_opt_name), values (_values)
35 generate_string(const string &s, ostream &stream, unsigned int indent)
37 if (!indent || s.find('\n') == string::npos)
43 string::size_type pos;
44 string::size_type start = 0;
45 string ind (indent, ' ');
46 while ( (pos=s.find('\n', start)) != string::npos)
48 stream << s.substr (start, (pos+1)-start);
50 if (start+1 <= s.size ())
53 if (start+1 <= s.size ())
54 stream << s.substr (start);
57 void set_arg(const string &_arg)
62 void set_given(const string &_given)
67 void set_opt_name(const string &_opt_name)
72 void set_values(const string &_values)
77 void generate_file_save(ostream &stream, unsigned int indent = 0);
81 #endif // FILE_SAVE_GEN_CLASS_H