COPASI API
4.16.103
|
#include <COptionParser.h>
Public Member Functions | |
COptionParser (void) | |
default constructor More... | |
void | finalize (void) |
finalize all parsing (eg. check for mandatory options) More... | |
const option_locations & | get_locations (void) const |
get the main option locations More... | |
const std::vector< std::string > & | get_non_options (void) const |
get a list of nonoptions from the command line More... | |
const options & | get_options (void) const |
get the main options More... | |
void | parse (int argc, char *argv[], bool call_finalize=true) |
parse the command line More... | |
void | parse (const char *fileName) |
parse a file More... | |
Private Member Functions | |
void | parse_element (const char *element, int position, opsource source) |
void | parse_long_option (const char *option, int position, opsource source) |
void | parse_short_option (char option, int position, opsource source) |
void | parse_value (const char *value) |
Private Attributes | |
option_locations | locations_ |
std::vector< std::string > | non_options_ |
enum copasi::COptionParser::options_enum | openum_ |
options | options_ |
enum copasi::COptionParser::parser_state | state_ |
the COptionParser class is the main command line parsing class. You can control the name of it using the cxx_class variable.
Definition at line 166 of file COptionParser.h.
|
private |
|
private |
Definition at line 196 of file COptionParser.h.
|
private |
Enumerator | |
---|---|
state_option | |
state_value | |
state_consume |
Definition at line 221 of file COptionParser.h.
copasi::COptionParser::COptionParser | ( | void | ) |
default constructor
Definition at line 74 of file COptionParser.cpp.
References locations_.
finalize all parsing (eg. check for mandatory options)
Definition at line 185 of file COptionParser.cpp.
|
inline |
get the main option locations
Definition at line 190 of file COptionParser.h.
References locations_.
|
inline |
get a list of nonoptions from the command line
Definition at line 182 of file COptionParser.h.
References non_options_.
Referenced by COptions::init().
get the main options
Definition at line 186 of file COptionParser.h.
References options_.
Referenced by COptions::init().
void copasi::COptionParser::parse | ( | int | argc, |
char * | argv[], | ||
bool | call_finalize = true |
||
) |
parse the command line
Definition at line 80 of file COptionParser.cpp.
Referenced by COptions::init(), and main().
void copasi::COptionParser::parse | ( | const char * | fileName | ) |
parse a file
Definition at line 100 of file COptionParser.cpp.
|
private |
Definition at line 229 of file COptionParser.cpp.
|
private |
Definition at line 390 of file COptionParser.cpp.
References copasi::autothrow_help.
|
private |
Definition at line 307 of file COptionParser.cpp.
References copasi::autothrow_help.
|
private |
Definition at line 641 of file COptionParser.cpp.
References copasi::SBMLSchema_L1V1, copasi::SBMLSchema_L1V2, copasi::SBMLSchema_L2V1, copasi::SBMLSchema_L2V2, copasi::SBMLSchema_L2V3, copasi::SBMLSchema_L2V4, and copasi::SBMLSchema_L3V1.
|
private |
Definition at line 194 of file COptionParser.h.
Referenced by COptionParser(), and get_locations().
|
private |
Definition at line 222 of file COptionParser.h.
Referenced by get_non_options().
|
private |
|
private |
Definition at line 193 of file COptionParser.h.
Referenced by get_options().
|
private |