Google

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CommandOptionParse Class Reference

This is the CommandOptionParse interface class. More...

#include <cmdoptns.h>

List of all members.

Public Methods

virtual ~CommandOptionParse () = 0
 Virtual destructor needed so that the object may be correctly deleted.

virtual bool ArgsHaveError () = 0
 Get the value of the error flag set if the parser encountered errors.

virtual const char* PrintErrors () = 0
 Return a string of text describing the list of errors encountered.

virtual const char* PrintUsage () = 0
 Return a string that contains the usage description of this list of paramaters.

virtual void RegisterError ( const char * err_msg ) = 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.


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(s):
Gianni Mariani <gianni@mariani.ws>


Constructor & Destructor Documentation

CommandOptionParse::~CommandOptionParse ( ) [pure virtual]
 

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


Member Function Documentation

bool CommandOptionParse::ArgsHaveError ( ) [pure virtual]
 

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

void CommandOptionParse::PerformTask ( ) [pure virtual]
 

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

const char * CommandOptionParse::PrintErrors ( ) [pure virtual]
 

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

const char * CommandOptionParse::PrintUsage ( ) [pure virtual]
 

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

void CommandOptionParse::RegisterError ( const char * err_msg ) [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:
Generated at Fri Mar 23 10:47:55 2001 for CommonC++ by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000