|
tclap 1.2.2
|
A class that generates a Zsh completion function as output from the usage() method for the given CmdLine and its Args. More...
#include <ZshCompletionOutput.h>


Public Member Functions | |
| ZshCompletionOutput () | |
| 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 TCLAP::CmdLineOutput | |
| virtual | ~CmdLineOutput () |
| Virtual destructor. | |
Protected Member Functions | |
| void | basename (std::string &s) |
| void | quoteSpecialChars (std::string &s) |
| std::string | getMutexList (CmdLineInterface &_cmd, Arg *a) |
| void | printOption (Arg *it, std::string mutex) |
| void | printArg (Arg *it) |
Protected Attributes | |
| std::map< std::string, std::string > | common |
| char | theDelimiter |
A class that generates a Zsh completion function as output from the usage() method for the given CmdLine and its Args.
Definition at line 49 of file ZshCompletionOutput.h.
| TCLAP::ZshCompletionOutput::ZshCompletionOutput | ( | ) |
Definition at line 92 of file ZshCompletionOutput.h.
References common.
|
inlineprotected |
Definition at line 161 of file ZshCompletionOutput.h.
References TCLAP::DelPtr().
Referenced by 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 135 of file ZshCompletionOutput.h.
References TCLAP::DelPtr().

|
inlineprotected |
Definition at line 283 of file ZshCompletionOutput.h.
References TCLAP::DelPtr(), TCLAP::CmdLineInterface::getXorHandler(), and TCLAP::XorHandler::getXorList().
Referenced by usage().

Definition at line 170 of file ZshCompletionOutput.h.
References common, and TCLAP::DelPtr().
Referenced by usage().

Definition at line 196 of file ZshCompletionOutput.h.
References common, TCLAP::DelPtr(), quoteSpecialChars(), and theDelimiter.
Referenced by usage().

|
inlineprotected |
Definition at line 142 of file ZshCompletionOutput.h.
References TCLAP::DelPtr().
Referenced by printOption().

|
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 112 of file ZshCompletionOutput.h.
References basename(), TCLAP::DelPtr(), TCLAP::CmdLineInterface::getArgList(), TCLAP::CmdLineInterface::getDelimiter(), getMutexList(), TCLAP::CmdLineInterface::getProgramName(), TCLAP::CmdLineInterface::getVersion(), printArg(), printOption(), and theDelimiter.

|
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 107 of file ZshCompletionOutput.h.
References TCLAP::CmdLineInterface::getVersion().

|
protected |
Definition at line 88 of file ZshCompletionOutput.h.
Referenced by printArg(), printOption(), and ZshCompletionOutput().
|
protected |
Definition at line 89 of file ZshCompletionOutput.h.
Referenced by printOption(), and usage().