TOBI SignalServer  0.1
tobiss::Mouse Class Reference

Class to connected mouse devices. More...

#include <mouse_linux.h>

+ Inheritance diagram for tobiss::Mouse:
+ Collaboration diagram for tobiss::Mouse:

Public Member Functions

 Mouse (ticpp::Iterator< ticpp::Element > hw)
 Constructor.
virtual ~Mouse ()
 Destructor.
 Mouse (ticpp::Iterator< ticpp::Element > hw)
 Constructor.
virtual ~Mouse ()
 Destructor.

Protected Member Functions

virtual int blockKernelDriver ()
 Method to detach kernel driver from the system and open connection to the mouse device.
virtual int freeKernelDriver ()
 Method to attach kernel driver to the system and close connection to the mouse device.
virtual void acquireData ()
 Method to acquire data from the mouse device.

Protected Attributes

libusb_device ** devs_
libusb_device_handle * dev_handle_
libusb_context * ctx_

Static Protected Attributes

static const
HWThreadBuilderTemplateRegistratorWithoutIOService
< Mouse
FACTORY_REGISTRATOR_

Private Member Functions

virtual int blockKernelDriver ()
 Block Windows kernel driver using devcon tool of WinDDK, load driver of libusb.
virtual int freeKernelDriver ()
 Reactivate Windows kernel driver using devcon tool of WinDDK.
virtual void acquireData ()
 Acquire data from usb-port.

Private Attributes

usb_dev_handle * dev_handle_
std::string hw_id_
std::string devcon_path_
std::string inf_file_path_

Static Private Attributes

static const std::string hw_dc_path_
static const std::string hw_inf_file_path_

Detailed Description

Class to connected mouse devices.

Definition at line 60 of file mouse_linux.h.


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables