Public Member Functions | |
MapTransform (ConfigFile *cf, int section) | |
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.
References player_map_data::col, player_map_data::data, player_map_data::data_count, Driver::device_addr, player_map_data::height, Message::MatchMessage(), PLAYER_MAP_REQ_GET_DATA, PLAYER_MAP_REQ_GET_INFO, PLAYER_MSG0, PLAYER_MSG4, PLAYER_MSGTYPE_REQ, PLAYER_MSGTYPE_RESP_ACK, PLAYER_WARN2, Driver::Publish(), player_map_data::row, and player_map_data::width.
int MapTransform::Setup | ( | void | ) | [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.
Reimplemented from Driver.
int MapTransform::Shutdown | ( | void | ) | [virtual] |
Finalize the driver.
This function is called with the last client unsubscribes.
- Returns:
- Returns 0 on success.
Reimplemented from Driver.
The documentation for this class was generated from the following files:
- maptransform.h
- maptransform.cc