StgDriver Class Reference

#include <p_driver.h>


Public Member Functions

stg_model_tLocateModel (const char *basename, stg_model_type_t mod_type)
stg_model_tLocateModel (char *basename, player_devaddr_t *addr, stg_model_initializer_t init)
InterfaceLookupDevice (player_device_id_t id)
InterfaceLookupDevice (player_devaddr_t addr)
void Main ()
virtual int ProcessMessage (MessageQueue *resp_queue, player_msghdr *hdr, void *data)
int Setup ()
virtual int Setup ()
int Shutdown ()
virtual int Shutdown ()
 StgDriver (ConfigFile *cf, int section)
 StgDriver (ConfigFile *cf, int section)
int Subscribe (player_device_id_t id)
virtual int Subscribe (player_devaddr_t addr)
int Unsubscribe (player_device_id_t id)
virtual int Unsubscribe (player_devaddr_t addr)
void Update ()
virtual void Update ()
 ~StgDriver (void)
 ~StgDriver (void)

Static Public Attributes

static stg_world_tworld
static stg_world_tworld = NULL

Protected Attributes

GPtrArray * devices
GPtrArray * devices

Constructor & Destructor Documentation

StgDriver::StgDriver ConfigFile *  cf,
int  section
 

StgDriver::~StgDriver void   ) 
 

StgDriver::StgDriver ConfigFile *  cf,
int  section
 

StgDriver::~StgDriver void   ) 
 


Member Function Documentation

stg_model_t* StgDriver::LocateModel const char *  basename,
stg_model_type_t  mod_type
 

stg_model_t * StgDriver::LocateModel char *  basename,
player_devaddr_t *  addr,
stg_model_initializer_t  init
 

Interface* StgDriver::LookupDevice player_device_id_t  id  ) 
 

find the device record with this Player id

Interface * StgDriver::LookupDevice player_devaddr_t  addr  ) 
 

find the device record with this Player id

void StgDriver::Main  ) 
 

Main function for device thread.

int StgDriver::ProcessMessage MessageQueue *  resp_queue,
player_msghdr *  hdr,
void *  data
[virtual]
 

int StgDriver::Setup  ) 
 

int StgDriver::Setup  )  [virtual]
 

int StgDriver::Shutdown  ) 
 

int StgDriver::Shutdown  )  [virtual]
 

int StgDriver::Subscribe player_device_id_t  id  ) 
 

int StgDriver::Subscribe player_devaddr_t  addr  )  [virtual]
 

int StgDriver::Unsubscribe player_device_id_t  id  ) 
 

int StgDriver::Unsubscribe player_devaddr_t  addr  )  [virtual]
 

void StgDriver::Update  ) 
 

The server thread calls this method frequently. We use it to check for new commands and configs

void StgDriver::Update  )  [virtual]
 

The server thread calls this method frequently. We use it to check for new commands and configs


Field Documentation

GPtrArray* StgDriver::devices [protected]
 

an array of pointers to device_record_t structs, defined below

GPtrArray* StgDriver::devices [protected]
 

an array of pointers to Interface objects, defined below

stg_world_t* StgDriver::world [static]
 

all player devices share the same Stage world

stg_world_t * 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 Thu Dec 13 14:35:18 2007 for Stage by  doxygen 1.4.6