COPASI API
4.16.103
|
#include <CCopasiObjectName.h>
Public Member Functions | |
CCopasiObjectName () | |
CCopasiObjectName (const std::string &name) | |
CCopasiObjectName (const CCopasiObjectName &src) | |
std::string::size_type | findEx (const std::string &toFind, const std::string::size_type &pos=0) const |
size_t | getElementIndex (const size_t &pos=0) const |
std::string | getElementName (const size_t &pos, const bool &unescape=true) const |
std::string | getObjectName () const |
std::string | getObjectType () const |
CCopasiObjectName | getPrimary () const |
CCopasiObjectName | getRemainder () const |
~CCopasiObjectName () | |
Static Public Member Functions | |
static std::string | escape (const std::string &name) |
static std::string | unescape (const std::string &name) |
Class CCopasiObjectName
This class is the class for handling Copasi object names.
Copyright Stefan Hoops 2002
Definition at line 32 of file CCopasiObjectName.h.
CCopasiObjectName::CCopasiObjectName | ( | ) |
Definition at line 40 of file CCopasiObjectName.cpp.
Referenced by getRemainder().
CCopasiObjectName::CCopasiObjectName | ( | const std::string & | name | ) |
Definition at line 44 of file CCopasiObjectName.cpp.
CCopasiObjectName::CCopasiObjectName | ( | const CCopasiObjectName & | src | ) |
Definition at line 48 of file CCopasiObjectName.cpp.
CCopasiObjectName::~CCopasiObjectName | ( | ) |
Definition at line 52 of file CCopasiObjectName.cpp.
|
static |
Definition at line 126 of file CCopasiObjectName.cpp.
References toBeEscaped.
Referenced by CExperiment::compile(), CCopasiParameter::getCN(), CCopasiObject::getCN(), and CCopasiObject::setObjectName().
std::string::size_type CCopasiObjectName::findEx | ( | const std::string & | toFind, |
const std::string::size_type & | pos = 0 |
||
) | const |
Definition at line 159 of file CCopasiObjectName.cpp.
Referenced by getElementName(), getObjectName(), getObjectType(), getPrimary(), and getRemainder().
size_t CCopasiObjectName::getElementIndex | ( | const size_t & | pos = 0 | ) | const |
Definition at line 86 of file CCopasiObjectName.cpp.
References C_INVALID_INDEX, and getElementName().
Referenced by CCopasiVector< CLGeneralGlyph >::getObject(), and CArrayElementReference::getValuePointer().
std::string CCopasiObjectName::getElementName | ( | const size_t & | pos, |
const bool & | unescape = true |
||
) | const |
Definition at line 104 of file CCopasiObjectName.cpp.
References findEx(), getPrimary(), and unescape().
Referenced by getElementIndex(), CCopasiContainer::getObject(), CArrayAnnotation::getObject(), CCopasiVectorN< CReportDefinition >::getObject(), CArrayElementReference::getValuePointer(), and CModelParameter::nameFromCN().
std::string CCopasiObjectName::getObjectName | ( | ) | const |
Definition at line 74 of file CCopasiObjectName.cpp.
References findEx(), getPrimary(), and unescape().
Referenced by CCopasiContainer::getObject(), CCopasiParameterGroup::getObject(), CCopasiVector< CLGeneralGlyph >::getObject(), CCopasiVectorN< CReportDefinition >::getObject(), and CModelParameter::nameFromCN().
std::string CCopasiObjectName::getObjectType | ( | ) | const |
Definition at line 67 of file CCopasiObjectName.cpp.
References findEx(), getPrimary(), and unescape().
Referenced by CModelParameterReactionParameter::compile(), CCopasiContainer::getObject(), CCopasiVector< CLGeneralGlyph >::getObject(), CCopasiVectorN< CReportDefinition >::getObject(), and CModelExpansion::updateExpression().
CCopasiObjectName CCopasiObjectName::getPrimary | ( | ) | const |
Definition at line 55 of file CCopasiObjectName.cpp.
References findEx().
Referenced by CModelParameterReactionParameter::compile(), getElementName(), CMathContainer::getObject(), getObjectName(), getObjectType(), CModelParameter::nameFromCN(), CModelParameterSpecies::setCN(), and CModelExpansion::updateExpression().
CCopasiObjectName CCopasiObjectName::getRemainder | ( | ) | const |
Definition at line 58 of file CCopasiObjectName.cpp.
References CCopasiObjectName(), and findEx().
Referenced by CModelParameterReactionParameter::compile(), CCopasiContainer::getObject(), CCopasiParameterGroup::getObject(), CArrayAnnotation::getObject(), CCopasiXMLParser::getObjectFromName(), CModelParameter::nameFromCN(), CCopasiDataModel::ObjectFromCN(), CModelParameterSpecies::setCN(), and CModelExpansion::updateExpression().
|
static |
Definition at line 143 of file CCopasiObjectName.cpp.
Referenced by getElementName(), getObjectName(), and getObjectType().