Add external libraries

This commit is contained in:
sylvieee-iot 2024-05-02 20:28:41 +03:00 committed by GitHub
commit e8dc11cc31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 2010 additions and 0 deletions
third_party/open-bp-cpp/include

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