COPASI API
4.40.278
|
#include <ModelHandler.h>
Public Member Functions | |
ModelHandler (CXMLParser &parser, CXMLParserData &data) | |
virtual | ~ModelHandler () |
Public Member Functions inherited from CXMLHandler | |
CXMLHandler (CXMLParser &parser, CXMLParserData &data, const Type &type) | |
virtual void | end (const XML_Char *pszName) |
virtual void | start (const XML_Char *pszName, const XML_Char **papszAttrs) |
virtual | ~CXMLHandler () |
Protected Member Functions | |
virtual sProcessLogic * | getProcessLogic () const |
virtual bool | processEnd (const XML_Char *pszName) |
virtual CXMLHandler * | processStart (const XML_Char *pszName, const XML_Char **papszAttrs) |
Protected Member Functions inherited from CXMLHandler | |
void | addFix (const std::string &key, CDataObject *pObject) |
std::string | getElementName (const Type &type) const |
std::string | getExpectedElements (const Type &type) const |
CXMLHandler * | getHandler (const Type &type) |
void | init () |
Private Member Functions | |
ModelHandler () | |
Private Attributes | |
std::string | mActiveSet |
std::string | mKey |
|
private |
ModelHandler::ModelHandler | ( | CXMLParser & | parser, |
CXMLParserData & | data | ||
) |
Constructor
CXMLParser | & parser |
CXMLParserData | & data |
Replace Model with the name type of the handler and implement the three methods below.
References CXMLHandler::init().
|
virtual |
Destructor
|
protectedvirtual |
Retrieve the structure containing the process logic for the handler.
Implements CXMLHandler.
References CXMLHandler::AFTER, CXMLHandler::BEFORE, CXMLHandler::CharacterData, CXMLHandler::Comment, CXMLHandler::HANDLER_COUNT, CXMLHandler::InitialExpression, CXMLHandler::InitialState, CXMLHandler::ListOfCompartments, CXMLHandler::ListOfEvents, CXMLHandler::ListOfMetabolites, CXMLHandler::ListOfModelParameterSets, CXMLHandler::ListOfModelValues, CXMLHandler::ListOfReactions, CXMLHandler::ListOfUnsupportedAnnotations, CXMLHandler::MiriamAnnotation, CXMLHandler::Model, and CXMLHandler::StateTemplate.
|
protectedvirtual |
Process the end of an element
const | XML_Char *pszName |
Implements CXMLHandler.
References CModelParameterSet::assignSetContent(), CXMLParserData::CharacterData, CXMLHandler::Comment, CCopasiMessage::EXCEPTION, CKeyFactory::get(), CModel::getActiveModelParameterSet(), CExpatTemplate< CType >::getCurrentColumnNumber(), CExpatTemplate< CType >::getCurrentLineNumber(), CModel::getKey(), CCopasiMessage::getLastMessage(), CAnnotation::getUnsupportedAnnotations(), CXMLHandler::InitialExpression, CXMLHandler::InitialState, CXMLHandler::ListOfCompartments, CXMLHandler::ListOfEvents, CXMLHandler::ListOfMetabolites, CXMLHandler::ListOfModelParameterSets, CXMLHandler::ListOfModelValues, CXMLHandler::ListOfReactions, CXMLHandler::ListOfUnsupportedAnnotations, mActiveSet, CXMLHandler::mCurrentElement, MCXML, CXMLHandler::MiriamAnnotation, mKey, CXMLParserData::mKeyMap, CXMLHandler::Model, CXMLHandler::mpData, CXMLHandler::mpParser, CXMLParserData::mUnsupportedAnnotations, CXMLParserData::pModel, CModel::setCompileFlag(), CModelEntity::setInitialExpression(), CAnnotation::setMiriamAnnotation(), CAnnotation::setNotes(), CCopasiMessage::size(), and CXMLHandler::StateTemplate.
|
protectedvirtual |
Process the start of an element
const | XML_Char *pszName |
const | XML_Char **papszAttrs |
Implements CXMLHandler.
References CXMLHandler::addFix(), CUnit::Avogadro, C_FLOAT64, CDataVector< CType >::clear(), CXMLHandler::Comment, CModel::deterministic, CCopasiMessage::EXCEPTION, CExpatTemplate< CType >::getAttributeValue(), CExpatTemplate< CType >::getCurrentColumnNumber(), CExpatTemplate< CType >::getCurrentLineNumber(), CXMLHandler::getHandler(), CCopasiMessage::getLastMessage(), CModel::getModelParameterSets(), CXMLHandler::InitialExpression, CXMLHandler::InitialState, CXMLHandler::ListOfCompartments, CXMLHandler::ListOfEvents, CXMLHandler::ListOfMetabolites, CXMLHandler::ListOfModelParameterSets, CXMLHandler::ListOfModelValues, CXMLHandler::ListOfReactions, CXMLHandler::ListOfUnsupportedAnnotations, mActiveSet, CXMLHandler::mCurrentElement, MCXML, CXMLHandler::MiriamAnnotation, mKey, CXMLHandler::Model, CModel::ModelTypeNames, CXMLHandler::mpData, CXMLHandler::mpParser, CXMLParserData::mUnsupportedAnnotations, CCore::ParticleNumbers, CXMLParserData::pDataModel, CXMLParserData::pModel, CModel::setAreaUnit(), CModel::setAvogadro(), CModel::setLengthUnit(), CModel::setModelType(), CDataObject::setObjectName(), CModel::setQuantityUnit(), CModel::setTimeUnit(), CModel::setVolumeUnit(), CCopasiMessage::size(), CXMLHandler::StateTemplate, and CEnumAnnotation< Type, Enum >::toEnum().
|
private |
The key of the active parameter set
Referenced by processEnd(), and processStart().
|
private |
The original key of the model.
Referenced by processEnd(), and processStart().