Panda3DS/third_party/open-bp-cpp/include/helperClasses.h
2024-05-02 20:28:41 +03:00

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;
};