This is the actual interface to a particular VRPN analog device, and all of its numbered controls. More...
#include "vrpnAnalog.h"
Public Member Functions | |
VrpnAnalog (const std::string &analog_name, vrpn_Connection *connection) | |
const std::string & | get_analog_name () const |
Returns the name of the analog device that was used to create this VrpnAnalog. More... | |
bool | is_empty () const |
Returns true if no VrpnAnalogDevices reference this VrpnAnalog, or false otherwise. More... | |
void | mark (VrpnAnalogDevice *device) |
Adds the indicated VrpnAnalogDevice to the list of devices that are sharing this VrpnAnalog. More... | |
void | output (std::ostream &out) const |
void | poll () |
Polls the connected device. More... | |
void | unmark (VrpnAnalogDevice *device) |
Removes the indicated VrpnAnalogDevice from the list of devices that are sharing this VrpnAnalog. More... | |
void | write (std::ostream &out, int indent_level=0) const |
This is the actual interface to a particular VRPN analog device, and all of its numbered controls.
A pointer to this object is stored in the VrpnClient class for each differently-named VRPN analog device we connect to.
The VRPN callbacks go here, which in turn get vectored out to any VrpnAnalogDevice objects that register with this. When the last VrpnAnalogDevice object unregisters, the VrpnAnalog will be deleted by the VrpnClient.
This class does not need to be exported from the DLL.
Definition at line 38 of file vrpnAnalog.h.
|
inline |
Returns the name of the analog device that was used to create this VrpnAnalog.
Definition at line 19 of file vrpnAnalog.I.
|
inline |
Returns true if no VrpnAnalogDevices reference this VrpnAnalog, or false otherwise.
Definition at line 28 of file vrpnAnalog.I.
void VrpnAnalog::mark | ( | VrpnAnalogDevice * | device | ) |
Adds the indicated VrpnAnalogDevice to the list of devices that are sharing this VrpnAnalog.
Definition at line 48 of file vrpnAnalog.cxx.
|
inline |
Polls the connected device.
Normally you should not call this directly; this will be called by the VrpnClient.
Definition at line 37 of file vrpnAnalog.I.
void VrpnAnalog::unmark | ( | VrpnAnalogDevice * | device | ) |
Removes the indicated VrpnAnalogDevice from the list of devices that are sharing this VrpnAnalog.
Definition at line 60 of file vrpnAnalog.cxx.