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)
 
InterfaceLookupInterface (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 StgDrivermaster_driver = NULL
 
static bool usegui = true
 
static Stg::Worldworld = NULL
 all player devices share the same Stage world (for now)
 

Protected Attributes

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

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 
)

◆ LookupInterface()

Interface * StgDriver::LookupInterface ( 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 ( )
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

◆ ifaces

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

an array of pointers to Interface objects, defined below

◆ master_driver

StgDriver * StgDriver::master_driver = NULL
static

◆ 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: