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

Public Member Functions

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

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

Member Enumeration Documentation

Constructor & Destructor Documentation

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

Destructor

Definition at line 11088 of file CCopasiXMLParser.cpp.

References pdelete.

11089 {
11091 }
#define pdelete(p)
Definition: copasi.h:215

Member Function Documentation

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

End element handler

Parameters
constXML_Char *pszName

Definition at line 11134 of file CCopasiXMLParser.cpp.

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

11135 {
11136  switch (mCurrentElement)
11137  {
11139 
11140  if (strcmp(pszName, "ListOfRenderInformation"))
11142  pszName, "ListOfRenderInformation", mParser.getCurrentLineNumber());
11143 
11145 
11146  //reset handler
11148  //call parent handler
11149  mParser.onEndElement(pszName);
11150  break;
11151 
11153 
11154  if (strcmp(pszName, "RenderInformation"))
11156  pszName, "RenderInformation", mParser.getCurrentLineNumber());
11157 
11158  //tell the handler where to continue
11160 
11161  //no need to delete Handler (since it is the only one the destructor
11162  //will handle it)
11163  break;
11164 
11165  case UNKNOWN_ELEMENT:
11166  mCurrentElement = mLastKnownElement;
11167  break;
11168 
11169  default:
11171  pszName, "???", mParser.getCurrentLineNumber());
11172  break;
11173  }
11174 
11175  return;
11176 }
#define START_ELEMENT
#define MCXML
virtual void onEndElement(const XML_Char *pszName)
#define UNKNOWN_ELEMENT
int getCurrentLineNumber() const
Definition: CExpat.h:470
void CCopasiXMLParser::ListOfLocalRenderInformationElement::start ( const XML_Char *  pszName,
const XML_Char **  papszAttrs 
)
virtual

Start element handler

Parameters
constXML_Char *pszName
constXML_Char **papszAttrs

Definition at line 11093 of file CCopasiXMLParser.cpp.

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

11095 {
11096  mCurrentElement++; /* We should always be on the next element */
11097 
11098  switch (mCurrentElement)
11099  {
11101 
11102  if (strcmp(pszName, "ListOfRenderInformation"))
11104  pszName, "ListOfRenderInformation", mParser.getCurrentLineNumber());
11105 
11106  break;
11107 
11109 
11110  if (!strcmp(pszName, "RenderInformation"))
11111  {
11112  //only one type of tags may occur here, so if the handler exists
11113  //it must be the correct one
11114  if (!mpCurrentHandler)
11115  mpCurrentHandler = new LocalRenderInformationElement(mParser, mCommon);
11116 
11118  mpCurrentHandler->start(pszName, papszAttrs);
11119  }
11120 
11121  break;
11122 
11123  default:
11127  mParser.onStartElement(pszName, papszAttrs);
11128  break;
11129  }
11130 
11131  return;
11132 }
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: