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

Public Member Functions

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

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

Member Enumeration Documentation

Enum of invoked parsers

Enumerator
GUI 
ListOfSliders 

Definition at line 3171 of file CCopasiXMLParser.h.

Constructor & Destructor Documentation

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

Destructor

Definition at line 10508 of file CCopasiXMLParser.cpp.

Member Function Documentation

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

End element handler

Parameters
constXML_Char *pszName

Definition at line 10551 of file CCopasiXMLParser.cpp.

References CExpatTemplate< CExpat >::mParser, and START_ELEMENT.

10552 {
10553  if (!strcmp(pszName, "GUI"))
10554  {
10557 
10558  /* Tell the parent element we are done. */
10559  mParser.onEndElement(pszName);
10560  }
10561  else
10563 
10564  return;
10565 }
#define START_ELEMENT
virtual void onEndElement(const XML_Char *pszName)
void CCopasiXMLParser::GUIElement::start ( const XML_Char *  pszName,
const XML_Char **  papszAttrs 
)
virtual

Start element handler

Parameters
constXML_Char *pszName
constXML_Char **papszAttrs

Definition at line 10513 of file CCopasiXMLParser.cpp.

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

10515 {
10516  mCurrentElement++; /* We should always be on the next element */
10517 
10518  switch (mCurrentElement)
10519  {
10520  case GUI:
10521 
10522  if (strcmp(pszName, "GUI"))
10524  pszName, "GUI", mParser.getCurrentLineNumber());
10525 
10526  return;
10527  break;
10528 
10529  case ListOfSliders:
10530 
10531  if (!strcmp(pszName, "ListOfSliders"))
10532  mpCurrentHandler = new ListOfSlidersElement(mParser, mCommon);
10533 
10534  break;
10535 
10536  default:
10540  break;
10541  }
10542 
10543  if (mpCurrentHandler)
10545 
10546  mParser.onStartElement(pszName, papszAttrs);
10547 
10548  return;
10549 }
UnknownElement mUnknownElement
#define MCXML
#define UNKNOWN_ELEMENT
virtual void onStartElement(const XML_Char *pszName, const XML_Char **papszAttrs)
void pushElementHandler(CXMLElementHandler< CCopasiXMLParser, SCopasiXMLParserCommon > *elementHandler)
int getCurrentLineNumber() const
Definition: CExpat.h:470

The documentation for this class was generated from the following files: