Pol  Rev 533
MapServer Class Reference

#include <mapserver.h>

+ Inheritance diagram for MapServer:
+ Collaboration diagram for MapServer:

List of all members.

Public Member Functions

virtual ~MapServer ()
virtual MAPCELL GetMapCell (unsigned short x, unsigned short y) const =0
void GetMapShapes (MapShapeList &list, unsigned short x, unsigned short y, unsigned int anyflags) const

Static Public Member Functions

static MapServerCreate (const RealmDescriptor &descriptor)

Protected Member Functions

 MapServer (const RealmDescriptor &descriptor)

Protected Attributes

RealmDescriptor _descriptor

Private Member Functions

 MapServer (const MapServer &)
void LoadFirstLevelIndex ()
void LoadSecondLevelIndex ()
void LoadSolids ()
MapServeroperator= (const MapServer &)

Private Attributes

vector< SOLIDX2_ELEM * > _index1
vector< SOLIDX2_ELEM_index2
vector< SOLIDS_ELEM_shapedata

Detailed Description

Definition at line 19 of file mapserver.h.


Constructor & Destructor Documentation

MapServer::~MapServer ( ) [virtual]

Definition at line 35 of file mapserver.cpp.

MapServer::MapServer ( const RealmDescriptor descriptor) [explicit, protected]

Definition at line 24 of file mapserver.cpp.

References LoadFirstLevelIndex(), LoadSecondLevelIndex(), and LoadSolids().

+ Here is the call graph for this function:

MapServer::MapServer ( const MapServer ) [private]

Member Function Documentation

MapServer * MapServer::Create ( const RealmDescriptor descriptor) [static]

Definition at line 151 of file mapserver.cpp.

References RealmDescriptor::mapserver_type.

Referenced by mapdump().

+ Here is the caller graph for this function:

virtual MAPCELL MapServer::GetMapCell ( unsigned short  x,
unsigned short  y 
) const [pure virtual]

Implemented in FileMapServer, and InMemoryMapServer.

Referenced by GetMapShapes(), and mapdump().

+ Here is the caller graph for this function:

void MapServer::GetMapShapes ( MapShapeList list,
unsigned short  x,
unsigned short  y,
unsigned int  anyflags 
) const
void MapServer::LoadFirstLevelIndex ( ) [private]

Definition at line 82 of file mapserver.cpp.

References _descriptor, _index1, _index2, RealmDescriptor::height, RealmDescriptor::path(), BinaryFile::Read(), SOLIDX2_FILLER_SIZE, SOLIDX_X_SIZE, SOLIDX_Y_SIZE, and RealmDescriptor::width.

Referenced by MapServer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void MapServer::LoadSecondLevelIndex ( ) [private]

Definition at line 47 of file mapserver.cpp.

References _descriptor, _index2, _shapedata, SOLIDX2_ELEM::addindex, SOLIDX2_ELEM::baseindex, decint(), BinaryFile::FileSize(), filesize(), passert, RealmDescriptor::path(), BinaryFile::Read(), BinaryFile::Seek(), SOLIDX2_FILLER_SIZE, SOLIDX_X_SIZE, SOLIDX_Y_SIZE, and x.

Referenced by MapServer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void MapServer::LoadSolids ( ) [private]

Definition at line 39 of file mapserver.cpp.

References _descriptor, _shapedata, RealmDescriptor::path(), and BinaryFile::ReadVector().

Referenced by MapServer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

MapServer& MapServer::operator= ( const MapServer ) [private]

Member Data Documentation

vector< SOLIDX2_ELEM* > MapServer::_index1 [private]

Definition at line 36 of file mapserver.h.

Referenced by GetMapShapes(), and LoadFirstLevelIndex().

vector< SOLIDX2_ELEM > MapServer::_index2 [private]

Definition at line 37 of file mapserver.h.

Referenced by LoadFirstLevelIndex(), and LoadSecondLevelIndex().

vector< SOLIDS_ELEM > MapServer::_shapedata [private]

Definition at line 38 of file mapserver.h.

Referenced by GetMapShapes(), LoadSecondLevelIndex(), and LoadSolids().


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