BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions | Protected Member Functions
BeeeOn::XmlTypeMappingParser< TechType > Class Template Referenceabstract

XmlTypeMappingParser is an abstract specialization of the TypeMappingParser. It is used to parse an external input stream with type mapping definitions represented by a XML document. More...

#include <XmlTypeMappingParser.h>

Inheritance diagram for BeeeOn::XmlTypeMappingParser< TechType >:
BeeeOn::TypeMappingParser< TechType > BeeeOn::Loggable

Public Member Functions

 XmlTypeMappingParser (const std::string &mappingGroup, const std::string &techNode, Poco::Logger &logger)
 
TypeMappingParser< TechType >
::TypeMappingSequence 
parse (std::istream &in) override
 Parse the input stream as XML file via the XmlTypeMappingParserHelper. More...
 

Protected Member Functions

virtual TechType parseTechType (const Poco::XML::Node &node)=0
 Parse the XML node describing a technology-specific data type. More...
 
virtual std::string techTypeRepr (const TechType &type)=0
 
- 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< TechType >
typedef std::pair< TechType,
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

template<typename TechType>
class BeeeOn::XmlTypeMappingParser< TechType >

XmlTypeMappingParser is an abstract specialization of the TypeMappingParser. It is used to parse an external input stream with type mapping definitions represented by a XML document.

See Also
XmlTypeMappingParserHelper

Member Function Documentation

template<typename TechType >
TypeMappingParser< TechType >::TypeMappingSequence BeeeOn::XmlTypeMappingParser< TechType >::parse ( std::istream &  in)
overridevirtual

Parse the input stream as XML file via the XmlTypeMappingParserHelper.

See Also
XmlTypeMappingParserHelper

Implements BeeeOn::TypeMappingParser< TechType >.

template<typename TechType>
virtual TechType BeeeOn::XmlTypeMappingParser< TechType >::parseTechType ( const Poco::XML::Node &  node)
protectedpure virtual

Parse the XML node describing a technology-specific data type.

Exceptions
Poco::SyntaxException

Implemented in BeeeOn::IQRFTypeMappingParser, and BeeeOn::ZWaveTypeMappingParser.

template<typename TechType>
virtual std::string BeeeOn::XmlTypeMappingParser< TechType >::techTypeRepr ( const TechType &  type)
protectedpure virtual
Returns
string representation of the given technology-specific type.

Implemented in BeeeOn::IQRFTypeMappingParser, and BeeeOn::ZWaveTypeMappingParser.


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