Bayonne2 / Common C++ 2 Framework
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
CommandOptionParse Class Referenceabstract

This is the CommandOptionParse interface class. More...

#include <cmdoptns.h>

Public Member Functions

virtual ~CommandOptionParse ()=0
 Virtual destructor needed so that the object may be correctly deleted. More...
 
virtual bool argsHaveError ()=0
 Get the value of the error flag set if the parser encountered errors. More...
 
virtual const char * printErrors ()=0
 Return a string of text describing the list of errors encountered. More...
 
virtual const char * printUsage ()=0
 Return a string that contains the usage description of this list of paramaters. More...
 
virtual void registerError (const char *errMsg)=0
 Register an error with this parser. More...
 
virtual void performTask ()=0
 The method should be invoked by the main code once it has determined that the application should be started. More...
 

Detailed Description

This is the CommandOptionParse interface class.

To implement this object you can call makeCommandOptionParse(); This will instantiate a dynamically allocated version of this class and parse the command line for the list of command options that are passed in.

Author
Gianni Mariani giann.nosp@m.i@ma.nosp@m.riani.nosp@m..ws

Definition at line 390 of file cmdoptns.h.

Constructor & Destructor Documentation

virtual CommandOptionParse::~CommandOptionParse ( )
pure virtual

Virtual destructor needed so that the object may be correctly deleted.

Member Function Documentation

virtual bool CommandOptionParse::argsHaveError ( )
pure virtual

Get the value of the error flag set if the parser encountered errors.

virtual void CommandOptionParse::performTask ( )
pure virtual

The method should be invoked by the main code once it has determined that the application should be started.

virtual const char* CommandOptionParse::printErrors ( )
pure virtual

Return a string of text describing the list of errors encountered.

virtual const char* CommandOptionParse::printUsage ( )
pure virtual

Return a string that contains the usage description of this list of paramaters.

virtual void CommandOptionParse::registerError ( const char *  errMsg)
pure virtual

Register an error with this parser.

This string will be appended to the errors already buffered in this object.


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