StgDriver Class Reference

#include <p_driver.h>

List of all members.

Public Member Functions

Stg::ModelLocateModel (char *basename, player_devaddr_t *addr, const std::string &type)
InterfaceLookupDevice (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::WorldGuiworld = 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,
const std::string &  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 Tue Oct 20 15:42:06 2009 for Stage by  doxygen 1.6.1