copasi API  0.1
Public Member Functions | Protected Member Functions | Protected Attributes
CXMLElementHandler< CType, CCommon > Class Template Reference

#include <CXMLHandler.h>

List of all members.

Public Member Functions

 CXMLElementHandler (CType &parser, CCommon &common)
virtual ~CXMLElementHandler ()
virtual void start (const XML_Char *C_UNUSED(pszName), const XML_Char **C_UNUSED(papszAttrs))
virtual void end (const XML_Char *C_UNUSED(pszName))
virtual void reset ()

Protected Member Functions

void deleteCurrentHandler ()

Protected Attributes

CType & mParser
CCommon & mCommon
C_INT32 mCurrentElement
CXMLElementHandlermpCurrentHandler
C_INT32 mLastKnownElement

Detailed Description

template<class CType, class CCommon>
class CXMLElementHandler< CType, CCommon >

CXMLHandler class. This class is the base class of all XML event handlers.

Created for Copasi by Stefan Hoops 2003 Copyright Stefan Hoops


Constructor & Destructor Documentation

template<class CType, class CCommon>
CXMLElementHandler< CType, CCommon >::CXMLElementHandler ( CType &  parser,
CCommon &  common 
) [inline]

Constructor

template<class CType, class CCommon>
virtual CXMLElementHandler< CType, CCommon >::~CXMLElementHandler ( ) [inline, virtual]

Destructor


Member Function Documentation

template<class CType, class CCommon>
void CXMLElementHandler< CType, CCommon >::deleteCurrentHandler ( ) [inline, protected]

This assures that we do not accidentally delete common parser handlers.

template<class CType, class CCommon>
virtual void CXMLElementHandler< CType, CCommon >::end ( const XML_Char *  C_UNUSEDpszName) [inline, virtual]

End element handler

Parameters:
constXML_Char *pszName
template<class CType, class CCommon>
virtual void CXMLElementHandler< CType, CCommon >::reset ( ) [inline, virtual]

Reset the element handler to start values.

template<class CType, class CCommon>
virtual void CXMLElementHandler< CType, CCommon >::start ( const XML_Char *  C_UNUSEDpszName,
const XML_Char **  C_UNUSEDpapszAttrs 
) [inline, virtual]

Start element handler

Parameters:
constXML_Char *pszName
constXML_Char **papszAttrs

Member Data Documentation

template<class CType, class CCommon>
CCommon& CXMLElementHandler< CType, CCommon >::mCommon [protected]

The shared elements between all element handlers of a parser

template<class CType, class CCommon>
C_INT32 CXMLElementHandler< CType, CCommon >::mCurrentElement [protected]

The currently processed element.

template<class CType, class CCommon>
C_INT32 CXMLElementHandler< CType, CCommon >::mLastKnownElement [protected]
template<class CType, class CCommon>
CType& CXMLElementHandler< CType, CCommon >::mParser [protected]

The underlying parser.

template<class CType, class CCommon>
CXMLElementHandler* CXMLElementHandler< CType, CCommon >::mpCurrentHandler [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines