BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
CustomTypeID.h
1 #pragma once
2 
3 #include <string>
4 
5 namespace BeeeOn {
6 
7 /*
8  * @brief The class is intended to contain a specific
9  * ModuleType Type name.
10  */
11 class CustomTypeID {
12 public:
13  enum {
14  MAX_LENGTH = 64
15  };
16 
17  CustomTypeID();
18  CustomTypeID(const std::string &id);
19 
20  std::string toString() const;
21 
22  static CustomTypeID parse(const std::string &input);
23 
24  bool isNull() const;
25 
26  bool operator ==(const CustomTypeID &id) const;
27  bool operator !=(const CustomTypeID &id) const;
28  bool operator <(const CustomTypeID &id) const;
29  bool operator >(const CustomTypeID &id) const;
30  bool operator <=(const CustomTypeID &id) const;
31  bool operator >=(const CustomTypeID &id) const;
32 
33 private:
34  std::string m_value;
35 };
36 
37 }
Definition: CustomTypeID.h:11