The ManagedPropertyObject class is a basic wrapper for the use of the PropertyManager. A PropertyManager instance is accessable trough a regular and a const getter methods.
More...
#include "ManagedPropertyObject.h"
The ManagedPropertyObject class is a basic wrapper for the use of the PropertyManager. A PropertyManager instance is accessable trough a regular and a const getter methods.
◆ ManagedPropertyObject() [1/2]
Constructor.
- Parameters
-
_propertyManager | Property manager to use. May be null. |
◆ ManagedPropertyObject() [2/2]
Move constructor.
- Parameters
-
_other | Other object to move data from. |
◆ ~ManagedPropertyObject()
virtual ot::ManagedPropertyObject::~ManagedPropertyObject |
( |
| ) |
|
|
inlinevirtual |
◆ addPropertiesToJsonObject()
Serialize the properties into the provided JSON object.
- Parameters
-
_object | JSON object to write the properties into. |
_allocator | JSON allocator to use. |
◆ findProperty() [1/2]
ot::Property * ot::ManagedPropertyObject::findProperty |
( |
const std::string & | _groupName, |
|
|
const std::string & | _valueName ) |
Finds a property by group and name.
- Parameters
-
_groupName | The property group name. |
_valueName | The property value name. |
- Returns
- Pointer to the found Property, or nullptr if not found.
◆ findProperty() [2/2]
const ot::Property * ot::ManagedPropertyObject::findProperty |
( |
const std::string & | _groupName, |
|
|
const std::string & | _valueName ) const |
Finds a property by group and name.
- Parameters
-
_groupName | The property group name. |
_valueName | The property value name. |
- Returns
- Pointer to the found Property, or nullptr if not found.
◆ getPropertyManager()
PropertyManager * ot::ManagedPropertyObject::getPropertyManager |
( |
void | | ) |
const |
|
inline |
Get the property manager that holds all properties.
◆ operator=()
Assignment move operator.
- Parameters
-
_other | Other object to move data from. |
- Returns
- Reference to this object.
◆ setPropertiesFromJsonObject()
void ot::ManagedPropertyObject::setPropertiesFromJsonObject |
( |
const ot::ConstJsonObject & | _object | ) |
|
Serialize the properties into the provided JSON object.
- Parameters
-
_object | JSON object to read the properties from. |
◆ setPropertyManager()
void ot::ManagedPropertyObject::setPropertyManager |
( |
PropertyManager * | _manager | ) |
|
|
inline |
Replace the current property manager.
- Parameters
-
The documentation for this class was generated from the following files: