dtDAL::MapContentHandler Class Reference

The SAX2 content handler for loading maps. More...

#include <mapcontenthandler.h>

List of all members.

Default implementation of the ErrorHandler interface

virtual void error (const xercesc::SAXParseException &exc)
 
See also:
xercesc::ErrorHandler::warning

virtual void fatalError (const xercesc::SAXParseException &exc)
 
See also:
xercesc::ErrorHandler::fatalError

virtual void warning (const xercesc::SAXParseException &exc)
 
See also:
xercesc::ErrorHandler::warning

virtual void resetErrors ()
 
See also:
xercesc::ErrorHandler::resetErrors

bool HasFoundMapName () const
 
Returns:
true if the map parsing has come across the map name yet.

MapGetMap ()
 note: store a RefPtr to this map immediately because reparsing with this handler would otherwise cause it to be deleted.
const MapGetMap () const
void ClearMap ()
 This causes the parser to release its reference to the map.
virtual ~MapContentHandler ()

Public Member Functions

 MapContentHandler ()
 Constructor.
virtual const std::vector
< std::string > & 
GetMissingLibraries ()
virtual const std::set
< std::string > & 
GetMissingActorTypes ()
virtual void characters (const XMLCh *const chars, const unsigned int length)
 
See also:
DocumentHandler::characters

virtual void endDocument ()
 
See also:
DocumentHandler::endDocument

virtual void endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)
 
See also:
DocumentHandler::endElement

virtual void ignorableWhitespace (const XMLCh *const chars, const unsigned int length)
 
See also:
DocumentHandler::ignorableWhitespace

virtual void processingInstruction (const XMLCh *const target, const XMLCh *const data)
 
See also:
DocumentHandler::processingInstruction

virtual void resetDocument ()
 Any previously held onto map created during parsing will be deleted.
virtual void setDocumentLocator (const xercesc::Locator *const locator)
 
See also:
Locator

virtual void startDocument ()
 Any map held onto by a previous parsing will be deleted here and new map created.
virtual void startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const xercesc::Attributes &attrs)
 
See also:
DocumentHandler::startElement

virtual void startPrefixMapping (const XMLCh *const prefix, const XMLCh *const uri)
 
See also:
DocumentHandler::startPrefixMapping

virtual void endPrefixMapping (const XMLCh *const prefix)
 
See also:
DocumentHandler::endPrefixMapping

virtual void skippedEntity (const XMLCh *const name)
 
See also:
DocumentHandler::skippedEntity

Default implementation of the EntityResolver interface.
virtual xercesc::InputSource * resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId)
 
See also:
EntityResolver::resolveEntity


Detailed Description

The SAX2 content handler for loading maps.

Constructor & Destructor Documentation

dtDAL::MapContentHandler::MapContentHandler (  ) 

Constructor.

dtDAL::MapContentHandler::~MapContentHandler (  )  [protected, virtual]


Member Function Documentation

virtual const std::vector<std::string>& dtDAL::MapContentHandler::GetMissingLibraries (  )  [inline, virtual]

virtual const std::set<std::string>& dtDAL::MapContentHandler::GetMissingActorTypes (  )  [inline, virtual]

void dtDAL::MapContentHandler::characters ( const XMLCh *const   chars,
const unsigned int  length 
) [virtual]

See also:
DocumentHandler::characters

void dtDAL::MapContentHandler::endDocument (  )  [virtual]

See also:
DocumentHandler::endDocument

void dtDAL::MapContentHandler::endElement ( const XMLCh *const   uri,
const XMLCh *const   localname,
const XMLCh *const   qname 
) [virtual]

See also:
DocumentHandler::endElement

We pop if the element was never filled in. This happens if the value is empty for parameter data. We don't pop for a group because that is handled separately below.

void dtDAL::MapContentHandler::ignorableWhitespace ( const XMLCh *const   chars,
const unsigned int  length 
) [virtual]

See also:
DocumentHandler::ignorableWhitespace

void dtDAL::MapContentHandler::processingInstruction ( const XMLCh *const   target,
const XMLCh *const   data 
) [virtual]

See also:
DocumentHandler::processingInstruction

void dtDAL::MapContentHandler::resetDocument (  )  [virtual]

Any previously held onto map created during parsing will be deleted.

See also:
DocumentHandler::resetDocument

void dtDAL::MapContentHandler::setDocumentLocator ( const xercesc::Locator *const   locator  )  [virtual]

See also:
Locator

void dtDAL::MapContentHandler::startDocument (  )  [virtual]

Any map held onto by a previous parsing will be deleted here and new map created.

See also:
DocumentHandler::startDocument

void dtDAL::MapContentHandler::startElement ( const XMLCh *const   uri,
const XMLCh *const   localname,
const XMLCh *const   qname,
const xercesc::Attributes &  attrs 
) [virtual]

See also:
DocumentHandler::startElement

void dtDAL::MapContentHandler::startPrefixMapping ( const XMLCh *const   prefix,
const XMLCh *const   uri 
) [virtual]

See also:
DocumentHandler::startPrefixMapping

void dtDAL::MapContentHandler::endPrefixMapping ( const XMLCh *const   prefix  )  [virtual]

See also:
DocumentHandler::endPrefixMapping

void dtDAL::MapContentHandler::skippedEntity ( const XMLCh *const   name  )  [virtual]

See also:
DocumentHandler::skippedEntity

InputSource * dtDAL::MapContentHandler::resolveEntity ( const XMLCh *const   publicId,
const XMLCh *const   systemId 
) [virtual]

See also:
EntityResolver::resolveEntity

void dtDAL::MapContentHandler::error ( const xercesc::SAXParseException &  exc  )  [virtual]

See also:
xercesc::ErrorHandler::warning

See also:
xercesc::SAXParseException::SAXParseException

void dtDAL::MapContentHandler::fatalError ( const xercesc::SAXParseException &  exc  )  [virtual]

See also:
xercesc::ErrorHandler::fatalError

See also:
xercesc::SAXParseException::SAXParseException

void dtDAL::MapContentHandler::warning ( const xercesc::SAXParseException &  exc  )  [virtual]

See also:
xercesc::ErrorHandler::warning

See also:
xercesc::SAXParseException::SAXParseException

void dtDAL::MapContentHandler::resetErrors (  )  [virtual]

See also:
xercesc::ErrorHandler::resetErrors

bool dtDAL::MapContentHandler::HasFoundMapName (  )  const [inline]

Returns:
true if the map parsing has come across the map name yet.

Map * dtDAL::MapContentHandler::GetMap (  ) 

note: store a RefPtr to this map immediately because reparsing with this handler would otherwise cause it to be deleted.

Returns:
a handle to the map parsed, or NULL if no map has been created.

const Map * dtDAL::MapContentHandler::GetMap (  )  const

void dtDAL::MapContentHandler::ClearMap (  ) 

This causes the parser to release its reference to the map.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008