MapTransform Class Reference

Inheritance diagram for MapTransform:

Inheritance graph
[legend]
Collaboration diagram for MapTransform:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 45 of file maptransform.h.


Public Member Functions

 MapTransform (ConfigFile *cf, int section)
virtual ~MapTransform ()
virtual int ProcessMessage (QueuePointer &resp_queue, player_msghdr *hdr, void *data)
 Message handler.
int Setup ()
 Initialize the driver.
int Shutdown ()
 Finalize the driver.

Protected Member Functions

int GetMap ()
virtual int Transform ()=0

Protected Attributes

player_map_info_t source_map
player_devaddr_t source_map_addr
char * source_data
player_map_info_t new_map
char * new_data

Member Function Documentation

int MapTransform::ProcessMessage ( QueuePointer resp_queue,
player_msghdr hdr,
void *  data 
) [virtual]

Message handler.

This function is called once for each message in the incoming queue. Reimplement it to provide message handling. Return 0 if you handled the message and -1 otherwise

Parameters:
resp_queue The queue to which any response should go.
hdr The message header
data The message body

Reimplemented from Driver.

Definition at line 197 of file maptransform.cc.

References Driver::device_addr, Message::MatchMessage(), new_data, new_map, PLAYER_MAP_REQ_GET_DATA, PLAYER_MAP_REQ_GET_INFO, PLAYER_MSG0, PLAYER_MSG4, PLAYER_MSGTYPE_REQ, PLAYER_MSGTYPE_RESP_ACK, PLAYER_WARN2, and Driver::Publish().

Here is the call graph for this function:

int MapTransform::Setup (  )  [virtual]

Initialize the driver.

This function is called with the first client subscribes; it MUST be implemented by the driver.

Returns:
Returns 0 on success.

Implements Driver.

Definition at line 54 of file maptransform.cc.

References source_data.

int MapTransform::Shutdown (  )  [virtual]

Finalize the driver.

This function is called with the last client unsubscribes; it MUST be implemented by the driver.

Returns:
Returns 0 on success.

Implements Driver.

Definition at line 188 of file maptransform.cc.

References new_data.


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

Last updated 12 September 2005 21:38:45