]> Creatis software - clitk.git/blob - cmake/gengetopt/ggos.cpp
Added FindGengetopt.cmake which compiles gengetopt if not installed.
[clitk.git] / cmake / gengetopt / ggos.cpp
1 //
2 // C++ Implementation: ggos
3 //
4 // Description:
5 //
6 //
7 // Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2005-2007
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12
13 #include "ggos.h"
14
15 using namespace std;
16
17 gengetopt_option::gengetopt_option() :
18     short_opt(0), long_opt(0), desc(0), type(ARG_NO), flagstat(-1),
19             required(1), required_set(false), var_arg(0), default_string(0),
20             group_value(0), group_desc(0),
21             mode_value(0), mode_desc(0),
22             multiple(false),
23             arg_is_optional(false), hidden(false), type_str(0),
24             acceptedvalues(0), section(0), section_desc(0), dependon(0),
25             text_before(0), text_after(0), details(0), filename(0), linenum(0) {
26 }
27
28 ostream & operator <<(std::ostream &s, gengetopt_option &opt) {
29     s << "long: " << opt.long_opt << ", short: " << opt.short_opt << "\n"
30             << "desc: " << opt.desc;
31
32     s << endl;
33
34     return s;
35 }