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

Public Member Functions

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

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

Member Enumeration Documentation

Constructor & Destructor Documentation

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

Definition at line 7163 of file CCopasiXMLParser.cpp.

Member Function Documentation

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

Definition at line 7207 of file CCopasiXMLParser.cpp.

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

7208 {
7209  switch (mCurrentElement)
7210  {
7212 
7213  if (strcmp(pszName, "ListOfMetaboliteReferenceGlyphs"))
7215  pszName, "ListOfMetaboliteReferenceGlyphs", mParser.getCurrentLineNumber());
7216 
7218 
7219  //reset handler
7221  //call parent handler
7222  mParser.onEndElement(pszName);
7223  break;
7224 
7226 
7227  if (!strcmp(pszName, "MetaboliteReferenceGlyph"))
7229 
7230  //no need to delete Handler (since it is the only one the destructor
7231  //will handle it)
7232  break;
7233 
7234  case UNKNOWN_ELEMENT:
7236  break;
7237 
7238  default:
7240  pszName, "???", mParser.getCurrentLineNumber());
7241  break;
7242  }
7243 
7244  return;
7245 }
#define START_ELEMENT
#define MCXML
virtual void onEndElement(const XML_Char *pszName)
#define UNKNOWN_ELEMENT
int getCurrentLineNumber() const
Definition: CExpat.h:470
void CCopasiXMLParser::ListOfMetaboliteReferenceGlyphsElement::start ( const XML_Char *  pszName,
const XML_Char **  papszAttrs 
)
virtual

Definition at line 7168 of file CCopasiXMLParser.cpp.

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

7170 {
7171  mCurrentElement++; /* We should always be on the next element */
7172 
7173  switch (mCurrentElement)
7174  {
7176 
7177  if (strcmp(pszName, "ListOfMetaboliteReferenceGlyphs"))
7179  pszName, "ListOfMetaboliteReferenceGlyphs", mParser.getCurrentLineNumber());
7180 
7181  break;
7182 
7184 
7185  if (!strcmp(pszName, "MetaboliteReferenceGlyph"))
7186  {
7187  if (!mpCurrentHandler)
7188  mpCurrentHandler = new MetaboliteReferenceGlyphElement(mParser, mCommon);
7189 
7191  mpCurrentHandler->start(pszName, papszAttrs);
7192  }
7193 
7194  break;
7195 
7196  default:
7200  mParser.onStartElement(pszName, papszAttrs);
7201  break;
7202  }
7203 
7204  return;
7205 }
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: