Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

DALT_Server::MapSAX2Handler Class Reference

This class contains the handling code for parsing XML maps. More...

#include <map_sax2_handler.h>

Inheritance diagram for DALT_Server::MapSAX2Handler:

Inheritance graph
[legend]
Collaboration diagram for DALT_Server::MapSAX2Handler:

Collaboration graph
[legend]
List of all members.

Public Methods

 MapSAX2Handler (WorldMap *wm)
void startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs)
void endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)
void fatalError (const SAXParseException &)

Private Attributes

WorldMapwmap
int dimensions
vector<int>* axis
int e_id
string e_type
vector<int>* e_pos

Detailed Description

This class contains the handling code for parsing XML maps.

Author:
Vlad Mereuta


Constructor & Destructor Documentation

DALT_Server::MapSAX2Handler::MapSAX2Handler ( WorldMap * wm )
 

constructor.

Parameters:
wm   pointer to the world map. the world map is going to take all the parsed data
Parameters:
wm  


Member Function Documentation

void DALT_Server::MapSAX2Handler::endElement ( const XMLCh *const uri,
const XMLCh *const localname,
const XMLCh *const qname )
 

called when the end of an element is encountered.

Parameters:
uri  
localname  
qname  

void DALT_Server::MapSAX2Handler::fatalError ( const SAXParseException & )
 

fatal error.

void DALT_Server::MapSAX2Handler::startElement ( const XMLCh *const uri,
const XMLCh *const localname,
const XMLCh *const qname,
const Attributes & attrs )
 

called when the start of an element is encountered.

Parameters:
uri  
localname  
qname  
attrs  


Member Data Documentation

vector< int > * DALT_Server::MapSAX2Handler::axis [private]
 

the axis dimensions vector.

int DALT_Server::MapSAX2Handler::dimensions [private]
 

dimensions.

int DALT_Server::MapSAX2Handler::e_id [private]
 

id of the entity being parsed.

vector< int > * DALT_Server::MapSAX2Handler::e_pos [private]
 

vector containing the coordinates of this entity.

string DALT_Server::MapSAX2Handler::e_type [private]
 

the type of the entity being parsed.

WorldMap * DALT_Server::MapSAX2Handler::wmap [private]
 

the world map.


The documentation for this class was generated from the following file:
Generated at Thu Jan 31 15:22:43 2002 for DALT Server by doxygen1.2.8 written by Dimitri van Heesch, © 1997-2001