BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions | Protected Member Functions
BeeeOn::IQRFTypeMappingParser Class Reference

IQRFTypeMappingParser can parse XML files defining mappings between IQRF types and BeeeOn ModuleTypes. More...

#include <IQRFTypeMappingParser.h>

Inheritance diagram for BeeeOn::IQRFTypeMappingParser:
BeeeOn::XmlTypeMappingParser< IQRFType > BeeeOn::TypeMappingParser< IQRFType > BeeeOn::Loggable

Public Member Functions

 IQRFTypeMappingParser (const std::string &mappingGroup, const std::string &techNode)
 
- Public Member Functions inherited from BeeeOn::XmlTypeMappingParser< IQRFType >
 XmlTypeMappingParser (const std::string &mappingGroup, const std::string &techNode, Poco::Logger &logger)
 
TypeMappingParser< IQRFType >
::TypeMappingSequence 
parse (std::istream &in) override
 Parse the input stream as XML file via the XmlTypeMappingParserHelper. More...
 

Protected Member Functions

IQRFType parseTechType (const Poco::XML::Node &node) override
 Parse the given DOM node and extract attributes: More...
 
std::string techTypeRepr (const IQRFType &type) override
 
- Protected Member Functions inherited from BeeeOn::Loggable
void setupLogger (Poco::Logger *logger=0) const
 
Poco::Logger & logger () const
 
 Loggable (const ClassInfo &info)
 
 Loggable (const std::type_info &info)
 

Additional Inherited Members

- Public Types inherited from BeeeOn::TypeMappingParser< IQRFType >
typedef std::pair< IQRFType,
ModuleType
TypeMapping
 Single mapping between technology-specific type and the ModuleType.
 
typedef std::vector< TypeMappingTypeMappingSequence
 Sequence of particular mappings.
 
- Static Protected Member Functions inherited from BeeeOn::Loggable
static Poco::Logger & forMethod (const char *name)
 
static Poco::Logger & forClass (const ClassInfo &info)
 
static Poco::Logger & forClass (const std::type_info &info)
 
template<typename T >
static Poco::Logger & forInstance (const T *i)
 
static void configureSimple (Poco::Logger &logger, const std::string &level)
 
static void logException (Poco::Logger &logger, const Poco::Message::Priority priority, const Poco::Exception &e, const char *file, size_t line)
 

Detailed Description

IQRFTypeMappingParser can parse XML files defining mappings between IQRF types and BeeeOn ModuleTypes.

Member Function Documentation

IQRFType IQRFTypeMappingParser::parseTechType ( const Poco::XML::Node &  node)
overrideprotectedvirtual

Parse the given DOM node and extract attributes:

  • id
  • error-value
  • wide
  • resolution
  • signed

Implements BeeeOn::XmlTypeMappingParser< IQRFType >.

string IQRFTypeMappingParser::techTypeRepr ( const IQRFType type)
overrideprotectedvirtual
Returns
string representation of the given technology-specific type.

Implements BeeeOn::XmlTypeMappingParser< IQRFType >.


The documentation for this class was generated from the following files: