StgDriver Class Reference

#include <p_driver.h>


Public Member Functions

 StgDriver (ConfigFile *cf, int section)
 ~StgDriver (void)
virtual int Setup ()
virtual int Shutdown ()
virtual int Subscribe (player_device_id_t id)
virtual int Unsubscribe (player_device_id_t id)
virtual void Update ()
virtual int PutConfig (player_device_id_t id, void *cli, void *src, size_t len, struct timeval *timestamp)
InterfaceLookupDevice (player_device_id_t id)
stg_model_tLocateModel (const char *basename, stg_model_initializer_t init)
 StgDriver (ConfigFile *cf, int section)
 ~StgDriver (void)
int Setup ()
int Shutdown ()
int Subscribe (player_device_id_t id)
int Unsubscribe (player_device_id_t id)
void Main ()
void Update ()
InterfaceLookupDevice (player_device_id_t id)
stg_model_tLocateModel (const char *basename, stg_model_type_t mod_type)

Static Public Attributes

stg_world_tworld = NULL
stg_world_tworld

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

int StgDriver::Setup  )  [virtual]
 

int StgDriver::Shutdown  )  [virtual]
 

int StgDriver::Subscribe player_device_id_t  id  )  [virtual]
 

int StgDriver::Unsubscribe player_device_id_t  id  )  [virtual]
 

void StgDriver::Update  )  [virtual]
 

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

int StgDriver::PutConfig player_device_id_t  id,
void *  cli,
void *  src,
size_t  len,
struct timeval *  timestamp
[virtual]
 

override PutConfig to handle config requests as soon as they occur

Interface * StgDriver::LookupDevice player_device_id_t  id  ) 
 

find the device record with this Player id

stg_model_t * StgDriver::LocateModel const char *  basename,
stg_model_initializer_t  init
 

int StgDriver::Setup  ) 
 

int StgDriver::Shutdown  ) 
 

int StgDriver::Subscribe player_device_id_t  id  ) 
 

int StgDriver::Unsubscribe player_device_id_t  id  ) 
 

void StgDriver::Main  ) 
 

Main function for device thread.

void StgDriver::Update  ) 
 

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

Interface* StgDriver::LookupDevice player_device_id_t  id  ) 
 

find the device record with this Player id

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


Field Documentation

stg_world_t * StgDriver::world = NULL [static]
 

all player devices share the same Stage world (for now)

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

GPtrArray* StgDriver::devices [protected]
 

an array of pointers to device_record_t structs, defined below


The documentation for this class was generated from the following files:
Generated on Thu Aug 11 13:08:10 2005 for Stage by  doxygen 1.4.0