| 
    ROSE 0.11.145.357
    
   | 
 
Functor to print a version string and exit.
This functor does the same thing as ShowVersion, but then it exits the program with the specified status.
Definition at line 1639 of file Sawyer/CommandLine.h.
#include <Sawyer/CommandLine.h>


Public Types | |
| typedef SharedPointer< ShowVersionAndExit > | Ptr | 
| Reference counting pointer for this class.   | |
  Public Types inherited from Sawyer::CommandLine::ShowVersion | |
| typedef SharedPointer< ShowVersion > | 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 (const std::string &versionString, int exitStatus) | 
| Allocating constructor.   | |
  Static Public Member Functions inherited from Sawyer::CommandLine::ShowVersion | |
| static Ptr | instance (const std::string &versionString) | 
| Allocating constructor.   | |
Protected Member Functions | |
| ShowVersionAndExit (const std::string &versionString, int exitStatus) | |
| Constructor for derived classes.   | |
| virtual void | operator() (const ParserResult &) | 
  Protected Member Functions inherited from Sawyer::CommandLine::ShowVersion | |
| ShowVersion (const std::string &versionString) | |
| 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 1649 of file Sawyer/CommandLine.h.
      
  | 
  explicitprotected | 
Constructor for derived classes.
Non-subclass users should use instance instead.
      
  | 
  static | 
Allocating constructor.
Returns a pointer to a new ShowVersionAndExit object. Uses will most likely want to use the showVersionAndExit factory instead, which requires less typing.
      
  | 
  protectedvirtual | 
Reimplemented from Sawyer::CommandLine::ShowVersion.