Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

VrpnButton Class Reference

#include <vrpnButton.h>

List of all members.

Public Member Functions

 VrpnButton (const string &button_name, vrpn_Connection *connection)
 ~VrpnButton ()
INLINE const string & get_button_name () const
INLINE bool is_empty () const
void mark (VrpnButtonDevice *device)
void unmark (VrpnButtonDevice *device)
INLINE void poll ()
void output (ostream &out) const
void write (ostream &out, int indent_level=0) const

Private Types

typedef pvector< VrpnButtonDevice * > Devices

Static Private Member Functions

void vrpn_button_callback (void *userdata, const vrpn_BUTTONCB info)

Private Attributes

string _button_name
vrpn_Button_Remote * _button
Devices _devices


Member Typedef Documentation

typedef pvector<VrpnButtonDevice *> VrpnButton::Devices [private]
 

Definition at line 70 of file vrpnButton.h.


Constructor & Destructor Documentation

VrpnButton::VrpnButton const string &  button_name,
vrpn_Connection *  connection
 

Definition at line 34 of file vrpnButton.cxx.

References _button, _button_name, and vrpn_button_callback().

VrpnButton::~VrpnButton  ) 
 

Definition at line 48 of file vrpnButton.cxx.

References _button.


Member Function Documentation

INLINE const string& VrpnButton::get_button_name  )  const
 

Referenced by VrpnClient::free_button(), and write().

INLINE bool VrpnButton::is_empty  )  const
 

Referenced by VrpnClient::disconnect_button_device(), and VrpnClient::free_button().

void VrpnButton::mark VrpnButtonDevice device  ) 
 

Definition at line 59 of file vrpnButton.cxx.

References _devices.

void VrpnButton::output ostream &  out  )  const
 

Definition at line 92 of file vrpnButton.cxx.

References _button_name.

Referenced by operator<<().

INLINE void VrpnButton::poll  ) 
 

Referenced by VrpnClient::do_poll().

void VrpnButton::unmark VrpnButtonDevice device  ) 
 

Definition at line 73 of file vrpnButton.cxx.

References _devices.

Referenced by VrpnClient::disconnect_button_device().

void VrpnButton::vrpn_button_callback void *  userdata,
const vrpn_BUTTONCB  info
[static, private]
 

Definition at line 116 of file vrpnButton.cxx.

References _devices, ClientDevice::lock(), ClientButtonDevice::set_button_state(), and ClientDevice::unlock().

Referenced by VrpnButton().

void VrpnButton::write ostream &  out,
int  indent_level = 0
const
 

Definition at line 102 of file vrpnButton.cxx.

References _devices, get_button_name(), and indent().

Referenced by VrpnClient::write().


Member Data Documentation

vrpn_Button_Remote* VrpnButton::_button [private]
 

Definition at line 68 of file vrpnButton.h.

Referenced by VrpnButton(), and ~VrpnButton().

string VrpnButton::_button_name [private]
 

Definition at line 67 of file vrpnButton.h.

Referenced by output(), and VrpnButton().

Devices VrpnButton::_devices [private]
 

Definition at line 71 of file vrpnButton.h.

Referenced by mark(), unmark(), vrpn_button_callback(), and write().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:14:01 2003 for Panda by doxygen1.3