SourceForge.net Logo
Public Member Functions | List of all members
EventSerializer Class Reference

#include <EventSerializer.hpp>

Inheritance diagram for EventSerializer:
Inheritance graph
[legend]

Public Member Functions

 EventSerializer (const char *encoding, const char *xmlVersion, xercesc::XMLFormatTarget *target, xercesc::MemoryManager *mm=xercesc::XMLPlatformUtils::fgMemoryManager)
 
 EventSerializer (xercesc::XMLFormatTarget *target, xercesc::MemoryManager *mm=xercesc::XMLPlatformUtils::fgMemoryManager)
 
 ~EventSerializer ()
 
virtual void setLocationInfo (const LocationInfo *location)
 Recieves a LocationInfo object that is owned by the caller, and will be updated with the current location information as the parse progresses. More...
 
virtual void startDocumentEvent (const XMLCh *documentURI, const XMLCh *encoding)
 Handles a document node as an event. More...
 
virtual void endDocumentEvent ()
 Handles a document node as an event. More...
 
virtual void startElementEvent (const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname)
 Handles the start of an element node as an event. More...
 
virtual void endElementEvent (const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname, const XMLCh *typeURI, const XMLCh *typeName)
 Handles the end of an element node as an event. More...
 
virtual void piEvent (const XMLCh *target, const XMLCh *value)
 Handles a processing instruction node as an event. More...
 
virtual void textEvent (const XMLCh *value)
 Handles a text node as an event. More...
 
virtual void textEvent (const XMLCh *chars, unsigned int length)
 Handles a text node as an event. More...
 
virtual void commentEvent (const XMLCh *value)
 Handles a comment node as an event. More...
 
virtual void attributeEvent (const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname, const XMLCh *value, const XMLCh *typeURI, const XMLCh *typeName)
 Handles an attribute node as an event. More...
 
virtual void namespaceEvent (const XMLCh *prefix, const XMLCh *uri)
 Handles a namespace binding as an event. More...
 
virtual void atomicItemEvent (AnyAtomicType::AtomicObjectType type, const XMLCh *value, const XMLCh *typeURI, const XMLCh *typeName)
 Handles an atomic item as an event. More...
 
virtual void endEvent ()
 Called when all events have been reported. More...
 
void addNewlines (bool add)
 
void useSelfClosingElement (bool value)
 
void addXMLDeclarations (bool value)
 
- Public Member Functions inherited from EventHandler
virtual ~EventHandler ()
 

Constructor & Destructor Documentation

EventSerializer::EventSerializer ( const char *  encoding,
const char *  xmlVersion,
xercesc::XMLFormatTarget target,
xercesc::MemoryManager mm = xercesc::XMLPlatformUtils::fgMemoryManager 
)
EventSerializer::EventSerializer ( xercesc::XMLFormatTarget target,
xercesc::MemoryManager mm = xercesc::XMLPlatformUtils::fgMemoryManager 
)
EventSerializer::~EventSerializer ( )

Member Function Documentation

void EventSerializer::addNewlines ( bool  add)
inline
void EventSerializer::addXMLDeclarations ( bool  value)
inline
virtual void EventSerializer::atomicItemEvent ( AnyAtomicType::AtomicObjectType  type,
const XMLCh *  value,
const XMLCh *  typeURI,
const XMLCh *  typeName 
)
virtual

Handles an atomic item as an event.

Reimplemented from EventHandler.

virtual void EventSerializer::attributeEvent ( const XMLCh *  prefix,
const XMLCh *  uri,
const XMLCh *  localname,
const XMLCh *  value,
const XMLCh *  typeURI,
const XMLCh *  typeName 
)
virtual

Handles an attribute node as an event.

Implements EventHandler.

virtual void EventSerializer::commentEvent ( const XMLCh *  value)
virtual

Handles a comment node as an event.

Implements EventHandler.

virtual void EventSerializer::endDocumentEvent ( )
virtual

Handles a document node as an event.

Implements EventHandler.

virtual void EventSerializer::endElementEvent ( const XMLCh *  prefix,
const XMLCh *  uri,
const XMLCh *  localname,
const XMLCh *  typeURI,
const XMLCh *  typeName 
)
virtual

Handles the end of an element node as an event.

Implements EventHandler.

virtual void EventSerializer::endEvent ( )
virtual

Called when all events have been reported.

Implements EventHandler.

virtual void EventSerializer::namespaceEvent ( const XMLCh *  prefix,
const XMLCh *  uri 
)
virtual

Handles a namespace binding as an event.

Implements EventHandler.

virtual void EventSerializer::piEvent ( const XMLCh *  target,
const XMLCh *  value 
)
virtual

Handles a processing instruction node as an event.

Implements EventHandler.

virtual void EventSerializer::setLocationInfo ( const LocationInfo location)
inlinevirtual

Recieves a LocationInfo object that is owned by the caller, and will be updated with the current location information as the parse progresses.

Reimplemented from EventHandler.

virtual void EventSerializer::startDocumentEvent ( const XMLCh *  documentURI,
const XMLCh *  encoding 
)
virtual

Handles a document node as an event.

Implements EventHandler.

virtual void EventSerializer::startElementEvent ( const XMLCh *  prefix,
const XMLCh *  uri,
const XMLCh *  localname 
)
virtual

Handles the start of an element node as an event.

Implements EventHandler.

virtual void EventSerializer::textEvent ( const XMLCh *  value)
virtual

Handles a text node as an event.

Implements EventHandler.

virtual void EventSerializer::textEvent ( const XMLCh *  chars,
unsigned int  length 
)
virtual

Handles a text node as an event.

Implements EventHandler.

void EventSerializer::useSelfClosingElement ( bool  value)
inline

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