BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
XmlTypeMappingParserHelper.h
1 #pragma once
2 
3 #include <iosfwd>
4 
5 #include <Poco/AutoPtr.h>
6 #include <Poco/Logger.h>
7 #include <Poco/SharedPtr.h>
8 
9 #include <Poco/DOM/Document.h>
10 #include <Poco/DOM/Node.h>
11 #include <Poco/DOM/NodeIterator.h>
12 
13 #include "model/ModuleType.h"
14 #include "util/Loggable.h"
15 
16 namespace BeeeOn {
17 
51 public:
57  const std::string &mappingGroup,
58  const std::string &techNode,
59  Poco::Logger &logger);
60 
65  void parseDOM(std::istream &in);
66 
72  std::pair<Poco::AutoPtr<Poco::XML::Node>, ModuleType> next();
73 
74 private:
75  std::string m_mappingGroup;
76  std::string m_techNode;
77  Poco::AutoPtr<Poco::XML::Document> m_document;
78  Poco::SharedPtr<Poco::XML::NodeIterator> m_iterator;
79 };
80 
81 }
82 
void parseDOM(std::istream &in)
Parse the given input stream and create its DOM representation internally.
Definition: XmlTypeMappingParserHelper.cpp:27
Definition: ModuleType.h:18
Definition: Loggable.h:19
XmlTypeMappingParserHelper(const std::string &mappingGroup, const std::string &techNode, Poco::Logger &logger)
Definition: XmlTypeMappingParserHelper.cpp:17
std::pair< Poco::AutoPtr< Poco::XML::Node >, ModuleType > next()
Definition: XmlTypeMappingParserHelper.cpp:37
Helper defining method for parsing an input stream as an XML input. The purpose is to extract informa...
Definition: XmlTypeMappingParserHelper.h:50