copasi API
0.1
|
#include <COptionParser.h>
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 options & | get_options (void) const |
get the main options | |
const option_locations & | get_locations (void) const |
get the main option locations |
the COptionParser class is the main command line parsing class. You can control the name of it using the cxx_class variable.
copasi::COptionParser::COptionParser | ( | void | ) |
default constructor
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