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

vrpn_Nikon_Controls Class Reference

#include <vrpn_nikon_controls.h>

Class diagram for vrpn_Nikon_Controls:

vrpn_Serial_Analog vrpn_Analog_Output vrpn_Analog vrpn_BaseClass vrpn_BaseClassUnique

List of all members.


Public Members

 vrpn_Nikon_Controls (const char *device_name, vrpn_Connection *con = NULL, const char *port_name = "com1")
 ~vrpn_Nikon_Controls (void)
virtual void mainloop ()
This routine is called each time through the server's main loop. More...


Protected Members

virtual int reset (void)
virtual int get_report (void)
virtual void report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY)
Send changes since the last time.

virtual void report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY)
Send values whether or not they have changed.

int _status
unsigned char _buffer [512]
int _bufcount
double _requested_focus
struct timeval timestamp

Static Protected Members

int handle_request_message (void *userdata, vrpn_HANDLERPARAM p)
Responds to a request to change one of the values by setting the channel to that value.

int handle_connect_message (void *userdata, vrpn_HANDLERPARAM p)
Responds to a connection request with a report of the values.


Detailed Description


Member Function Documentation

vrpn_Nikon_Controls::vrpn_Nikon_Controls (const char * device_name, vrpn_Connection * con = NULL, const char * port_name = "com1")

vrpn_Nikon_Controls::~vrpn_Nikon_Controls (void) [inline]

void vrpn_Nikon_Controls::mainloop (void) [virtual]

This routine is called each time through the server's main loop.

It will take a course of action depending on the current status of the device, either trying to reset it or trying to get a reading from it. It will try to reset the device if no data has come from it for a couple of seconds.

Reimplemented from vrpn_BaseClass.

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

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

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

Send changes since the last time.

Reimplemented from vrpn_Analog.

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

Send values whether or not they have changed.

Reimplemented from vrpn_Analog.

int vrpn_Nikon_Controls::handle_request_message (void * userdata, vrpn_HANDLERPARAM p) [static, protected]

Responds to a request to change one of the values by setting the channel to that value.

int vrpn_Nikon_Controls::handle_connect_message (void * userdata, vrpn_HANDLERPARAM p) [static, protected]

Responds to a connection request with a report of the values.


Member Data Documentation

int vrpn_Nikon_Controls::_status [protected]

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

int vrpn_Nikon_Controls::_bufcount [protected]

double vrpn_Nikon_Controls::_requested_focus [protected]

struct timeval vrpn_Nikon_Controls::timestamp [protected]

Reimplemented from vrpn_Analog.


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