BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
ZWaveTypeMappingParser.h
1 #pragma once
2 
3 #include <utility>
4 
5 #include "util/Loggable.h"
6 #include "util/XmlTypeMappingParser.h"
7 
8 namespace BeeeOn {
9 
10 typedef std::pair<uint8_t, uint8_t> ZWaveType;
11 
16 class ZWaveTypeMappingParser : public XmlTypeMappingParser<ZWaveType> {
17 public:
19 
20 protected:
25  ZWaveType parseTechType(const Poco::XML::Node &node) override;
26 
27  std::string techTypeRepr(const ZWaveType &type) override;
28 };
29 
30 }
XmlTypeMappingParser is an abstract specialization of the TypeMappingParser. It is used to parse an e...
Definition: XmlTypeMappingParser.h:18
ZWaveTypeMappingParser can parse XML files defining mappings between Z-Wave command classes and BeeeO...
Definition: ZWaveTypeMappingParser.h:16
ZWaveType parseTechType(const Poco::XML::Node &node) override
Parse the given DOM node, extract attributes command-class and index and returned it as ZWaveType(cc...
Definition: ZWaveTypeMappingParser.cpp:21
std::string techTypeRepr(const ZWaveType &type) override
Definition: ZWaveTypeMappingParser.cpp:41