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