COPASI API
4.16.103
|
#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 | getEnvironmentVariable (const std::string &name) |
static const nonOptionType & | getNonOptions () |
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) |
Private Member Functions | |
COptions () | |
Static Private Member Functions | |
static std::string | getConfigDir (void) |
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 |
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
Definition at line 40 of file COptions.h.
typedef std::map< std::string, std::string > COptions::defaultType |
Definition at line 110 of file COptions.h.
typedef std::vector< std::string > COptions::nonOptionType |
Definition at line 109 of file COptions.h.
typedef std::map< std::string, COptionValue * > COptions::optionType |
Definition at line 108 of file COptions.h.
|
private |
COptions::~COptions | ( | ) |
|
static |
Definition at line 243 of file COptions.cpp.
References mOptions, and pdelete.
Referenced by CCopasiRootContainer::destroy().
|
inlinestatic |
Definition at line 128 of file COptions.h.
References mOptions.
Referenced by CopasiUI3Window::create(), CCopasiMessage::handler(), init(), main(), CopasiUI3Window::openInitialDocument(), and validate().
|
staticprivate |
Definition at line 436 of file COptions.cpp.
References CDirEntry::createDir(), getValue(), and CDirEntry::Separator.
Referenced by init().
|
staticprivate |
Definition at line 448 of file COptions.cpp.
References getValue(), and CDirEntry::Separator.
Referenced by init().
|
staticprivate |
Definition at line 260 of file COptions.cpp.
References CDirEntry::dirName(), getEnvironmentVariable(), MCConfiguration, CCopasiMessage::RAW, and CLocaleString::toUtf8().
Referenced by init().
|
static |
Definition at line 253 of file COptions.cpp.
References CLocaleString::fromUtf8(), and CLocaleString::toUtf8().
Referenced by getCopasiDir(), getHome(), and getTemp().
|
staticprivate |
Definition at line 365 of file COptions.cpp.
References getEnvironmentVariable().
Referenced by init().
|
static |
Definition at line 251 of file COptions.cpp.
References mNonOptions.
Referenced by main(), and CopasiUI3Window::openInitialDocument().
|
static |
Definition at line 338 of file COptions.cpp.
References CLocaleString::toUtf8().
Referenced by init(), and Copasi2SBMLTranslator::translateToSBML().
|
staticprivate |
Definition at line 393 of file COptions.cpp.
References CDirEntry::createDir(), getEnvironmentVariable(), CDirEntry::isDir(), CDirEntry::isWritable(), and CDirEntry::Separator.
Referenced by init().
|
inlinestatic |
Definition at line 124 of file COptions.h.
References mOptions.
Referenced by CRecentFiles::addFile(), CCopasiDataModel::autoSave(), CopasiUI3Window::CleanUp(), exportSBML(), CCopasiDataModel::exportSBML(), getConfigDir(), getConfigFile(), CCopasiDataModel::importSBML(), init(), CConfigurationFile::load(), CConfigurationFile::CXML::load(), CCopasiDataModel::loadModel(), main(), DataModelGUI::miriamDownloadFinished(), CDirEntry::normalize(), CopasiFileDialog::openExampleDir(), CopasiUI3Window::openInitialDocument(), CConfigurationFile::save(), CCopasiDataModel::saveModel(), Copasi2SBMLTranslator::translate(), WizardDialog::WizardDialog(), and writeLogo().
Definition at line 56 of file COptions.cpp.
References C_INT, compareValue(), copasi::options::ConfigDir, copasi::options::ConfigFile, copasi::options::CopasiDir, CDirEntry::dirName(), copasi::options::ExportBerkeleyMadonna, copasi::options::ExportC, copasi::options::ExportSBML, copasi::options::ExportXPPAUT, copasi::COptionParser::get_non_options(), copasi::COptionParser::get_options(), getConfigDir(), getConfigFile(), getCopasiDir(), getHome(), getPWD(), getTemp(), getValue(), copasi::options::Home, copasi::options::ImportSBML, CDirEntry::isRelativePath(), copasi::options::License, CDirEntry::makePathAbsolute(), copasi::options::MaxTime, mNonOptions, copasi::options::NoLogo, copasi::COptionParser::parse(), copasi::options::Save, copasi::options::SBMLSchema, setValue(), copasi::options::Tmp, CLocaleString::toUtf8(), copasi::options::Validate, and copasi::options::Verbose.
Referenced by CCopasiRootContainer::init().
|
inlinestaticprivate |
|
staticprivate |
Definition at line 115 of file COptions.h.
Referenced by getNonOptions(), and init().
|
staticprivate |
Definition at line 114 of file COptions.h.
Referenced by cleanup(), compareValue(), getValue(), and setValue().