BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Data Structures | Public Types | Public Member Functions | Static Public Member Functions | Static Protected Member Functions
BeeeOn::ModuleType Class Reference

#include <ModuleType.h>

Data Structures

struct  AttributeEnum
 
struct  TypeEnum
 
class  Unit
 Representation of physical units. More...
 
struct  UnitEnum
 

Public Types

typedef Enum< TypeEnumType
 
typedef Enum< AttributeEnumAttribute
 

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< Attributeattributes () 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)
 

Detailed Description

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).

Member Function Documentation

ModuleType::Unit ModuleType::baseUnit ( ) const

Each type has a predefined base unit that is used as the base for all measurements.


The documentation for this class was generated from the following files: