Class that do the most of work. More...
#include <MlpParseHandlers.hpp>
Public Member Functions | |
MlpParseHandlers () | |
Constructor. | |
~MlpParseHandlers () | |
Destructor. | |
void | startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const xercesc::Attributes &attrs) |
void | endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname) |
void | characters (const XMLCh *const chars, const unsigned int length) |
Processes CDATA or PCDATA of each tag. | |
void | ignorableWhitespace (const XMLCh *const chars, const unsigned int length) |
void | processingInstruction (const XMLCh *const target, const XMLCh *const data) |
void | resetDocument () |
void | setDocumentLocator (const xercesc::Locator *const locator) |
void | startDocument () |
void | endDocument () |
void | startPrefixMapping (const XMLCh *const prefix, const XMLCh *const uri) |
void | endPrefixMapping (const XMLCh *const prefix) |
void | skippedEntity (const XMLCh *const name) |
void | clean () |
Cleans MlpParseHandler. | |
void | setNewMsg (MlpMessage *emptyMsg) |
Class that do the most of work.
This class is passed to Xerces SAX2 XMLReader and its member functions are called to process XML.
MlpParseHandlers::MlpParseHandlers | ( | ) |
Constructor.
Constructor
Constructor initiates tag stack, tagNames object and incoming message.
MlpParseHandlers::~MlpParseHandlers | ( | ) |
Destructor.
Destructor
Destructor cleans tag stack.
void MlpParseHandlers::characters | ( | const XMLCh *const | chars, | |
const unsigned int | length | |||
) |
Processes CDATA or PCDATA of each tag.
Processes CDATA and PCDATA between starting and closing XML elements
This method is called until all characters of CDATA or PCDATA of processed tag are in _charBuf.
chars | Part of CDATA or PCDATA. | |
length | Length of chars content. |
void MlpParseHandlers::clean | ( | ) |
Cleans MlpParseHandler.
This method is called after the message is processed. It cleans all internal variables and tag stack.
void MlpParseHandlers::endDocument | ( | ) |
not used
Not used
void MlpParseHandlers::endElement | ( | const XMLCh *const | uri, | |
const XMLCh *const | localname, | |||
const XMLCh *const | qname | |||
) |
Processes each closing XML element
void MlpParseHandlers::endPrefixMapping | ( | const XMLCh *const | prefix | ) |
not used
Not used
void MlpParseHandlers::ignorableWhitespace | ( | const XMLCh *const | chars, | |
const unsigned int | length | |||
) |
not used
Not used
void MlpParseHandlers::processingInstruction | ( | const XMLCh *const | target, | |
const XMLCh *const | data | |||
) |
not used
Not used
void MlpParseHandlers::resetDocument | ( | ) |
not used
Not used
void MlpParseHandlers::setDocumentLocator | ( | const xercesc::Locator *const | locator | ) |
not used
Not used
void MlpParseHandlers::setNewMsg | ( | MlpMessage * | emptyMsg | ) |
void MlpParseHandlers::skippedEntity | ( | const XMLCh *const | name | ) |
not used
Not used
void MlpParseHandlers::startDocument | ( | ) |
not used
Not used
void MlpParseHandlers::startElement | ( | const XMLCh *const | uri, | |
const XMLCh *const | localname, | |||
const XMLCh *const | qname, | |||
const xercesc::Attributes & | attrs | |||
) |
Processes each starting XML element
void MlpParseHandlers::startPrefixMapping | ( | const XMLCh *const | prefix, | |
const XMLCh *const | uri | |||
) |
not used
Not used