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

Public Member Functions

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

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

Member Enumeration Documentation

Constructor & Destructor Documentation

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

Definition at line 7428 of file CCopasiXMLParser.cpp.

Member Function Documentation

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

Definition at line 7472 of file CCopasiXMLParser.cpp.

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

7473 {
7474  switch (mCurrentElement)
7475  {
7476  case ListOfReactionGlyphs:
7477 
7478  if (strcmp(pszName, "ListOfReactionGlyphs"))
7480  pszName, "ListOfReactionGlyphs", mParser.getCurrentLineNumber());
7481 
7483 
7484  //reset handler
7486  //call parent handler
7487  mParser.onEndElement(pszName);
7488  break;
7489 
7490  case ReactionGlyph:
7491 
7492  if (!strcmp(pszName, "ReactionGlyph"))
7494 
7495  //no need to delete Handler (since it is the only one the destructor
7496  //will handle it)
7497  break;
7498 
7499  case UNKNOWN_ELEMENT:
7501  break;
7502 
7503  default:
7505  pszName, "???", mParser.getCurrentLineNumber());
7506  break;
7507  }
7508 
7509  return;
7510 }
#define START_ELEMENT
#define MCXML
virtual void onEndElement(const XML_Char *pszName)
#define UNKNOWN_ELEMENT
int getCurrentLineNumber() const
Definition: CExpat.h:470
void CCopasiXMLParser::ListOfReactionGlyphsElement::start ( const XML_Char *  pszName,
const XML_Char **  papszAttrs 
)
virtual

Definition at line 7433 of file CCopasiXMLParser.cpp.

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

7435 {
7436  mCurrentElement++; /* We should always be on the next element */
7437 
7438  switch (mCurrentElement)
7439  {
7440  case ListOfReactionGlyphs:
7441 
7442  if (strcmp(pszName, "ListOfReactionGlyphs"))
7444  pszName, "ListOfReactionGlyphs", mParser.getCurrentLineNumber());
7445 
7446  break;
7447 
7448  case ReactionGlyph:
7449 
7450  if (!strcmp(pszName, "ReactionGlyph"))
7451  {
7452  if (!mpCurrentHandler)
7453  mpCurrentHandler = new ReactionGlyphElement(mParser, mCommon);
7454 
7456  mpCurrentHandler->start(pszName, papszAttrs);
7457  }
7458 
7459  break;
7460 
7461  default:
7465  mParser.onStartElement(pszName, papszAttrs);
7466  break;
7467  }
7468 
7469  return;
7470 }
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: