X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=cmake%2Fgengetopt%2Fskels%2Fprint_help_string.cc;fp=cmake%2Fgengetopt%2Fskels%2Fprint_help_string.cc;h=9eaa514335e603ff0a545aadcad0d6f724226b30;hb=91eacd1b09351ab508c9688f1071c5ea1e2b01b8;hp=0000000000000000000000000000000000000000;hpb=4e01ca1a00455f4bacc778aca446bbdf2bc1c74d;p=clitk.git diff --git a/cmake/gengetopt/skels/print_help_string.cc b/cmake/gengetopt/skels/print_help_string.cc new file mode 100644 index 0000000..9eaa514 --- /dev/null +++ b/cmake/gengetopt/skels/print_help_string.cc @@ -0,0 +1,43 @@ +/* + * File automatically generated by + * gengen 1.2 by Lorenzo Bettini + * http://www.gnu.org/software/gengen + */ + +#include "print_help_string.h" + +void +print_help_string_gen_class::generate_print_help_string(ostream &stream, unsigned int indent) +{ + string indent_str (indent, ' '); + indent = 0; + + if (shared) + { + generate_string (target, stream, indent + indent_str.length ()); + stream << "["; + generate_string (index, stream, indent + indent_str.length ()); + stream << "] = "; + if (last) + { + stream << "0; "; + } + else + { + generate_string (from, stream, indent + indent_str.length ()); + stream << "["; + generate_string (full_index, stream, indent + indent_str.length ()); + stream << "];"; + } + stream << "\n"; + stream << indent_str; + } + else + { + stream << "\""; + generate_string (helpstring, stream, indent + indent_str.length ()); + stream << "\","; + stream << "\n"; + stream << indent_str; + } +}