X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=utilities%2Fgengetopt%2Fggos.cpp;fp=utilities%2Fgengetopt%2Fggos.cpp;h=11e92a37aecc7b2987b54adc80b74cb0bb72c5c0;hb=79381bc54b9e0c85156460daa211fe5ac83da0a7;hp=0000000000000000000000000000000000000000;hpb=4454c06e212fb6af58d206f2d6f9b76778858967;p=clitk.git diff --git a/utilities/gengetopt/ggos.cpp b/utilities/gengetopt/ggos.cpp new file mode 100644 index 0000000..11e92a3 --- /dev/null +++ b/utilities/gengetopt/ggos.cpp @@ -0,0 +1,35 @@ +// +// C++ Implementation: ggos +// +// Description: +// +// +// Author: Lorenzo Bettini , (C) 2005-2007 +// +// Copyright: See COPYING file that comes with this distribution +// +// + +#include "ggos.h" + +using namespace std; + +gengetopt_option::gengetopt_option() : + short_opt(0), long_opt(0), desc(0), type(ARG_NO), flagstat(-1), + required(1), required_set(false), var_arg(0), default_string(0), + group_value(0), group_desc(0), + mode_value(0), mode_desc(0), + multiple(false), + arg_is_optional(false), hidden(false), type_str(0), + acceptedvalues(0), section(0), section_desc(0), dependon(0), + text_before(0), text_after(0), details(0), filename(0), linenum(0) { +} + +ostream & operator <<(std::ostream &s, gengetopt_option &opt) { + s << "long: " << opt.long_opt << ", short: " << opt.short_opt << "\n" + << "desc: " << opt.desc; + + s << endl; + + return s; +}