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

Public Member Functions

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

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

Member Enumeration Documentation

Constructor & Destructor Documentation

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

Destructor

Definition at line 10989 of file CCopasiXMLParser.cpp.

References pdelete.

10990 {
10992 }
#define pdelete(p)
Definition: copasi.h:215

Member Function Documentation

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

End element handler

Parameters
constXML_Char *pszName

Definition at line 11037 of file CCopasiXMLParser.cpp.

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

11038 {
11039  switch (mCurrentElement)
11040  {
11042 
11043  if (strcmp(pszName, "ListOfGlobalRenderInformation"))
11045  pszName, "ListOfGlobalRenderInformation", mParser.getCurrentLineNumber());
11046 
11048 
11049  //reset handler
11051  //call parent handler
11052  mParser.onEndElement(pszName);
11053  break;
11054 
11056 
11057  if (strcmp(pszName, "RenderInformation"))
11059  pszName, "RenderInformation", mParser.getCurrentLineNumber());
11060 
11061  //tell the handler where to continue
11063 
11064  //no need to delete Handler (since it is the only one the destructor
11065  //will handle it)
11066  break;
11067 
11068  case UNKNOWN_ELEMENT:
11069  mCurrentElement = mLastKnownElement;
11070  break;
11071 
11072  default:
11074  pszName, "???", mParser.getCurrentLineNumber());
11075  break;
11076  }
11077 
11078  return;
11079 }
#define START_ELEMENT
#define MCXML
virtual void onEndElement(const XML_Char *pszName)
#define UNKNOWN_ELEMENT
int getCurrentLineNumber() const
Definition: CExpat.h:470
void CCopasiXMLParser::ListOfGlobalRenderInformationElement::start ( const XML_Char *  pszName,
const XML_Char **  papszAttrs 
)
virtual

Start element handler

Parameters
constXML_Char *pszName
constXML_Char **papszAttrs

Definition at line 10994 of file CCopasiXMLParser.cpp.

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

10996 {
10997  mCurrentElement++; /* We should always be on the next element */
10998 
10999  switch (mCurrentElement)
11000  {
11002 
11003  if (strcmp(pszName, "ListOfGlobalRenderInformation"))
11005  pszName, "ListOfGlobalRenderInformation", mParser.getCurrentLineNumber());
11006 
11007  break;
11008 
11010 
11011  //only one type of tags may occur here, so we can throw an exception.
11012  //No need to silently ignore unknown tags here.
11013  if (strcmp(pszName, "RenderInformation"))
11015  pszName, "RenderInformation", mParser.getCurrentLineNumber());
11016 
11017  //only one type of tags may occur here, so if the handler exists
11018  //it must be the correct one
11019  if (!mpCurrentHandler)
11020  mpCurrentHandler = new GlobalRenderInformationElement(mParser, mCommon);
11021 
11023  mpCurrentHandler->start(pszName, papszAttrs);
11024  break;
11025 
11026  default:
11030  mParser.onStartElement(pszName, papszAttrs);
11031  break;
11032  }
11033 
11034  return;
11035 }
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: