Main Page   Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  

vrpn_CerealBox Class Reference

#include <vrpn_CerealBox.h>

Class diagram for vrpn_CerealBox:

vrpn_Serial_Analog vrpn_Dial vrpn_Button vrpn_Analog vrpn_BaseClass vrpn_BaseClassUnique

List of all members.


Public Members

 vrpn_CerealBox (const char * name, vrpn_Connection * c, const char * port, int baud, const int numbuttons, const int numchannels, const int numencoders)
 ~vrpn_CerealBox ()
virtual void mainloop ()
Called once through each main loop iteration to handle updates. Remote object mainloop() should call d_connection->mainloop(). Server object mainloop() should service the device, and should not normally call d_connection->mainloop().


Protected Members

virtual void clear_values (void)
virtual int reset (void)
virtual int get_report (void)
virtual void report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY)
Send a report only if something has changed (for servers).

virtual void report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY)
Send a report whether something has changed or not (for servers).

int _status
int _numbuttons
int _numchannels
int _numencoders
int _expected_chars
unsigned char _buffer [512]
int _bufcount
struct timeval timestamp

Detailed Description


Member Function Documentation

vrpn_CerealBox::vrpn_CerealBox (const char * name, vrpn_Connection * c, const char * port, int baud, const int numbuttons, const int numchannels, const int numencoders)

vrpn_CerealBox::~vrpn_CerealBox () [inline]

void vrpn_CerealBox::mainloop (void) [virtual]

Called once through each main loop iteration to handle updates. Remote object mainloop() should call d_connection->mainloop(). Server object mainloop() should service the device, and should not normally call d_connection->mainloop().

Reimplemented from vrpn_BaseClass.

void vrpn_CerealBox::clear_values (void) [protected, virtual]

int vrpn_CerealBox::reset (void) [protected, virtual]

int vrpn_CerealBox::get_report (void) [protected, virtual]

void vrpn_CerealBox::report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY) [protected, virtual]

Send a report only if something has changed (for servers).

Reimplemented from vrpn_Analog.

void vrpn_CerealBox::report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY) [protected, virtual]

Send a report whether something has changed or not (for servers).

Reimplemented from vrpn_Analog.


Member Data Documentation

int vrpn_CerealBox::_status [protected]

int vrpn_CerealBox::_numbuttons [protected]

int vrpn_CerealBox::_numchannels [protected]

int vrpn_CerealBox::_numencoders [protected]

int vrpn_CerealBox::_expected_chars [protected]

unsigned char vrpn_CerealBox::_buffer[512] [protected]

int vrpn_CerealBox::_bufcount [protected]

struct timeval vrpn_CerealBox::timestamp [protected]

Reimplemented from vrpn_Dial.


The documentation for this class was generated from the following files:
Generated at Fri Sep 13 15:04:04 2002 for vrpn by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999