|
tclap 1.4.0
|
A class that generates DocBook output for usage() method for the given CmdLine and its Args. More...
#include <DocBookOutput.h>


Public Member Functions | |
| virtual void | usage (CmdLineInterface &c) |
| Prints the usage to stdout. | |
| virtual void | version (CmdLineInterface &c) |
| Prints the version to stdout. | |
| virtual void | failure (CmdLineInterface &c, ArgException &e) |
| Prints (to stderr) an error message, short usage Can be overridden to produce alternative behavior. | |
| DocBookOutput () | |
Public Member Functions inherited from TCLAP::CmdLineOutput | |
| virtual | ~CmdLineOutput () |
| Virtual destructor. | |
Protected Member Functions | |
| void | substituteSpecialChars (std::string &s, char r, const std::string &x) const |
| Substitutes the char r for string x in string s. | |
| void | removeChar (std::string &s, char r) const |
| void | printShortGroup (const ArgGroup &group, bool labelsOnly) |
| void | printShortArg (Arg *it, bool required) |
| void | printLongArg (const ArgGroup &it) const |
Static Protected Member Functions | |
| static std::string | escapeXml (const std::string &text) |
| static std::string | valueLabel (const Arg &arg) |
| static bool | hasVisiblePositional (const ArgGroup &group) |
Protected Attributes | |
| char | theDelimiter |
A class that generates DocBook output for usage() method for the given CmdLine and its Args.
Definition at line 44 of file DocBookOutput.h.
|
inline |
Definition at line 68 of file DocBookOutput.h.
|
inlinestaticprotected |
Definition at line 72 of file DocBookOutput.h.
Referenced by printShortArg(), and usage().
|
inlinevirtual |
Prints (to stderr) an error message, short usage Can be overridden to produce alternative behavior.
| c | - The CmdLine object the output is generated for. |
| e | - The ArgException that caused the failure. |
Implements TCLAP::CmdLineOutput.
Definition at line 268 of file DocBookOutput.h.
References TCLAP::ArgException::what().

|
inlinestaticprotected |
Definition at line 114 of file DocBookOutput.h.
References TCLAP::ArgGroup::begin(), and TCLAP::ArgGroup::end().

|
inlineprotected |
Definition at line 317 of file DocBookOutput.h.
References TCLAP::ArgGroup::begin(), TCLAP::CountVisibleArgs(), TCLAP::ArgGroup::end(), TCLAP::ArgGroup::isRequired(), and TCLAP::Arg::visibleInHelp().
Referenced by usage().

|
inlineprotected |
Definition at line 290 of file DocBookOutput.h.
References TCLAP::Arg::acceptsMultipleValues(), escapeXml(), TCLAP::Arg::flagStartChar(), TCLAP::Arg::getFlag(), TCLAP::Arg::getName(), TCLAP::Arg::hasLabel(), TCLAP::Arg::isValueRequired(), and TCLAP::Arg::nameStartString().
Referenced by printShortGroup().

|
inlineprotected |
Definition at line 154 of file DocBookOutput.h.
References TCLAP::ArgGroup::begin(), TCLAP::ArgGroup::end(), TCLAP::Arg::hasLabel(), TCLAP::Arg::isRequired(), TCLAP::ArgGroup::isRequired(), printShortArg(), and TCLAP::Arg::visibleInHelp().

|
inlineprotected |
Definition at line 283 of file DocBookOutput.h.
|
inlineprotected |
Substitutes the char r for string x in string s.
| s | - The string to operate on. |
| r | - The char to replace. |
| x | - What to replace r with. |
Definition at line 274 of file DocBookOutput.h.
|
inlinevirtual |
Prints the usage to stdout.
Can be overridden to produce alternative behavior.
| c | - The CmdLine object the output is generated for. |
Implements TCLAP::CmdLineOutput.
Definition at line 168 of file DocBookOutput.h.
References escapeXml(), TCLAP::CmdLineInterface::getArgGroups(), TCLAP::CmdLineInterface::getDelimiter(), TCLAP::CmdLineInterface::getMessage(), TCLAP::CmdLineInterface::getProgramName(), TCLAP::CmdLineInterface::getVersion(), printLongArg(), and theDelimiter.

|
inlinestaticprotected |
Definition at line 87 of file DocBookOutput.h.
References TCLAP::Arg::flagStartString(), TCLAP::Arg::getFlag(), TCLAP::Arg::getName(), TCLAP::Arg::nameStartString(), and TCLAP::Arg::shortID().

|
inlinevirtual |
Prints the version to stdout.
Can be overridden to produce alternative behavior.
| c | - The CmdLine object the output is generated for. |
Implements TCLAP::CmdLineOutput.
Definition at line 136 of file DocBookOutput.h.
References TCLAP::CmdLineInterface::getVersion().

|
protected |
Definition at line 123 of file DocBookOutput.h.
Referenced by usage().