libhomegear-base
0.7
Base library for Homegear and Homegear family modules.
|
#include <Peer.h>
Public Member Functions | |
RpcConfigurationParameter () | |
RpcConfigurationParameter (RpcConfigurationParameter const &rhs) | |
virtual | ~RpcConfigurationParameter () |
RpcConfigurationParameter & | operator= (const RpcConfigurationParameter &rhs) |
void | lock () noexcept |
Locks the internal binary data vector so one can work with a reference to it externally. More... | |
void | unlock () noexcept |
Unlocks the internal binary data vector. More... | |
std::vector< uint8_t >::size_type | getBinaryDataSize () noexcept |
Returns the size of the data vector. More... | |
std::vector< uint8_t > | getBinaryData () noexcept |
Returns a copy of the data vector. More... | |
std::vector< uint8_t > & | getBinaryDataReference () noexcept |
Returns a reference to the data vector. More... | |
void | setBinaryData (std::vector< uint8_t > &value) noexcept |
Sets the internal binary data vector to "value". More... | |
std::vector< uint8_t > | getPartialBinaryData () noexcept |
Returns a copy of the data vector. More... | |
std::vector< uint8_t > & | getPartialBinaryDataReference () noexcept |
Returns a reference to the data vector. More... | |
void | setPartialBinaryData (std::vector< uint8_t > &value) noexcept |
Sets the internal binary data vector to "value". More... | |
BaseLib::PVariable | getLogicalData () noexcept |
Returns the logical data object. More... | |
void | setLogicalData (PVariable value) noexcept |
Sets the logical data object. More... | |
bool | equals (std::vector< uint8_t > &value) noexcept |
Compares the passed vector with the internal one. More... | |
bool | hasCategory (uint64_t id) |
void | addCategory (uint64_t id) |
void | removeCategory (uint64_t id) |
std::set< uint64_t > | getCategories () |
std::string | getCategoryString () |
bool | hasCategories () |
bool | hasRole (uint64_t id) |
bool | hasServiceRole () |
void | addRole (const Role &role) |
void | addRole (uint64_t id, RoleDirection direction, bool invert, bool scale, RoleScaleInfo scaleInfo) |
void | removeRole (uint64_t id) |
Role | getRole (uint64_t id) |
std::unordered_map< uint64_t, Role > | getRoles () |
std::string | getRoleString () |
bool | hasRoles () |
bool | invert () |
bool | scale () |
Role | mainRole () |
uint64_t | getRoom () |
void | setRoom (uint64_t id) |
uint64_t | getBuildingPart () |
void | setBuildingPart (uint64_t id) |
Public Attributes | |
uint64_t | databaseId = 0 |
The id of this parameter in the database. More... | |
int32_t | specialType = 0 |
The special type of the parameter (0 = none, 1 = roles). More... | |
DeviceDescription::PParameter | rpcParameter |
The RPC parameter as defined in the XML file. More... | |
|
inline |
BaseLib::Systems::RpcConfigurationParameter::RpcConfigurationParameter | ( | RpcConfigurationParameter const & | rhs | ) |
|
inlinevirtual |
|
inline |
void BaseLib::Systems::RpcConfigurationParameter::addRole | ( | const Role & | role | ) |
void BaseLib::Systems::RpcConfigurationParameter::addRole | ( | uint64_t | id, |
RoleDirection | direction, | ||
bool | invert, | ||
bool | scale, | ||
RoleScaleInfo | scaleInfo | ||
) |
|
noexcept |
Compares the passed vector with the internal one.
This method is thread safe.
|
noexcept |
Returns a copy of the data vector.
This method is thread safe. Make sure the vector is unlocked ("unlock()" was called after calling "lock()") before executing this method.
|
noexcept |
Returns a reference to the data vector.
Call "lock()" before executing this method and "unlock()" when you're done working with the reference.
|
noexcept |
Returns the size of the data vector.
This method is thread safe. Make sure the vector is unlocked ("unlock()" was called after calling "lock()") before executing this method.
|
inline |
|
inline |
std::string BaseLib::Systems::RpcConfigurationParameter::getCategoryString | ( | ) |
|
noexcept |
Returns the logical data object.
This method is thread safe.
|
noexcept |
Returns a copy of the data vector.
This method is thread safe. Make sure the vector is unlocked ("unlock()" was called after calling "lock()") before executing this method.
|
noexcept |
Returns a reference to the data vector.
Call "lock()" before executing this method and "unlock()" when you're done working with the reference.
|
inline |
|
inline |
std::string BaseLib::Systems::RpcConfigurationParameter::getRoleString | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool BaseLib::Systems::RpcConfigurationParameter::invert | ( | ) |
|
noexcept |
Locks the internal binary data vector so one can work with a reference to it externally.
Role BaseLib::Systems::RpcConfigurationParameter::mainRole | ( | ) |
RpcConfigurationParameter & BaseLib::Systems::RpcConfigurationParameter::operator= | ( | const RpcConfigurationParameter & | rhs | ) |
|
inline |
void BaseLib::Systems::RpcConfigurationParameter::removeRole | ( | uint64_t | id | ) |
bool BaseLib::Systems::RpcConfigurationParameter::scale | ( | ) |
|
noexcept |
Sets the internal binary data vector to "value".
This method is thread safe. Make sure the vector is unlocked ("unlock()" was called after calling "lock()") before executing this method.
value | The new data vector. |
|
inline |
|
noexcept |
Sets the logical data object.
This method is thread safe.
value | The new logical data object. |
|
noexcept |
Sets the internal binary data vector to "value".
This method is thread safe. Make sure the vector is unlocked ("unlock()" was called after calling "lock()") before executing this method.
value | The new data vector. |
|
inline |
|
noexcept |
Unlocks the internal binary data vector.
uint64_t BaseLib::Systems::RpcConfigurationParameter::databaseId = 0 |
The id of this parameter in the database.
DeviceDescription::PParameter BaseLib::Systems::RpcConfigurationParameter::rpcParameter |
The RPC parameter as defined in the XML file.
int32_t BaseLib::Systems::RpcConfigurationParameter::specialType = 0 |
The special type of the parameter (0 = none, 1 = roles).