StgDriver Class Reference

#include <p_driver.h>

Inheritance diagram for StgDriver:

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...
 

Constructor & Destructor Documentation

◆ StgDriver()

StgDriver::StgDriver ( ConfigFile *  cf,
int  section 
)

◆ ~StgDriver()

StgDriver::~StgDriver ( void  )

Member Function Documentation

◆ LocateModel()

Model * StgDriver::LocateModel ( char *  basename,
player_devaddr_t *  addr,
const std::string &  type 
)

◆ LookupDevice()

Interface * StgDriver::LookupDevice ( player_devaddr_t  addr)

find the device record with this Player id

◆ ProcessMessage()

int StgDriver::ProcessMessage ( QueuePointer &  resp_queue,
player_msghdr *  hdr,
void *  data 
)
virtual

◆ Setup()

int StgDriver::Setup ( )
virtual

◆ Shutdown()

int StgDriver::Shutdown ( void  )
virtual

◆ Subscribe()

int StgDriver::Subscribe ( QueuePointer &  queue,
player_devaddr_t  addr 
)
virtual

◆ Unsubscribe()

int StgDriver::Unsubscribe ( QueuePointer &  queue,
player_devaddr_t  addr 
)
virtual

◆ Update()

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

◆ devices

std::vector<Interface*> StgDriver::devices
protected

an array of pointers to Interface objects, defined below

◆ usegui

bool StgDriver::usegui = true
static

◆ world

World * 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: