StgDriver Class Reference
#include <p_driver.h>
Public Member Functions | |
Stg::Model * | LocateModel (char *basename, player_devaddr_t *addr, Stg::stg_model_type_t 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 Stg::WorldGui * | 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 |
Constructor & Destructor Documentation
StgDriver::StgDriver | ( | ConfigFile * | cf, | |
int | section | |||
) |
StgDriver::~StgDriver | ( | void | ) |
Member Function Documentation
Model * StgDriver::LocateModel | ( | char * | basename, | |
player_devaddr_t * | addr, | |||
Stg::stg_model_type_t | type | |||
) |
Interface * StgDriver::LookupDevice | ( | player_devaddr_t | addr | ) |
find the device record with this Player id
int StgDriver::ProcessMessage | ( | QueuePointer & | resp_queue, | |
player_msghdr * | hdr, | |||
void * | data | |||
) | [virtual] |
int StgDriver::Setup | ( | ) | [virtual] |
int StgDriver::Shutdown | ( | void | ) | [virtual] |
int StgDriver::Subscribe | ( | QueuePointer & | queue, | |
player_devaddr_t | addr | |||
) | [virtual] |
int StgDriver::Unsubscribe | ( | QueuePointer & | queue, | |
player_devaddr_t | addr | |||
) | [virtual] |
void StgDriver::Update | ( | void | ) | [virtual] |
The server thread calls this method frequently. We use it to check for new commands and configs
Member Data Documentation
std::vector<Interface*> StgDriver::devices [protected] |
an array of pointers to Interface objects, defined below
WorldGui * StgDriver::world = NULL [static] |
all player devices share the same Stage world (for now)
The documentation for this class was generated from the following files:
Generated on Wed Jul 22 11:51:05 2009 for Stage by
