![]() |
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. | |
Protected Member Functions | |
| void | substituteSpecialChars (std::string &s, char r, std::string &x) |
| Substitutes the char r for string x in string s. | |
| void DtCmdLine::DocBookOutput::failure | ( | CmdLineInterface & | c, |
| ArgException & | e | ||
| ) | [inline, virtual] |
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().
| void DtCmdLine::DocBookOutput::substituteSpecialChars | ( | std::string & | s, |
| char | r, | ||
| std::string & | x | ||
| ) | [inline, protected] |
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. |
| void DtCmdLine::DocBookOutput::usage | ( | CmdLineInterface & | c | ) | [inline, virtual] |
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().
| void DtCmdLine::DocBookOutput::version | ( | CmdLineInterface & | c | ) | [inline, virtual] |
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().