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

Public Member Functions

virtual void end (const XML_Char *pszName)
 
 ListOfAdditionalGOsElement (CCopasiXMLParser &parser, SCopasiXMLParserCommon &common)
 
virtual void start (const XML_Char *pszName, const XML_Char **papszAttrs)
 
virtual ~ListOfAdditionalGOsElement ()
 
- 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 { ListOfAdditionalGOs = 0, AdditionalGO }
 

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 3574 of file CCopasiXMLParser.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

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

Definition at line 7918 of file CCopasiXMLParser.cpp.

Member Function Documentation

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

Definition at line 7962 of file CCopasiXMLParser.cpp.

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

7963 {
7964  switch (mCurrentElement)
7965  {
7966  case ListOfAdditionalGOs:
7967 
7968  if (strcmp(pszName, "ListOfAdditionalGraphicalObjects"))
7970  pszName, "ListOfAdditionalGraphicalObjects", mParser.getCurrentLineNumber());
7971 
7973 
7974  //reset handler
7976  //call parent handler
7977  mParser.onEndElement(pszName);
7978  break;
7979 
7980  case AdditionalGO:
7981 
7982  if (!strcmp(pszName, "AdditionalGraphicalObject"))
7984 
7985  //no need to delete Handler (since it is the only one the destructor
7986  //will handle it)
7987  break;
7988 
7989  case UNKNOWN_ELEMENT:
7991  break;
7992 
7993  default:
7995  pszName, "???", mParser.getCurrentLineNumber());
7996  break;
7997  }
7998 
7999  return;
8000 }
#define START_ELEMENT
#define MCXML
virtual void onEndElement(const XML_Char *pszName)
#define UNKNOWN_ELEMENT
int getCurrentLineNumber() const
Definition: CExpat.h:470
void CCopasiXMLParser::ListOfAdditionalGOsElement::start ( const XML_Char *  pszName,
const XML_Char **  papszAttrs 
)
virtual

Definition at line 7923 of file CCopasiXMLParser.cpp.

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

7925 {
7926  mCurrentElement++; /* We should always be on the next element */
7927 
7928  switch (mCurrentElement)
7929  {
7930  case ListOfAdditionalGOs:
7931 
7932  if (strcmp(pszName, "ListOfAdditionalGraphicalObjects"))
7934  pszName, "ListOfAdditionalGraphicalObjects", mParser.getCurrentLineNumber());
7935 
7936  break;
7937 
7938  case AdditionalGO:
7939 
7940  if (!strcmp(pszName, "AdditionalGraphicalObject"))
7941  {
7942  if (!mpCurrentHandler)
7943  mpCurrentHandler = new AdditionalGOElement(mParser, mCommon);
7944 
7946  mpCurrentHandler->start(pszName, papszAttrs);
7947  }
7948 
7949  break;
7950 
7951  default:
7955  mParser.onStartElement(pszName, papszAttrs);
7956  break;
7957  }
7958 
7959  return;
7960 }
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: