copasi API  0.1
Public Member Functions
copasi::COptionParser Class Reference

#include <COptionParser.h>

List of all members.

Public Member Functions

 COptionParser (void)
 default constructor
void parse (int argc, char *argv[], bool call_finalize=true)
 parse the command line
void parse (const char *fileName)
 parse a file
void finalize (void)
 finalize all parsing (eg. check for mandatory options)
const std::vector< std::string > & get_non_options (void) const
 get a list of nonoptions from the command line
const optionsget_options (void) const
 get the main options
const option_locationsget_locations (void) const
 get the main option locations

Detailed Description

the COptionParser class is the main command line parsing class. You can control the name of it using the cxx_class variable.


Constructor & Destructor Documentation

copasi::COptionParser::COptionParser ( void  )

default constructor


Member Function Documentation

void copasi::COptionParser::finalize ( void  )

finalize all parsing (eg. check for mandatory options)

const option_locations& copasi::COptionParser::get_locations ( void  ) const [inline]

get the main option locations

const std::vector<std::string>& copasi::COptionParser::get_non_options ( void  ) const [inline]

get a list of nonoptions from the command line

const options& copasi::COptionParser::get_options ( void  ) const [inline]

get the main options

void copasi::COptionParser::parse ( int  argc,
char *  argv[],
bool  call_finalize = true 
)

parse the command line

void copasi::COptionParser::parse ( const char *  fileName)

parse a file


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines