COPASI API
4.40.278
|
#include <FunctionHandler.h>
Public Member Functions | |
FunctionHandler (CXMLParser &parser, CXMLParserData &data) | |
virtual | ~FunctionHandler () |
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 | |
FunctionHandler () | |
Private Attributes | |
std::set< size_t > | mExistingFunctionIndex |
std::string | mInfix |
std::string | mKey |
|
private |
FunctionHandler::FunctionHandler | ( | CXMLParser & | parser, |
CXMLParserData & | data | ||
) |
Constructor
CXMLParser | & parser |
CXMLParserData | & data |
Replace Function 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::Expression, CXMLHandler::Function, CXMLHandler::HANDLER_COUNT, CXMLHandler::ListOfParameterDescriptions, CXMLHandler::ListOfUnsupportedAnnotations, CXMLHandler::MathML, CXMLHandler::MiriamAnnotation, and CXMLHandler::Text.
|
protectedvirtual |
Process the end of an element
const | XML_Char *pszName |
Implements CXMLHandler.
References CDataVectorN< CType >::add(), CXMLHandler::addFix(), C_INVALID_INDEX, CXMLParserData::CharacterData, CXMLHandler::Comment, CXMLHandler::end(), CCopasiMessage::EXCEPTION, CXMLHandler::Expression, CXMLHandler::Function, CExpatTemplate< CType >::getCurrentColumnNumber(), CExpatTemplate< CType >::getCurrentLineNumber(), CFunction::getKey(), CCopasiMessage::getLastMessage(), CDataObject::getObjectName(), CAnnotation::getUnsupportedAnnotations(), CFunction::getVariables(), CXMLHandler::ListOfParameterDescriptions, CXMLHandler::ListOfUnsupportedAnnotations, CXMLHandler::MathML, CXMLHandler::mCurrentElement, MCXML, mExistingFunctionIndex, CXMLParserData::mFunctionParameterKeyMap, mInfix, CXMLHandler::MiriamAnnotation, mKey, CXMLHandler::mpData, CXMLParserData::mpExpression, CXMLHandler::mpParser, CXMLParserData::mPredefinedFunction, CXMLParserData::mUnsupportedAnnotations, pdelete, CXMLParserData::pFunction, CXMLParserData::pFunctionList, CFunctionParameters::remove(), CFunction::setInfix(), CExpression::setInfix(), CAnnotation::setMiriamAnnotation(), CAnnotation::setNotes(), CCopasiMessage::size(), CFunctionParameters::size(), CFunctionParameter::TEMPORARY, and CXMLHandler::Text.
|
protectedvirtual |
Process the start of an element
const | XML_Char *pszName |
const | XML_Char **papszAttrs |
Implements CXMLHandler.
References C_INVALID_INDEX, CXMLHandler::Comment, CEvaluationTree::create(), CCopasiMessage::EXCEPTION, CEvaluationTree::Expression, CXMLHandler::Expression, CEvaluationTree::Function, CXMLHandler::Function, CExpatTemplate< CType >::getAttributeValue(), CExpatTemplate< CType >::getCurrentColumnNumber(), CExpatTemplate< CType >::getCurrentLineNumber(), CXMLHandler::getHandler(), CDataVectorN< CType >::getIndex(), CXMLHandler::ListOfParameterDescriptions, CXMLHandler::ListOfUnsupportedAnnotations, CEvaluationTree::MassAction, CXMLHandler::MathML, CXMLHandler::mCurrentElement, MCXML, mExistingFunctionIndex, CXMLParserData::mFunctionParameterKeyMap, CXMLHandler::MiriamAnnotation, mKey, CXMLParserData::mKey2ObjectiveFunction, CXMLHandler::mpData, CXMLParserData::mpExpression, CXMLHandler::mpParser, CXMLParserData::mPredefinedFunction, CXMLParserData::mUnsupportedAnnotations, pdelete, CXMLParserData::pFunction, CXMLParserData::pFunctionList, CEvaluationTree::PreDefined, CDataObject::setObjectName(), CFunction::setReversible(), CXMLHandler::Text, toEnum(), TriFalse, TriTrue, TriUnspecified, CEvaluationTree::UserDefined, and CEvaluationTree::XMLType.
|
private |
The index of a function with the same name
Referenced by processEnd(), and processStart().
|
private |
The infix expression of the function
Referenced by processEnd().
|
private |
The key in the CopasiML file
Referenced by processEnd(), and processStart().