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

Public Member Functions

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

Private Attributes

size_t mLineNumber
 

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

Member Enumeration Documentation

Enum of invoked parsers

Enumerator
Unknown 

Definition at line 398 of file CCopasiXMLParser.h.

Constructor & Destructor Documentation

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

Destructor

Definition at line 421 of file CCopasiXMLParser.cpp.

Member Function Documentation

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

End element handler

Parameters
constXML_Char *pszName

Definition at line 440 of file CCopasiXMLParser.cpp.

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

441 {
442  switch (mCurrentElement)
443  {
444  case Unknown:
447  {
449  pszName, mLineNumber);
450  }
451 
452  /* Tell the parent element we are done. */
453  mParser.onEndElement(pszName);
454  break;
455 
456  default:
457  mCurrentElement--;
458  break;
459  }
460 
461  return;
462 }
#define START_ELEMENT
#define MCXML
virtual void onEndElement(const XML_Char *pszName)
void CCopasiXMLParser::UnknownElement::start ( const XML_Char *  pszName,
const XML_Char **  papszAttrs 
)
virtual

Start element handler

Parameters
constXML_Char *pszName
constXML_Char **papszAttrs

Definition at line 426 of file CCopasiXMLParser.cpp.

References CExpatTemplate< CExpat >::mParser.

428 {
429  /* We count the level of subelements of the Unknown Element */
430  mCurrentElement++;
431 
432  if (mCurrentElement == Unknown)
433  {
435  }
436 
437  return;
438 }
int getCurrentLineNumber() const
Definition: CExpat.h:470

Member Data Documentation

size_t CCopasiXMLParser::UnknownElement::mLineNumber
private

The line number the unknown element was encountered.

Definition at line 406 of file CCopasiXMLParser.h.


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