COPASI API  4.16.103
Public Member Functions | Private Types | List of all members
CCopasiXMLParser::ListOfCallParametersElement Class Reference
Inheritance diagram for CCopasiXMLParser::ListOfCallParametersElement:
Inheritance graph
[legend]
Collaboration diagram for CCopasiXMLParser::ListOfCallParametersElement:
Collaboration graph
[legend]

Public Member Functions

virtual void end (const XML_Char *pszName)
 
 ListOfCallParametersElement (CCopasiXMLParser &parser, SCopasiXMLParserCommon &common)
 
virtual void start (const XML_Char *pszName, const XML_Char **papszAttrs)
 
virtual ~ListOfCallParametersElement ()
 
- Public Member Functions inherited from CXMLElementHandler< CCopasiXMLParser, SCopasiXMLParserCommon >
 CXMLElementHandler (CCopasiXMLParser &parser, SCopasiXMLParserCommon &common)
 
virtual void end (const XML_Char *C_UNUSED(pszName))
 
virtual void reset ()
 
virtual void start (const XML_Char *C_UNUSED(pszName), const XML_Char **C_UNUSED(papszAttrs))
 
virtual ~CXMLElementHandler ()
 

Private Types

enum  Element { ListOfCallParameters = 0, CallParameter }
 

Additional Inherited Members

- Protected Member Functions inherited from CXMLElementHandler< CCopasiXMLParser, SCopasiXMLParserCommon >
void addFix (const std::string &key, CCopasiObject *pObject)
 
void deleteCurrentHandler ()
 
- Protected Attributes inherited from CXMLElementHandler< CCopasiXMLParser, SCopasiXMLParserCommon >
SCopasiXMLParserCommonmCommon
 
C_INT32 mCurrentElement
 
C_INT32 mLastKnownElement
 
CCopasiXMLParsermParser
 
CXMLElementHandlermpCurrentHandler
 

Detailed Description

Definition at line 707 of file CCopasiXMLParser.h.

Member Enumeration Documentation

Enum of invoked parsers

Enumerator
ListOfCallParameters 
CallParameter 

Definition at line 715 of file CCopasiXMLParser.h.

Constructor & Destructor Documentation

CCopasiXMLParser::ListOfCallParametersElement::ListOfCallParametersElement ( CCopasiXMLParser parser,
SCopasiXMLParserCommon common 
)
CCopasiXMLParser::ListOfCallParametersElement::~ListOfCallParametersElement ( )
virtual

Destructor

Definition at line 4837 of file CCopasiXMLParser.cpp.

Member Function Documentation

void CCopasiXMLParser::ListOfCallParametersElement::end ( const XML_Char *  pszName)
virtual

End element handler

Parameters
constXML_Char *pszName

Definition at line 4883 of file CCopasiXMLParser.cpp.

References CCopasiMessage::EXCEPTION, MCXML, CExpatTemplate< CExpat >::mParser, START_ELEMENT, and UNKNOWN_ELEMENT.

4884 {
4885  switch (mCurrentElement)
4886  {
4887  case ListOfCallParameters:
4888 
4889  if (strcmp(pszName, "ListOfCallParameters"))
4891  pszName, "ListOfCallParameters", mParser.getCurrentLineNumber());
4892 
4895 
4896  /* Tell the parent element we are done. */
4897  mParser.onEndElement(pszName);
4898  break;
4899 
4900  case CallParameter:
4901 
4902  if (strcmp(pszName, "CallParameter"))
4904  pszName, "CallParameter", mParser.getCurrentLineNumber());
4905 
4907  break;
4908 
4909  case UNKNOWN_ELEMENT:
4910  mCurrentElement = mLastKnownElement;
4911  break;
4912 
4913  default:
4915  pszName, "???", mParser.getCurrentLineNumber());
4916  break;
4917  }
4918 
4919  return;
4920 }
#define START_ELEMENT
#define MCXML
virtual void onEndElement(const XML_Char *pszName)
#define UNKNOWN_ELEMENT
int getCurrentLineNumber() const
Definition: CExpat.h:470
void CCopasiXMLParser::ListOfCallParametersElement::start ( const XML_Char *  pszName,
const XML_Char **  papszAttrs 
)
virtual

Start element handler

Parameters
constXML_Char *pszName
constXML_Char **papszAttrs

Definition at line 4842 of file CCopasiXMLParser.cpp.

References CCopasiMessage::EXCEPTION, CCopasiXMLParser::mCommon, MCXML, CExpatTemplate< CExpat >::mParser, and UNKNOWN_ELEMENT.

4844 {
4845  mCurrentElement++; /* We should always be on the next element */
4846 
4847  switch (mCurrentElement)
4848  {
4849  case ListOfCallParameters:
4850 
4851  if (strcmp(pszName, "ListOfCallParameters"))
4853  pszName, "ListOfCallParameters", mParser.getCurrentLineNumber());
4854 
4855  break;
4856 
4857  case CallParameter:
4858 
4859  if (strcmp(pszName, "CallParameter"))
4861  pszName, "CallParameter", mParser.getCurrentLineNumber());
4862 
4863  /* If we do not have a CallParameter element handler we create one. */
4864  if (!mpCurrentHandler)
4865  mpCurrentHandler = new CallParameterElement(mParser, mCommon);
4866 
4867  /* Push the CallParameter element handler on the stack and call it. */
4869  mpCurrentHandler->start(pszName, papszAttrs);
4870  break;
4871 
4872  default:
4876  mParser.onStartElement(pszName, papszAttrs);
4877  break;
4878  }
4879 
4880  return;
4881 }
UnknownElement mUnknownElement
#define MCXML
#define UNKNOWN_ELEMENT
virtual void onStartElement(const XML_Char *pszName, const XML_Char **papszAttrs)
void pushElementHandler(CXMLElementHandler< CCopasiXMLParser, SCopasiXMLParserCommon > *elementHandler)
virtual void start(const XML_Char *C_UNUSED(pszName), const XML_Char **C_UNUSED(papszAttrs))
Definition: CXMLHandler.h:87
int getCurrentLineNumber() const
Definition: CExpat.h:470

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