libknx
group.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdint.h>
4 #include <string>
5 #include <sstream>
6 
11 namespace knx {
12 
16 class KNX_IMPORT_EXPORT group
17 {
18 public:
20  group();
22  group(std::string name);
24  group(uint8_t a, uint8_t b, uint8_t c);
26  group(uint8_t a, uint8_t b);
31  std::string get_name();
36  uint16_t get_binary();
43  void set_by_number(uint16_t a, uint16_t b, uint16_t c);
49  void set_by_number(uint16_t a, uint16_t b);
53  void set_by_name(std::string name);
58  void set_by_binary_2(uint16_t binary);
63  void set_by_binary_3(uint16_t binary);
65  bool operator==(knx::group other);
66 private:
68  std::string name;
70  uint16_t binary;
71 };
72 
73 }
This class represents a KNX group address which might be either 3 compnent "a/b/c" or 2 component "a/...
Definition: group.hpp:16
separated namespace to embed all libknx related classes
Definition: connection.hpp:14