ROSE 0.11.145.147
|
Functor to print the Unix man page and exit.
This functor is the same as ShowHelp except it also exits with the specified value.
Definition at line 1693 of file Sawyer/CommandLine.h.
#include <Sawyer/CommandLine.h>
Public Types | |
typedef SharedPointer< ShowHelpAndExit > | Ptr |
Reference counting pointer for this class. | |
Public Types inherited from Sawyer::CommandLine::ShowHelp | |
typedef SharedPointer< ShowHelp > | Ptr |
Reference counting pointer for this class. | |
Public Types inherited from Sawyer::CommandLine::SwitchAction | |
typedef SharedPointer< SwitchAction > | Ptr |
Reference counting pointer for this class. | |
Static Public Member Functions | |
static Ptr | instance (int exitStatus) |
Allocating constructor. | |
Static Public Member Functions inherited from Sawyer::CommandLine::ShowHelp | |
static Ptr | instance () |
Allocating constructor. | |
Protected Member Functions | |
ShowHelpAndExit (int exitStatus) | |
Constructor for derived classes. | |
virtual void | operator() (const ParserResult &) |
Protected Member Functions inherited from Sawyer::CommandLine::ShowHelp | |
ShowHelp () | |
Constructor for derived classes. | |
Additional Inherited Members | |
Public Member Functions inherited from Sawyer::CommandLine::SwitchAction | |
void | run (const ParserResult &parserResult) |
Runs the action. | |
Public Member Functions inherited from Sawyer::SharedObject | |
SharedObject () | |
Default constructor. | |
SharedObject (const SharedObject &) | |
Copy constructor. | |
virtual | ~SharedObject () |
Virtual destructor. | |
SharedObject & | operator= (const SharedObject &) |
Assignment. | |
Reference counting pointer for this class.
Definition at line 1700 of file Sawyer/CommandLine.h.
|
inlineprotected |
Constructor for derived classes.
Non-subclass users should use instance instead.
Definition at line 1697 of file Sawyer/CommandLine.h.
|
inlinestatic |
Allocating constructor.
Returns a pointer to a new ShowHelpAndExit object. Users will most likely want to use the showHelpAndExit factory instead, which requires less typing.
Definition at line 1706 of file Sawyer/CommandLine.h.
|
protectedvirtual |
Reimplemented from Sawyer::CommandLine::ShowHelp.