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

Public Member Functions

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

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

Member Enumeration Documentation

Constructor & Destructor Documentation

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

Definition at line 6901 of file CCopasiXMLParser.cpp.

Member Function Documentation

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

Definition at line 6945 of file CCopasiXMLParser.cpp.

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

6946 {
6947  switch (mCurrentElement)
6948  {
6949  case ListOfMetabGlyphs:
6950 
6951  if (strcmp(pszName, "ListOfMetabGlyphs"))
6953  pszName, "ListOfMetabGlyphs", mParser.getCurrentLineNumber());
6954 
6956 
6957  //reset handler
6959  //call parent handler
6960  mParser.onEndElement(pszName);
6961  break;
6962 
6963  case MetaboliteGlyph:
6964 
6965  if (!strcmp(pszName, "MetaboliteGlyph"))
6967 
6968  //no need to delete Handler (since it is the only one the destructor
6969  //will handle it)
6970  break;
6971 
6972  case UNKNOWN_ELEMENT:
6974  break;
6975 
6976  default:
6978  pszName, "???", mParser.getCurrentLineNumber());
6979  break;
6980  }
6981 
6982  return;
6983 }
#define START_ELEMENT
#define MCXML
virtual void onEndElement(const XML_Char *pszName)
#define UNKNOWN_ELEMENT
int getCurrentLineNumber() const
Definition: CExpat.h:470
void CCopasiXMLParser::ListOfMetabGlyphsElement::start ( const XML_Char *  pszName,
const XML_Char **  papszAttrs 
)
virtual

Definition at line 6906 of file CCopasiXMLParser.cpp.

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

6908 {
6909  mCurrentElement++; /* We should always be on the next element */
6910 
6911  switch (mCurrentElement)
6912  {
6913  case ListOfMetabGlyphs:
6914 
6915  if (strcmp(pszName, "ListOfMetabGlyphs"))
6917  pszName, "ListOfMetabGlyphs", mParser.getCurrentLineNumber());
6918 
6919  break;
6920 
6921  case MetaboliteGlyph:
6922 
6923  if (!strcmp(pszName, "MetaboliteGlyph"))
6924  {
6925  if (!mpCurrentHandler)
6926  mpCurrentHandler = new MetaboliteGlyphElement(mParser, mCommon);
6927 
6929  mpCurrentHandler->start(pszName, papszAttrs);
6930  }
6931 
6932  break;
6933 
6934  default:
6938  mParser.onStartElement(pszName, papszAttrs);
6939  break;
6940  }
6941 
6942  return;
6943 }
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: