BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
TypeMappingParser.h
1 #pragma once
2 
3 #include <iosfwd>
4 #include <vector>
5 
6 #include "model/ModuleType.h"
7 
8 namespace BeeeOn {
9 
16 template <typename TechType>
18 public:
23  typedef std::pair<TechType, ModuleType> TypeMapping;
24 
28  typedef std::vector<TypeMapping> TypeMappingSequence;
29 
30  virtual ~TypeMappingParser();
31 
38  virtual TypeMappingSequence parse(std::istream &in) = 0;
39 };
40 
41 template <typename TechType>
43 {
44 }
45 
46 }
std::vector< TypeMapping > TypeMappingSequence
Sequence of particular mappings.
Definition: TypeMappingParser.h:28
std::pair< TechType, ModuleType > TypeMapping
Single mapping between technology-specific type and the ModuleType.
Definition: TypeMappingParser.h:23
TypeMappingParser is an abstract class providing method parse() that reads a given definition file (i...
Definition: TypeMappingParser.h:17
virtual TypeMappingSequence parse(std::istream &in)=0
Parse the given input stream and construct sequence of mappings between a technology-specific data ty...