copasi API
0.1
|
#include <COptions.h>
Classes | |
class | COptionValue |
class | COptionValueTemplate |
Public Types | |
typedef std::map< std::string, COptionValue * > | optionType |
typedef std::vector< std::string > | nonOptionType |
typedef std::map< std::string, std::string > | defaultType |
Public Member Functions | |
~COptions () | |
Static Public Member Functions | |
template<class CType > | |
static void | getValue (const std::string &name, CType &value) |
template<class CType > | |
static bool | compareValue (const std::string &name, const CType &value) |
static void | init (C_INT argc=0, char *argv[]=NULL) |
static void | cleanup () |
static const nonOptionType & | getNonOptions () |
static std::string | getEnvironmentVariable (const std::string &name) |
static std::string | getPWD (void) |
COptions class. The class retrieves the options from the commandline and various files. The options as well as their type can be retreived by name.
Created for Copasi by Stefan Hoops 2002
typedef std::map< std::string, std::string > COptions::defaultType |
typedef std::vector< std::string > COptions::nonOptionType |
typedef std::map< std::string, COptionValue * > COptions::optionType |
COptions::~COptions | ( | ) |
void COptions::cleanup | ( | ) | [static] |
static bool COptions::compareValue | ( | const std::string & | name, |
const CType & | value | ||
) | [inline, static] |
std::string COptions::getEnvironmentVariable | ( | const std::string & | name | ) | [static] |
const COptions::nonOptionType & COptions::getNonOptions | ( | ) | [static] |
std::string COptions::getPWD | ( | void | ) | [static] |
static void COptions::getValue | ( | const std::string & | name, |
CType & | value | ||
) | [inline, static] |
void COptions::init | ( | C_INT | argc = 0 , |
char * | argv[] = NULL |
||
) | [static] |