iRoCS Toolbox
1.1.0
|
The PrettyOptionPrinter class contains mehtods for pretty printing of commandline options. More...
#include <PrettyOptionPrinter.hh>
Public Member Functions | |
PrettyOptionPrinter (std::ostream &os, int indentColumn=30) | |
int | indentColumn () const |
get / set start column for pretty printing of command line options More... | |
void | printDefListParagraph (const std::string &item, const std::string &description) |
print one paragraph of a definition list. More... | |
void | printHeader (const std::string &header) |
void | printOption (const ParamInfo ¶m) |
pretty print command line option. More... | |
void | printOptions (std::string header, const std::vector< ParamInfo > ¶ms) |
print subHeader and all options contained in the vector. More... | |
void | printSubHeader (const std::string &header) |
void | setIndentColumn (int column) |
The PrettyOptionPrinter class contains mehtods for pretty printing of commandline options.
Definition at line 75 of file PrettyOptionPrinter.hh.
|
inline |
Definition at line 79 of file PrettyOptionPrinter.hh.
void svt::PrettyOptionPrinter::printOption | ( | const ParamInfo & | param | ) |
pretty print command line option.
Description is written as a block starting from prettyPrintDescrColumn()
param | infos from the parameter |
Referenced by PrettyOptionPrinter(), and setIndentColumn().
void svt::PrettyOptionPrinter::printOptions | ( | std::string | header, |
const std::vector< ParamInfo > & | params | ||
) |
print subHeader and all options contained in the vector.
header | header passed to printSubHeader |
params | vector of ParamInfos to be printed |
Referenced by PrettyOptionPrinter().
void svt::PrettyOptionPrinter::printDefListParagraph | ( | const std::string & | item, |
const std::string & | description | ||
) |
print one paragraph of a definition list.
item | item to be defined, e.g. "--gamma value" |
description | text, for this item. Will be intented at indentColumn() and wrapped at column 78 |
Referenced by PrettyOptionPrinter().
|
inline |
Definition at line 125 of file PrettyOptionPrinter.hh.
|
inline |
Definition at line 132 of file PrettyOptionPrinter.hh.
|
inline |
get / set start column for pretty printing of command line options
Definition at line 152 of file PrettyOptionPrinter.hh.
|
inline |
Definition at line 157 of file PrettyOptionPrinter.hh.