ik.h
Go to the documentation of this file.
1 #ifndef PHIDGETS_API_IK_H
2 #define PHIDGETS_API_IK_H
3 
4 #include "phidgets_api/phidget.h"
5 
6 namespace phidgets {
7 
8 class IK : public Phidget
9 {
10  public:
11  IK();
12 
13  virtual ~IK();
14 
15  int getInputCount() const;
16  int getOutputCount() const;
17  int getSensorCount() const;
18  int getSensorRawValue(int index) const;
19  bool setOutputState(int index, bool state) const;
20 
21  protected:
22  virtual void sensorHandler(int index, int sensorValue);
23  virtual void inputHandler(int index, int inputValue);
24 
25  private:
26  CPhidgetInterfaceKitHandle ik_handle_;
27  static int SensorHandler(CPhidgetInterfaceKitHandle ik, void* userptr,
28  int index, int sensorValue);
29  static int InputHandler(CPhidgetInterfaceKitHandle ik, void* userptr,
30  int index, int inputValue);
31 };
32 
33 } // namespace phidgets
34 
35 #endif // PHIDGETS_API_IK_H
int getSensorCount() const
Definition: ik.cpp:41
virtual ~IK()
Definition: ik.cpp:23
bool setOutputState(int index, bool state) const
Definition: ik.cpp:55
static int SensorHandler(CPhidgetInterfaceKitHandle ik, void *userptr, int index, int sensorValue)
Definition: ik.cpp:60
CPhidgetInterfaceKitHandle ik_handle_
Definition: ik.h:26
int getOutputCount() const
Definition: ik.cpp:34
Definition: ik.h:8
IK()
Definition: ik.cpp:5
virtual void inputHandler(int index, int inputValue)
Definition: ik.cpp:79
static int InputHandler(CPhidgetInterfaceKitHandle ik, void *userptr, int index, int inputValue)
Definition: ik.cpp:72
int getInputCount() const
Definition: ik.cpp:27
int getSensorRawValue(int index) const
Definition: ik.cpp:48
virtual void sensorHandler(int index, int sensorValue)
Definition: ik.cpp:67


phidgets_api
Author(s): Tully Foote, Ivan Dryanovski
autogenerated on Fri Apr 9 2021 02:56:02