50 #ifndef PRETTYOPTIONPRINTER_HH 51 #define PRETTYOPTIONPRINTER_HH 107 const std::vector<ParamInfo>& params);
121 const std::string& description);
127 _os << header <<
"\n";
136 << std::string( header.size(),
'-') <<
"\n";
154 return _indentColumn;
159 _indentColumn = column;
163 template<
typename LIST>
164 void printTypeHelp( std::string key)
const 166 std::map<std::string, std::string> nameDescriptionMap;
169 for( std::map<std::string,std::string>::const_iterator p =
170 nameDescriptionMap.begin();
171 p != nameDescriptionMap.end(); ++p)
void printDefListParagraph(const std::string &item, const std::string &description)
print one paragraph of a definition list.
int indentColumn() const
get / set start column for pretty printing of command line options
void printOptions(std::string header, const std::vector< ParamInfo > ¶ms)
print subHeader and all options contained in the vector.
void printOption(const ParamInfo ¶m)
pretty print command line option.
PrettyOptionPrinter(std::ostream &os, int indentColumn=30)
void printHeader(const std::string &header)
The PrettyOptionPrinter class contains mehtods for pretty printing of commandline options...
void printSubHeader(const std::string &header)
The ParamInfo class contains informations about one parameter like key, help text, guiHints etc.
void setIndentColumn(int column)