|  | libhomegear-base
    0.7
    Base library for Homegear and Homegear family modules. | 
Class to work with translations of device description files of one device family. More...
#include <DeviceTranslations.h>
| Public Member Functions | |
| DeviceTranslations (BaseLib::SharedObjects *baseLib, int32_t family) | |
| virtual | ~DeviceTranslations ()=default | 
| void | clear () | 
| PVariable | getTypeDescription (const std::string &filename, const std::string &language, const std::string &deviceId) | 
| PVariable | getTypeLongDescription (const std::string &filename, const std::string &language, const std::string &deviceId) | 
| PVariable | getParameterLabel (const std::string &filename, const std::string &language, ParameterGroup::Type::Enum parameterGroupType, const std::string ¶meterGroupId, const std::string ¶meterId) | 
| PVariable | getParameterDescription (const std::string &filename, const std::string &language, ParameterGroup::Type::Enum parameterGroupType, const std::string ¶meterGroupId, const std::string ¶meterId) | 
| Protected Member Functions | |
| std::unordered_set< std::string > | getLanguages () | 
| std::unordered_map< std::string, PHomegearDeviceTranslation > | getTranslations (const std::string &filename) | 
| PHomegearDeviceTranslation | getTranslation (const std::string &filename, const std::string &language) | 
| PHomegearDeviceTranslation | load (const std::string &filename, const std::string &language) | 
| Protected Attributes | |
| BaseLib::SharedObjects * | _bl = nullptr | 
| int32_t | _family = -1 | 
| std::mutex | _deviceTranslationsMutex | 
| std::unordered_map< std::string, std::unordered_map< std::string, PHomegearDeviceTranslation > > | _deviceTranslations | 
Class to work with translations of device description files of one device family.
It is used to load all translations and retrieve the translation of a device.
| BaseLib::DeviceDescription::DeviceTranslations::DeviceTranslations | ( | BaseLib::SharedObjects * | baseLib, | 
| int32_t | family | ||
| ) | 
| 
 | virtualdefault | 
| void BaseLib::DeviceDescription::DeviceTranslations::clear | ( | ) | 
| 
 | protected | 
| PVariable BaseLib::DeviceDescription::DeviceTranslations::getParameterDescription | ( | const std::string & | filename, | 
| const std::string & | language, | ||
| ParameterGroup::Type::Enum | parameterGroupType, | ||
| const std::string & | parameterGroupId, | ||
| const std::string & | parameterId | ||
| ) | 
| PVariable BaseLib::DeviceDescription::DeviceTranslations::getParameterLabel | ( | const std::string & | filename, | 
| const std::string & | language, | ||
| ParameterGroup::Type::Enum | parameterGroupType, | ||
| const std::string & | parameterGroupId, | ||
| const std::string & | parameterId | ||
| ) | 
| 
 | protected | 
| 
 | protected | 
| PVariable BaseLib::DeviceDescription::DeviceTranslations::getTypeDescription | ( | const std::string & | filename, | 
| const std::string & | language, | ||
| const std::string & | deviceId | ||
| ) | 
| PVariable BaseLib::DeviceDescription::DeviceTranslations::getTypeLongDescription | ( | const std::string & | filename, | 
| const std::string & | language, | ||
| const std::string & | deviceId | ||
| ) | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected |