Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
StgDriver Class Reference

#include <p_driver.h>

Inheritance diagram for StgDriver:
Inheritance graph
[legend]

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 More...
 
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::Worldworld = NULL
 all player devices share the same Stage world (for now) More...
 

Protected Attributes

std::vector< Interface * > devices
 an array of pointers to Interface objects, defined below More...
 

Detailed Description

Definition at line 18 of file p_driver.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Member Data Documentation

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.


The documentation for this class was generated from the following files:


stage
Author(s): Richard Vaughan , Brian Gerkey , Reed Hedges , Andrew Howard , Toby Collett , Pooya Karimian , Jeremy Asher , Alex Couture-Beil , Geoff Biggs , Rich Mattes , Abbas Sadat
autogenerated on Mon Jun 10 2019 15:06:11