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

Public Member Functions

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

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

Member Enumeration Documentation

Enumerator
ListOfTextGlyphs 
TextGlyph 

Definition at line 3531 of file CCopasiXMLParser.h.

Constructor & Destructor Documentation

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

Definition at line 7693 of file CCopasiXMLParser.cpp.

Member Function Documentation

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

Definition at line 7736 of file CCopasiXMLParser.cpp.

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

7737 {
7738  switch (mCurrentElement)
7739  {
7740  case ListOfTextGlyphs:
7741 
7742  if (strcmp(pszName, "ListOfTextGlyphs"))
7744  pszName, "ListOfTextGlyphs", mParser.getCurrentLineNumber());
7745 
7747 
7748  //reset handler
7750  //call parent handler
7751  mParser.onEndElement(pszName);
7752  break;
7753 
7754  case TextGlyph:
7755 
7756  if (!strcmp(pszName, "TextGlyph"))
7758 
7759  //no need to delete Handler (since it is the only one the destructor
7760  //will handle it)
7761  break;
7762 
7763  case UNKNOWN_ELEMENT:
7765  break;
7766 
7767  default:
7769  pszName, "???", mParser.getCurrentLineNumber());
7770  break;
7771  }
7772 
7773  return;
7774 }
#define START_ELEMENT
#define MCXML
virtual void onEndElement(const XML_Char *pszName)
#define UNKNOWN_ELEMENT
int getCurrentLineNumber() const
Definition: CExpat.h:470
void CCopasiXMLParser::ListOfTextGlyphsElement::start ( const XML_Char *  pszName,
const XML_Char **  papszAttrs 
)
virtual

Definition at line 7698 of file CCopasiXMLParser.cpp.

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

7700 {
7701  mCurrentElement++; /* We should always be on the next element */
7702 
7703  switch (mCurrentElement)
7704  {
7705  case ListOfTextGlyphs:
7706 
7707  if (strcmp(pszName, "ListOfTextGlyphs"))
7709  pszName, "ListOfTextGlyphs", mParser.getCurrentLineNumber());
7710 
7711  break;
7712 
7713  case TextGlyph:
7714 
7715  if (!strcmp(pszName, "TextGlyph"))
7716  {
7717  if (!mpCurrentHandler)
7718  mpCurrentHandler = new TextGlyphElement(mParser, mCommon);
7719 
7721  mpCurrentHandler->start(pszName, papszAttrs);
7722  }
7723 
7724  break;
7725 
7726  default:
7730  break;
7731  }
7732 
7733  return;
7734 }
UnknownElement mUnknownElement
#define MCXML
#define UNKNOWN_ELEMENT
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: