Package Name Options [MethodTree]  [MethodInterface]  [DependencyListing]  
  Class name : OptionParser
  • Source file :
../options.h
  Namespace : Options
 Use :
    This C++ class has been declared in a nested namespace. To create an instance of this class would require the use of using declaration as follows:
    using namespace Options;
  Description :
 Class comments :
    A class for parsing command line arguments
 Version :
  • 1.0b, Nov., 2000.
 Author :
  • Dave Flitney
 Class construction :
 Class destruction :
    Warning: The destructor declared for this class is non-virtual. If this class will be used as a base class, for some class, then make sure that the destructor is declared " virtual " in the class declaration.
  Method tree :
Top  Top
  Method interface :
 Public :
  Dependency listing :
Top  Top
  Public method:
  • Number of arguments : 2


  • Exception specification : This method can throw any type of exception.
Previous  Back
  Public method:
  • Number of arguments : 1


  • Exception specification : This method can throw any type of exception.
Previous  Back
  Public method:
    void usage(void)
  • Number of arguments : None.
  • Exception specification : This method can throw any type of exception.
Previous  Back
  Public method:
    bool check_compulsory_arguments(bool verbose=false)
  • Number of arguments : 1


  • Exception specification : This method can throw any type of exception.
 Return description :
    true if all compulsory arguments have been set and false otherwise
Previous  Back
  Public method:
  • Number of arguments : 2


  • Exception specification : This method allows 3 exception types to be thrown.
  • Exception argument type specifier : X_OptionError
    Exception argument type description : Class.

  • Exception argument type specifier : X_UnknownOptions
    Exception argument type description : Class.

  • Exception argument type specifier : X_MissingArguments
    Exception argument type description : Class.

Previous  Back
  Public method:
    ~OptionParser()
  • Number of arguments : None.
  • Exception specification : This method can throw any type of exception.
Previous  Back