OMNeT++ NEDXML  5.5
SAXHandler Class Reference

#include <saxparser.h>

Description

Base class for SAX event handlers needed by SAXParser. This is a simplified SAX handler interface.

All event handlers provided by this class are empty, one must subclass SAXHandler and redefine the event handler to make them do something useful.

Inheritance diagram for SAXHandler:
ASTBuilder

Public Member Functions

 SAXHandler ()
 
virtual ~SAXHandler ()
 
virtual void startElement (const char *name, const char **atts)
 
virtual void endElement (const char *name)
 
virtual void characterData (const char *s, int len)
 
virtual void processingInstruction (const char *target, const char *data)
 
virtual void comment (const char *data)
 
virtual void startCdataSection ()
 
virtual void endCdataSection ()
 

Protected Member Functions

virtual void setParser (SAXParser *p)
 

Protected Attributes

SAXParserparser
 

Friends

class SAXParser
 

Constructor & Destructor Documentation

◆ SAXHandler()

SAXHandler ( )
inline

Constructor

◆ ~SAXHandler()

virtual ~SAXHandler ( )
inlinevirtual

Destructor

Member Function Documentation

◆ setParser()

virtual void setParser ( SAXParser p)
inlineprotectedvirtual

◆ startElement()

virtual void startElement ( const char *  name,
const char **  atts 
)
inlinevirtual

Called by the parser on SAX StartElement events.

Reimplemented in ASTBuilder.

◆ endElement()

virtual void endElement ( const char *  name)
inlinevirtual

Called by the parser on SAX EndElement events.

Reimplemented in ASTBuilder.

◆ characterData()

virtual void characterData ( const char *  s,
int  len 
)
inlinevirtual

Called by the parser on SAX CharacterData events.

Reimplemented in ASTBuilder.

◆ processingInstruction()

virtual void processingInstruction ( const char *  target,
const char *  data 
)
inlinevirtual

Called by the parser on SAX ProcessingInstruction events.

Reimplemented in ASTBuilder.

◆ comment()

virtual void comment ( const char *  data)
inlinevirtual

Called by the parser on SAX Comment events.

Reimplemented in ASTBuilder.

◆ startCdataSection()

virtual void startCdataSection ( )
inlinevirtual

Called by the parser on SAX CDataStart events.

Reimplemented in ASTBuilder.

◆ endCdataSection()

virtual void endCdataSection ( )
inlinevirtual

Called by the parser on SAX CDataEnd events.

Reimplemented in ASTBuilder.

Friends And Related Function Documentation

◆ SAXParser

friend class SAXParser
friend

Member Data Documentation

◆ parser

SAXParser* parser
protected

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