StructureHandlerBase Class Reference

Basic implementation of StructureHandler. More...

#include <structurehandlerbase.h>

Inheritance diagram for StructureHandlerBase:

StructureHandler AddContactAnswerHandler AnswerHandler BambooHandler ContactHandler ContactListHandler ContentHandler ErrorHandler EventHandler HeaderHandler MessageHandler RequestHandler StateChangedEventHandler List of all members.

Public Member Functions

 StructureHandlerBase ()
 Constructor.
virtual ~StructureHandlerBase ()
 Destructor.
virtual StructureHandlerstartChild (const XMLCh *const , const Attributes &)
 This method is called when a new element (Child) is met.
virtual void endDirectChild (const XMLCh *const , const std::string &)
 This method is called when a closed element (Child) is met.
virtual void endElement (const XMLCh *const , const XMLCh *const )
 This method is called when the element which "makes" this StructureHandler is closed. (Not used).
virtual void endStructureChild (const XMLCh *const , const StructureHandler *)
 This method is called when a element which causes a StructureHandler switch, is closed.
virtual void startElement (const XMLCh *const , const Attributes &)
 This method is called when this StrucutreHandler is created.

Static Public Member Functions

static int readInt (const std::string &content)
 Read an integer from the string.

Detailed Description

Basic implementation of StructureHandler.

It is provided for convenience. Derived class has just to override methods thay want.

Author:
Sylvain Archenault <sylvain.archenault@laposte.net>

Yves Houpert <yves.houpert@insa-rouen.fr>


Member Function Documentation

virtual void StructureHandlerBase::endDirectChild const XMLCh *  const,
const std::string & 
[inline, virtual]
 

This method is called when a closed element (Child) is met.

This method is used to process an element handled by this Structure Handler.

Implements StructureHandler.

Reimplemented in AddContactAnswerHandler, AnswerHandler, ContactHandler, ContactListHandler, ContentHandler, ErrorHandler, HeaderHandler, and StateChangedEventHandler.

int StructureHandlerBase::readInt const std::string &  content  )  [static]
 

Read an integer from the string.

It uses stl iostream to read from the string.

Parameters:
content String to read int from.
Returns:
Integer read from the string.

virtual StructureHandler* StructureHandlerBase::startChild const XMLCh *  const,
const Attributes & 
[inline, virtual]
 

This method is called when a new element (Child) is met.

It returns a StructureHandler object able to parse the element structure. It returns null (0), if this handler is able to parse this structure.

Returns:
A StructureHandler object, if the new element have to be process by another StructureHandler, null otherwise.

Implements StructureHandler.

Reimplemented in AddContactAnswerHandler, AnswerHandler, BambooHandler, ContactListHandler, EventHandler, RequestHandler, and StateChangedEventHandler.


The documentation for this class was generated from the following files:
Generated on Fri May 19 12:15:55 2006 for Bamboo Ch@t by  doxygen 1.4.6