fork download
  1. #ifndef QUADBRIDGE_H
  2. #define QUADBRIDGE_H
  3.  
  4. #include <phidget21.h>
  5. #include "eventhandlers.h"
  6. #include "rail.h"
  7.  
  8. class QuadBridge{
  9. public:
  10. //Constructor
  11. QuadBridge();
  12. ~QuadBridge();
  13.  
  14. void addRail();
  15.  
  16. private:
  17. //Private Constants
  18. int SERIAL_, PHIDGET_ID_;
  19. char *DEVICE_TYPE_;
  20.  
  21. //Private Variables
  22. int version_;
  23. int selectedSerial_, phidgetID_;
  24. int numOfAttachedRails_;
  25. Rail attachedRails_[2];
  26.  
  27. //Objects
  28. CPhidgetBridgeHandle bridge_;
  29.  
  30. //Private Setters
  31. void setEventHandlers();
  32. bool setAttachController(int phidgetID, int waitms = 3000);
  33.  
  34. //Private Getters
  35. //int getNumOfRailsAttached(int rails);
  36.  
  37.  
  38. };
  39. #endif // QUADBRIDGE_H
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty