VR-Link API Documentation for HLA 1.3
Public Member Functions | Protected Member Functions
DtCmdLine::DocBookOutput Class Reference

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:

List of all members.

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.

Detailed Description

A class that generates DocBook output for usage() method for the given CmdLine and its Args.


Member Function Documentation

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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
c- The CmdLine object the output is generated for.

Implements DtCmdLine::CmdLineOutput.

References DtCmdLine::CmdLineInterface::getVersion().


The documentation for this class was generated from the following file:

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)