Erratic Class Reference
Inheritance diagram for Erratic:Detailed Description
Definition at line 138 of file erratic.h.
Member Function Documentation
int Erratic::Subscribe | ( | player_devaddr_t | id | ) | [virtual] |
Subscribe to this driver.
The Subscribe() and Unsubscribe() methods are used to control subscriptions to the driver; a driver MAY override them, but usually won't.
- Parameters:
-
addr Address of the device to subscribe to (the driver may have more than one interface).
- Returns:
- Returns 0 on success.
Reimplemented from Driver.
Definition at line 778 of file erratic.cc.
References aio_ir_subscriptions, Device::MatchDeviceAddress(), position_subscriptions, ptz2_subscriptions, ptz_subscriptions, sonar_subscriptions, and Driver::Subscribe().
Here is the call graph for this function:
int Erratic::Unsubscribe | ( | player_devaddr_t | id | ) | [virtual] |
Unsubscribe from this driver.
The Subscribe() and Unsubscribe() methods are used to control subscriptions to the driver; a driver MAY override them, but usually won't.
- Parameters:
-
addr Address of the device to unsubscribe from (the driver may have more than one interface).
- Returns:
- Returns 0 on success.
Reimplemented from Driver.
Definition at line 807 of file erratic.cc.
References aio_ir_subscriptions, Device::MatchDeviceAddress(), position_subscriptions, ptz2_subscriptions, ptz_subscriptions, sonar_subscriptions, and Driver::Unsubscribe().
Here is the call graph for this function:
int Erratic::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 350 of file erratic.cc.
int Erratic::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 708 of file erratic.cc.
References Disconnect().
Here is the call graph for this function:
int Erratic::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 1251 of file erratic.cc.
References PLAYER_MSGTYPE_CMD, PLAYER_MSGTYPE_REQ, and player_msghdr::type.
The documentation for this class was generated from the following files: