![]() |
libhomegear-base
0.7
Base library for Homegear and Homegear family modules.
|
Class defining a Homegear device. More...
#include <HomegearDevice.h>
Classes | |
| struct | ReceiveModes |
Public Member Functions | |
| HomegearDevice (BaseLib::SharedObjects *baseLib) | |
| HomegearDevice (BaseLib::SharedObjects *baseLib, xml_node *node) | |
| HomegearDevice (BaseLib::SharedObjects *baseLib, std::string xmlFilename, bool &oldFormat) | |
| HomegearDevice (BaseLib::SharedObjects *baseLib, std::string xmlFilename, std::vector< char > &xml) | |
| virtual | ~HomegearDevice () |
| bool | loaded () const |
| void | setPath (std::string &value) |
| std::string | getPath () |
| void | setFilename (std::string &value) |
| std::string | getFilename () |
| int32_t | getDynamicChannelCount () |
| void | setDynamicChannelCount (int32_t value) |
| PSupportedDevice | getType (uint64_t typeNumber) |
| PSupportedDevice | getType (uint64_t typeNumber, int32_t firmwareVersion) |
| void | save (std::string &filename) |
Public Attributes | |
| int32_t | dynamicChannelCountIndex = -1 |
| double | dynamicChannelCountSize = 1 |
| int32_t | version = 0 |
| ReceiveModes::Enum | receiveModes = ReceiveModes::none |
| bool | encryption = false |
| uint32_t | timeout = 0 |
| uint32_t | memorySize = 0 |
| uint32_t | memorySize2 = 0 |
| bool | visible = true |
| bool | deletable = true |
| bool | internal = false |
| bool | needsTime = false |
| bool | hasBattery = false |
| uint32_t | addressSize = 0 |
| std::string | pairingMethod |
| std::string | interface |
| SupportedDevices | supportedDevices |
| PRunProgram | runProgram |
| Functions | functions |
| PVariable | metadata |
| PacketsByMessageType | packetsByMessageType |
| PacketsById | packetsById |
| PacketsByFunction | packetsByFunction1 |
| PacketsByFunction | packetsByFunction2 |
| ValueRequestPackets | valueRequestPackets |
| PHomegearDevice | group |
Protected Member Functions | |
| void | load (std::string xmlFilename, bool &oldFormat) |
| void | load (std::string xmlFilename, std::vector< char > &xml) |
| void | postProcessFunction (PFunction &function, std::map< std::string, PConfigParameters > &configParameters, std::map< std::string, PVariables > &variables, std::map< std::string, PLinkParameters > &linkParameters) |
| void | parseXML (xml_node *node) |
| void | postLoad () |
| void | saveDevice (xml_document *doc, xml_node *parentNode, HomegearDevice *device) |
| void | saveFunction (xml_document *doc, xml_node *parentNode, PFunction &function, std::map< std::string, PConfigParameters > &configParameters, std::map< std::string, PVariables > &variables, std::map< std::string, PLinkParameters > &linkParameters) |
| void | saveParameter (xml_document *doc, xml_node *parentNode, PParameter ¶meter) |
| void | saveScenario (xml_document *doc, xml_node *parentNode, PScenario &scenario) |
| void | saveParameterPacket (xml_document *doc, xml_node *parentNode, std::shared_ptr< Parameter::Packet > &packet) |
Protected Attributes | |
| BaseLib::SharedObjects * | _bl = nullptr |
| bool | _loaded = false |
| std::string | _path |
| std::string | _filename |
| int32_t | _dynamicChannelCount = -1 |
Class defining a Homegear device.
It is a direct representation of the device description XML file.
|
explicit |
| BaseLib::DeviceDescription::HomegearDevice::HomegearDevice | ( | BaseLib::SharedObjects * | baseLib, |
| xml_node * | node | ||
| ) |
| BaseLib::DeviceDescription::HomegearDevice::HomegearDevice | ( | BaseLib::SharedObjects * | baseLib, |
| std::string | xmlFilename, | ||
| bool & | oldFormat | ||
| ) |
| BaseLib::DeviceDescription::HomegearDevice::HomegearDevice | ( | BaseLib::SharedObjects * | baseLib, |
| std::string | xmlFilename, | ||
| std::vector< char > & | xml | ||
| ) |
|
virtual |
| int32_t BaseLib::DeviceDescription::HomegearDevice::getDynamicChannelCount | ( | ) |
| std::string BaseLib::DeviceDescription::HomegearDevice::getFilename | ( | ) |
| std::string BaseLib::DeviceDescription::HomegearDevice::getPath | ( | ) |
| PSupportedDevice BaseLib::DeviceDescription::HomegearDevice::getType | ( | uint64_t | typeNumber | ) |
| PSupportedDevice BaseLib::DeviceDescription::HomegearDevice::getType | ( | uint64_t | typeNumber, |
| int32_t | firmwareVersion | ||
| ) |
|
protected |
|
protected |
|
inline |
|
protected |
|
protected |
|
protected |
| void BaseLib::DeviceDescription::HomegearDevice::save | ( | std::string & | filename | ) |
|
protected |
}}}
{{{ ParameterGroups
}}}
|
protected |
|
protected |
|
protected |
|
protected |
| void BaseLib::DeviceDescription::HomegearDevice::setDynamicChannelCount | ( | int32_t | value | ) |
| void BaseLib::DeviceDescription::HomegearDevice::setFilename | ( | std::string & | value | ) |
| void BaseLib::DeviceDescription::HomegearDevice::setPath | ( | std::string & | value | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| uint32_t BaseLib::DeviceDescription::HomegearDevice::addressSize = 0 |
| bool BaseLib::DeviceDescription::HomegearDevice::deletable = true |
| int32_t BaseLib::DeviceDescription::HomegearDevice::dynamicChannelCountIndex = -1 |
| double BaseLib::DeviceDescription::HomegearDevice::dynamicChannelCountSize = 1 |
| bool BaseLib::DeviceDescription::HomegearDevice::encryption = false |
| Functions BaseLib::DeviceDescription::HomegearDevice::functions |
| PHomegearDevice BaseLib::DeviceDescription::HomegearDevice::group |
| bool BaseLib::DeviceDescription::HomegearDevice::hasBattery = false |
| std::string BaseLib::DeviceDescription::HomegearDevice::interface |
| bool BaseLib::DeviceDescription::HomegearDevice::internal = false |
| uint32_t BaseLib::DeviceDescription::HomegearDevice::memorySize = 0 |
| uint32_t BaseLib::DeviceDescription::HomegearDevice::memorySize2 = 0 |
| PVariable BaseLib::DeviceDescription::HomegearDevice::metadata |
| bool BaseLib::DeviceDescription::HomegearDevice::needsTime = false |
| PacketsByFunction BaseLib::DeviceDescription::HomegearDevice::packetsByFunction1 |
| PacketsByFunction BaseLib::DeviceDescription::HomegearDevice::packetsByFunction2 |
| PacketsById BaseLib::DeviceDescription::HomegearDevice::packetsById |
| PacketsByMessageType BaseLib::DeviceDescription::HomegearDevice::packetsByMessageType |
| std::string BaseLib::DeviceDescription::HomegearDevice::pairingMethod |
| ReceiveModes::Enum BaseLib::DeviceDescription::HomegearDevice::receiveModes = ReceiveModes::none |
| PRunProgram BaseLib::DeviceDescription::HomegearDevice::runProgram |
| SupportedDevices BaseLib::DeviceDescription::HomegearDevice::supportedDevices |
| uint32_t BaseLib::DeviceDescription::HomegearDevice::timeout = 0 |
| ValueRequestPackets BaseLib::DeviceDescription::HomegearDevice::valueRequestPackets |
| int32_t BaseLib::DeviceDescription::HomegearDevice::version = 0 |
| bool BaseLib::DeviceDescription::HomegearDevice::visible = true |