2 * File automatically generated by
3 * gengen 1.3 by Lorenzo Bettini
4 * http://www.gnu.org/software/gengen
7 #include "option_arg.h"
10 option_arg_gen_class::generate_option_arg(ostream &stream, unsigned int indent)
12 string indent_str (indent, ' ');
17 stream << "#ifdef HAVE_LONG_LONG";
20 generate_string (type, stream, indent + indent_str.length ());
22 generate_string (name, stream, indent + indent_str.length ());
23 stream << "_arg; /**< ";
26 generate_string (desc, stream, indent + indent_str.length ());
29 stream << " (default=";
30 generate_string (default_value, stream, indent + indent_str.length ());
39 generate_string (longtype, stream, indent + indent_str.length ());
41 generate_string (name, stream, indent + indent_str.length ());
42 stream << "_arg; /**< ";
45 generate_string (desc, stream, indent + indent_str.length ());
48 stream << " (default=";
49 generate_string (default_value, stream, indent + indent_str.length ());
58 generate_string (origtype, stream, indent + indent_str.length ());
60 generate_string (name, stream, indent + indent_str.length ());
61 stream << "_orig; /**< ";
64 generate_string (desc, stream, indent + indent_str.length ());
65 stream << " original value given at command line. */";
73 generate_string (type, stream, indent + indent_str.length ());
75 generate_string (name, stream, indent + indent_str.length ());
76 stream << "_flag; /**< ";
79 generate_string (desc, stream, indent + indent_str.length ());
80 stream << " (default=";
99 stream << "enum enum_";
100 generate_string (name, stream, indent + indent_str.length ());
106 generate_string (name, stream, indent + indent_str.length ());
107 stream << "_arg; /**< ";
110 generate_string (desc, stream, indent + indent_str.length ());
113 stream << " (default='";
114 generate_string (default_value, stream, indent + indent_str.length ());
119 stream << indent_str;
123 generate_string (type, stream, indent + indent_str.length ());
125 generate_string (name, stream, indent + indent_str.length ());
126 stream << "_arg; /**< ";
129 generate_string (desc, stream, indent + indent_str.length ());
132 stream << " (default='";
133 generate_string (default_value, stream, indent + indent_str.length ());
138 stream << indent_str;
140 generate_string (origtype, stream, indent + indent_str.length ());
142 generate_string (name, stream, indent + indent_str.length ());
143 stream << "_orig; /**< ";
146 generate_string (desc, stream, indent + indent_str.length ());
147 stream << " original value given at command line. */";
149 stream << indent_str;
155 stream << "unsigned int ";
156 generate_string (name, stream, indent + indent_str.length ());
157 stream << "_min; /**< ";
160 generate_string (desc, stream, indent + indent_str.length ());
161 stream << "'s minimum occurreces */";
163 stream << indent_str;
164 stream << "unsigned int ";
165 generate_string (name, stream, indent + indent_str.length ());
166 stream << "_max; /**< ";
169 generate_string (desc, stream, indent + indent_str.length ());
170 stream << "'s maximum occurreces */";
172 stream << indent_str;
174 stream << "const char *";
175 generate_string (name, stream, indent + indent_str.length ());
176 stream << "_help; /**< ";
179 generate_string (desc, stream, indent + indent_str.length ());
180 stream << " help description. */";
182 stream << indent_str;