#include <StdOutput.h>
Inheritance diagram for TCLAP::StdOutput:
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 | _shortUsage (CmdLineInterface &c, std::ostream &os) const |
Writes a brief usage message with short args. | |
void | _longUsage (CmdLineInterface &c, std::ostream &os) const |
Writes a longer usage message with long and short args, provides descriptions and prints message. | |
void | spacePrint (std::ostream &os, const std::string &s, int maxWidth, int indentSpaces, int secondLineOffset) const |
This function inserts line breaks and indents long strings according the params input. |
Definition at line 43 of file StdOutput.h.
|
Writes a longer usage message with long and short args, provides descriptions and prints message.
Definition at line 191 of file StdOutput.h. References TCLAP::ArgListIterator, TCLAP::ArgVectorIterator, TCLAP::XorHandler::contains(), TCLAP::CmdLineInterface::getArgList(), TCLAP::CmdLineInterface::getMessage(), TCLAP::CmdLineInterface::getXorHandler(), TCLAP::XorHandler::getXorList(), and spacePrint(). Referenced by usage(). |
Here is the call graph for this function:
|
Writes a brief usage message with short args.
Definition at line 156 of file StdOutput.h. References TCLAP::ArgListIterator, TCLAP::ArgVectorIterator, TCLAP::XorHandler::contains(), TCLAP::CmdLineInterface::getArgList(), TCLAP::CmdLineInterface::getProgramName(), TCLAP::CmdLineInterface::getXorHandler(), TCLAP::XorHandler::getXorList(), and spacePrint(). |
Here is the call graph for this function:
|
Prints (to stderr) an error message, short usage Can be overridden to produce alternative behavior.
Implements TCLAP::CmdLineOutput. Definition at line 131 of file StdOutput.h. References _shortUsage(), TCLAP::ArgException::argId(), TCLAP::ArgException::error(), TCLAP::CmdLineInterface::getProgramName(), TCLAP::CmdLineInterface::hasHelpAndVersion(), and usage(). |
Here is the call graph for this function:
|
This function inserts line breaks and indents long strings according the params input. It will only break lines at spaces, commas and pipes.
Definition at line 229 of file StdOutput.h. Referenced by _longUsage(), and _shortUsage(). |
|
Prints the usage to stdout. Can be overridden to produce alternative behavior.
Implements TCLAP::CmdLineOutput. Definition at line 117 of file StdOutput.h. References _longUsage(), and _shortUsage(). Referenced by failure(). |
Here is the call graph for this function:
|
Prints the version to stdout. Can be overridden to produce alternative behavior.
Implements TCLAP::CmdLineOutput. Definition at line 108 of file StdOutput.h. References TCLAP::CmdLineInterface::getProgramName(), TCLAP::CmdLineInterface::getVersion(), and version(). Referenced by version(). |
Here is the call graph for this function: