mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-27 09:00:46 +12:00
Add external libraries
This commit is contained in:
parent
70f443b06e
commit
e8dc11cc31
17 changed files with 2010 additions and 0 deletions
third_party/open-bp-cpp/include
42
third_party/open-bp-cpp/include/helperClasses.h
vendored
Normal file
42
third_party/open-bp-cpp/include/helperClasses.h
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
#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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue