libhomegear-base  0.7
Base library for Homegear and Homegear family modules.
BaseLib::DeviceDescription::HomegearDeviceTranslation Class Reference

Class defining a Homegear device translation. More...

#include <HomegearDeviceTranslation.h>

Classes

struct  ParameterTranslation
 

Public Member Functions

 HomegearDeviceTranslation (BaseLib::SharedObjects *baseLib, std::string xmlFilename)
 
virtual ~HomegearDeviceTranslation ()
 
bool loaded ()
 

Public Attributes

std::string lang
 
std::unordered_map< std::string, std::string > typeDescriptions
 
std::unordered_map< std::string, std::string > typeLongDescriptions
 
std::unordered_map< std::string, std::unordered_map< std::string, ParameterTranslation > > configParameters
 
std::unordered_map< std::string, std::unordered_map< std::string, ParameterTranslation > > linkParameters
 
std::unordered_map< std::string, std::unordered_map< std::string, ParameterTranslation > > variables
 

Protected Member Functions

void load (std::string xmlFilename)
 
void parseXML (xml_node *node)
 

Protected Attributes

BaseLib::SharedObjects_bl = nullptr
 
bool _loaded = false
 

Detailed Description

Class defining a Homegear device translation.

It is a direct representation of the translation XML file.

Constructor & Destructor Documentation

§ HomegearDeviceTranslation()

BaseLib::DeviceDescription::HomegearDeviceTranslation::HomegearDeviceTranslation ( BaseLib::SharedObjects baseLib,
std::string  xmlFilename 
)

§ ~HomegearDeviceTranslation()

BaseLib::DeviceDescription::HomegearDeviceTranslation::~HomegearDeviceTranslation ( )
virtual

Member Function Documentation

§ load()

void BaseLib::DeviceDescription::HomegearDeviceTranslation::load ( std::string  xmlFilename)
protected

§ loaded()

bool BaseLib::DeviceDescription::HomegearDeviceTranslation::loaded ( )
inline

§ parseXML()

void BaseLib::DeviceDescription::HomegearDeviceTranslation::parseXML ( xml_node node)
protected

Member Data Documentation

§ _bl

BaseLib::SharedObjects* BaseLib::DeviceDescription::HomegearDeviceTranslation::_bl = nullptr
protected

§ _loaded

bool BaseLib::DeviceDescription::HomegearDeviceTranslation::_loaded = false
protected

§ configParameters

std::unordered_map<std::string, std::unordered_map<std::string, ParameterTranslation> > BaseLib::DeviceDescription::HomegearDeviceTranslation::configParameters

§ lang

std::string BaseLib::DeviceDescription::HomegearDeviceTranslation::lang

§ linkParameters

std::unordered_map<std::string, std::unordered_map<std::string, ParameterTranslation> > BaseLib::DeviceDescription::HomegearDeviceTranslation::linkParameters

§ typeDescriptions

std::unordered_map<std::string, std::string> BaseLib::DeviceDescription::HomegearDeviceTranslation::typeDescriptions

§ typeLongDescriptions

std::unordered_map<std::string, std::string> BaseLib::DeviceDescription::HomegearDeviceTranslation::typeLongDescriptions

§ variables

std::unordered_map<std::string, std::unordered_map<std::string, ParameterTranslation> > BaseLib::DeviceDescription::HomegearDeviceTranslation::variables

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