|
COPASI API
4.40.278
|
#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 (const char *fileName) |
| parse a file More... | |
| void | parse (int argc, char *argv[], bool call_finalize=true) |
| parse the command line 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.
|
private |
|
private |
|
private |
| copasi::COptionParser::COptionParser | ( | void | ) |
default constructor
References locations_.
| void copasi::COptionParser::finalize | ( | void | ) |
finalize all parsing (eg. check for mandatory options)
|
inline |
get the main option locations
References locations_.
|
inline |
get a list of nonoptions from the command line
References non_options_.
Referenced by COptions::init().
|
inline |
| void copasi::COptionParser::parse | ( | const char * | fileName | ) |
parse a file
| void copasi::COptionParser::parse | ( | int | argc, |
| char * | argv[], | ||
| bool | call_finalize = true |
||
| ) |
parse the command line
Referenced by COptions::init().
|
private |
|
private |
References copasi::autothrow_help.
|
private |
References copasi::autothrow_help.
|
private |
|
private |
Referenced by COptionParser(), and get_locations().
|
private |
Referenced by get_non_options().
|
private |
|
private |
Referenced by get_options().
|
private |