mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-22 21:35:51 +12:00
42 lines
868 B
C++
42 lines
868 B
C++
#include <string>
|
|
#include <vector>
|
|
|
|
#ifdef DEBUG
|
|
#define DEBUG_MSG(str) do { std::cout << str << std::endl; } while( false )
|
|
#else
|
|
#define DEBUG_MSG(str) do { } while ( false )
|
|
#endif
|
|
|
|
|
|
class DeviceCmdAttr {
|
|
public:
|
|
std::string FeatureDescriptor = "";
|
|
unsigned int StepCount = 0;
|
|
std::string ActuatorType = "";
|
|
std::string SensorType = "";
|
|
std::vector<int> SensorRange; // every two steps
|
|
//std::vector<std::string> Endpoints;
|
|
};
|
|
|
|
class DeviceCmd {
|
|
public:
|
|
std::string CmdType = "";
|
|
std::string StopDeviceCmd = "";
|
|
std::vector<DeviceCmdAttr> DeviceCmdAttributes;
|
|
};
|
|
|
|
class Device {
|
|
public:
|
|
std::string DeviceName;
|
|
unsigned int DeviceIndex;
|
|
unsigned int DeviceMessageTimingGap = 0;
|
|
std::string DeviceDisplayName = "";
|
|
std::vector<DeviceCmd> DeviceMessages;
|
|
};
|
|
|
|
class Scalar {
|
|
public:
|
|
unsigned int Index;
|
|
double ScalarVal;
|
|
std::string ActuatorType;
|
|
};
|