BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
#include <ModuleType.h>
Data Structures | |
struct | AttributeEnum |
struct | TypeEnum |
class | Unit |
Representation of physical units. More... | |
struct | UnitEnum |
Public Types | |
typedef Enum< TypeEnum > | Type |
typedef Enum< AttributeEnum > | Attribute |
Public Member Functions | |
ModuleType (const Type &type) | |
ModuleType (const Type &type, const std::set< Attribute > &attributes) | |
ModuleType (const Type &type, const CustomTypeID &customID) | |
ModuleType (const Type &type, const CustomTypeID &customID, const std::set< Attribute > &attributes) | |
Unit | baseUnit () const |
void | setType (const Type &type) |
Type | type () const |
void | setAttributes (const std::set< Attribute > &attributes) |
std::set< Attribute > | attributes () const |
bool | isControllable () const |
void | setCustomTypeID (CustomTypeID id) |
CustomTypeID | customTypeID () const |
Static Public Member Functions | |
static ModuleType | parse (std::string input) |
Static Protected Member Functions | |
static bool | hasCombination (const std::set< Attribute > &attributes, const std::set< Attribute > &check) |
static void | assureValidAttributes (const std::set< Attribute > &attributes) |
Representation of value type that device can send. Each value consists of two parts: Type and Attribute.
The attribute is optional. The type is high level data type and the attribute is additional information, for example location (inner, outer).
ModuleType::Unit ModuleType::baseUnit | ( | ) | const |
Each type has a predefined base unit that is used as the base for all measurements.