![]() |
VR-Link API Documentation for HLA Evolved
|
A class that generates DocBook output for usage() method for the given CmdLine and its Args. More...
Inheritance diagram for DtCmdLine::DocBookOutput:
Collaboration diagram for DtCmdLine::DocBookOutput: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. | |
Public Member Functions inherited from DtCmdLine::CmdLineOutput | |
| CmdLineOutput () | |
| virtual | ~CmdLineOutput () |
Protected Member Functions | |
| void | substituteSpecialChars (std::string &s, char r, std::string &x) |
| Substitutes the char r for string x in string s. | |
|
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 DtCmdLine::CmdLineOutput.
References DtCmdLine::ArgException::what().
|
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. |
|
inlinevirtual |
Prints the usage to stdout.
Can be overridden to produce alternative behavior.
| c | - The CmdLine object the output is generated for. |
Implements DtCmdLine::CmdLineOutput.
References DtCmdLine::XorHandler::contains(), DtCmdLine::CmdLineInterface::getArgList(), DtCmdLine::CmdLineInterface::getProgramName(), DtCmdLine::CmdLineInterface::getXorHandler(), and DtCmdLine::XorHandler::getXorList().
|
inlinevirtual |
Prints the version to stdout.
Can be overridden to produce alternative behavior.
| c | - The CmdLine object the output is generated for. |
Implements DtCmdLine::CmdLineOutput.
References DtCmdLine::CmdLineInterface::getVersion().