COPASI API  4.40.278
COptions Class Reference

#include <COptions.h>

Classes

class  COptionValue
 
class  COptionValueTemplate
 

Public Types

typedef std::map< std::string, std::string > defaultType
 
typedef std::vector< std::string > nonOptionType
 
typedef std::map< std::string, COptionValue * > optionType
 

Public Member Functions

 ~COptions ()
 

Static Public Member Functions

static void cleanup ()
 
template<class CType >
static bool compareValue (const std::string &name, const CType &value)
 
static std::string getConfigDir (void)
 
static std::string getEnvironmentVariable (const std::string &name)
 
static const nonOptionTypegetNonOptions ()
 
static std::string getPWD (void)
 
template<class CType >
static void getValue (const std::string &name, CType &value)
 
static void init (C_INT argc=0, char *argv[]=NULL)
 
static bool isSet (const std::string &name)
 

Private Member Functions

 COptions ()
 

Static Private Member Functions

static std::string getConfigFile (void)
 
static std::string getCopasiDir (void)
 
static std::string getHome (void)
 
static std::string getTemp (void)
 
template<class CType >
static void setValue (const std::string &name, const CType &value)
 

Static Private Attributes

static nonOptionType mNonOptions
 
static optionType mOptions
 

Detailed Description

COptions class. The class retrieves the options from the commandline and various files. The options as well as their type can be retrieved by name.

Created for Copasi by Stefan Hoops 2002

Member Typedef Documentation

◆ defaultType

typedef std::map< std::string, std::string > COptions::defaultType

◆ nonOptionType

typedef std::vector< std::string > COptions::nonOptionType

◆ optionType

typedef std::map< std::string, COptionValue * > COptions::optionType

Constructor & Destructor Documentation

◆ COptions()

COptions::COptions ( )
private

References CONSTRUCTOR_TRACE.

◆ ~COptions()

COptions::~COptions ( )

References DESTRUCTOR_TRACE.

Member Function Documentation

◆ cleanup()

void COptions::cleanup ( )
static

References mOptions, and pdelete.

Referenced by CRootContainer::destroy().

◆ compareValue()

template<class CType >
static bool COptions::compareValue ( const std::string &  name,
const CType &  value 
)
inlinestatic

References isSet(), and mOptions.

Referenced by CCopasiMessage::handler(), and init().

◆ getConfigDir()

std::string COptions::getConfigDir ( void  )
static

◆ getConfigFile()

std::string COptions::getConfigFile ( void  )
staticprivate

References getValue(), and CDirEntry::Separator.

Referenced by init().

◆ getCopasiDir()

std::string COptions::getCopasiDir ( void  )
staticprivate

◆ getEnvironmentVariable()

std::string COptions::getEnvironmentVariable ( const std::string &  name)
static

◆ getHome()

std::string COptions::getHome ( void  )
staticprivate

References getEnvironmentVariable(), and getTemp().

Referenced by init().

◆ getNonOptions()

const COptions::nonOptionType & COptions::getNonOptions ( )
static

References mNonOptions.

◆ getPWD()

std::string COptions::getPWD ( void  )
static

◆ getTemp()

std::string COptions::getTemp ( void  )
staticprivate

◆ getValue()

◆ init()

◆ isSet()

bool COptions::isSet ( const std::string &  name)
static

References mOptions.

Referenced by compareValue(), and getValue().

◆ setValue()

template<class CType >
static void COptions::setValue ( const std::string &  name,
const CType &  value 
)
inlinestaticprivate

References mOptions.

Referenced by init().

Member Data Documentation

◆ mNonOptions

COptions::nonOptionType COptions::mNonOptions
staticprivate

Referenced by getNonOptions(), and init().

◆ mOptions

COptions::optionType COptions::mOptions
staticprivate

The documentation for this class was generated from the following files: