ImageBase Class Reference

Inheritance diagram for ImageBase:
ThreadedDriver Driver

List of all members.

Public Member Functions

 ImageBase (ConfigFile *cf, int section, bool overwrite_cmds, size_t queue_maxlen, int interf)
 ImageBase (ConfigFile *cf, int section, bool overwrite_cmds=true, size_t queue_maxlen=PLAYER_MSGQUEUE_DEFAULT_MAXLEN)
int ProcessMessage (QueuePointer &resp_queue, player_msghdr *hdr, void *data)
 Message handler.

Protected Member Functions

virtual int ProcessFrame ()=0
virtual void Main ()
 Main method for driver thread.
virtual int MainSetup ()
 Sets up the resources needed by the driver thread.
virtual void MainQuit ()
 Cleanup method for driver thread (called when main exits).

Protected Attributes

Devicecamera_driver
player_devaddr_t camera_addr
player_camera_data_t stored_data
bool HaveData

Private Member Functions

 ImageBase (const ImageBase &)

Member Function Documentation

void ImageBase::Main (  )  [protected, virtual]

Main method for driver thread.

drivers have their own thread of execution, created using StartThread(); this is the entry point for the driver thread, and must be overloaded by all threaded drivers.

Implements ThreadedDriver.

References Driver::InQueue, and Driver::ProcessMessages().

void ImageBase::MainQuit ( void   )  [protected, virtual]

Cleanup method for driver thread (called when main exits).

Overload this method and to do additional cleanup when the driver thread exits.

Reimplemented from ThreadedDriver.

References Driver::InQueue, and Device::Unsubscribe().

int ImageBase::ProcessMessage ( QueuePointer resp_queue,
player_msghdr *  hdr,
void *  data 
) [virtual]

Message handler.

This function is called once for each message in the incoming queue. Reimplement it to provide message handling. Return 0 if you handled the message and -1 otherwise

Parameters:
resp_queue The queue to which any response should go.
hdr The message header
data The message body

Reimplemented from Driver.

References Message::MatchMessage().


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

Last updated 12 September 2005 21:38:45