#include <p_driver.h>
Public Member Functions | |
Stg::Model * | LocateModel (char *basename, player_devaddr_t *addr, const std::string &type) |
Interface * | LookupDevice (player_devaddr_t addr) |
find the device record with this Player id | |
virtual int | ProcessMessage (QueuePointer &resp_queue, player_msghdr *hdr, void *data) |
virtual int | Setup () |
virtual int | Shutdown () |
StgDriver (ConfigFile *cf, int section) | |
virtual int | Subscribe (QueuePointer &queue, player_devaddr_t addr) |
virtual int | Unsubscribe (QueuePointer &queue, player_devaddr_t addr) |
virtual void | Update () |
~StgDriver (void) | |
Static Public Attributes | |
static bool | usegui = true |
static Stg::World * | world = NULL |
all player devices share the same Stage world (for now) | |
Protected Attributes | |
std::vector< Interface * > | devices |
an array of pointers to Interface objects, defined below |
Definition at line 18 of file p_driver.h.
StgDriver::StgDriver | ( | ConfigFile * | cf, |
int | section | ||
) |
Definition at line 291 of file p_driver.cc.
StgDriver::~StgDriver | ( | void | ) |
Definition at line 538 of file p_driver.cc.
Model * StgDriver::LocateModel | ( | char * | basename, |
player_devaddr_t * | addr, | ||
const std::string & | type | ||
) |
Definition at line 445 of file p_driver.cc.
Interface * StgDriver::LookupDevice | ( | player_devaddr_t | addr | ) |
find the device record with this Player id
Definition at line 484 of file p_driver.cc.
int StgDriver::ProcessMessage | ( | QueuePointer & | resp_queue, |
player_msghdr * | hdr, | ||
void * | data | ||
) | [virtual] |
Definition at line 565 of file p_driver.cc.
int StgDriver::Setup | ( | ) | [virtual] |
Definition at line 475 of file p_driver.cc.
int StgDriver::Shutdown | ( | void | ) | [virtual] |
Definition at line 547 of file p_driver.cc.
int StgDriver::Subscribe | ( | QueuePointer & | queue, |
player_devaddr_t | addr | ||
) | [virtual] |
Definition at line 501 of file p_driver.cc.
int StgDriver::Unsubscribe | ( | QueuePointer & | queue, |
player_devaddr_t | addr | ||
) | [virtual] |
Definition at line 521 of file p_driver.cc.
void StgDriver::Update | ( | void | ) | [virtual] |
The server thread calls this method frequently. We use it to check for new commands and configs
Definition at line 585 of file p_driver.cc.
std::vector<Interface*> StgDriver::devices [protected] |
an array of pointers to Interface objects, defined below
Definition at line 54 of file p_driver.h.
bool StgDriver::usegui = true [static] |
Definition at line 42 of file p_driver.h.
World * StgDriver::world = NULL [static] |
all player devices share the same Stage world (for now)
Definition at line 41 of file p_driver.h.