#include "PropertyGridCfg.h"
◆ PropertyGridCfg() [1/2]
ot::PropertyGridCfg::PropertyGridCfg |
( |
| ) |
|
◆ PropertyGridCfg() [2/2]
◆ ~PropertyGridCfg()
ot::PropertyGridCfg::~PropertyGridCfg |
( |
| ) |
|
|
virtual |
◆ addRootGroup()
◆ addToJsonObject()
Add the object contents to the provided JSON object.
- Parameters
-
_object | Json object reference |
_allocator | Allocator |
Implements ot::Serializable.
◆ findGroup()
ot::PropertyGroup * ot::PropertyGridCfg::findGroup |
( |
const std::string & | _name, |
|
|
bool | _searchChildGroups = false ) const |
◆ findOrCreateGroup()
ot::PropertyGroup * ot::PropertyGridCfg::findOrCreateGroup |
( |
const std::string & | _name, |
|
|
bool | _searchChildGroups = false ) |
◆ findPropertiesBySpecialType()
std::list< ot::Property * > ot::PropertyGridCfg::findPropertiesBySpecialType |
( |
const std::string & | _specialType | ) |
const |
◆ findPropertyByPath() [1/2]
ot::Property * ot::PropertyGridCfg::findPropertyByPath |
( |
const std::string & | _path, |
|
|
char | _delimiter = '/' ) const |
Returns the property at the given path.
- See also
- Property* findPropertyByPath(const std::list<std::string>& _path)
◆ findPropertyByPath() [2/2]
ot::Property * ot::PropertyGridCfg::findPropertyByPath |
( |
std::list< std::string > | _path | ) |
const |
Returns the property at the given path. The path contains the group names from root to the item. The last path entry must be the property name.
◆ getAllProperties()
std::list< ot::Property * > ot::PropertyGridCfg::getAllProperties |
( |
void | | ) |
const |
Returns all properties of all groups and nested groups.
◆ getRootGroups()
const std::list< PropertyGroup * > & ot::PropertyGridCfg::getRootGroups |
( |
void | | ) |
const |
|
inline |
◆ isEmpty()
bool ot::PropertyGridCfg::isEmpty |
( |
void | | ) |
const |
Returns false if at least one property exists in any of the groups and its child groups.
◆ mergeWith()
void ot::PropertyGridCfg::mergeWith |
( |
const PropertyGridCfg & | _other, |
|
|
bool | _replaceExistingProperties ) |
Adds the contents of the other configuration to this configuration.
- Parameters
-
_other | Other configuration to merge into this. |
_replaceExistingProperties | If enabled existing properties will be replaced with their corresponding property in the other group. Note that the property type may change if the other group contains a different property type. |
◆ operator=()
◆ setFromJsonObject()
Will set the object contents from the provided JSON object.
- Parameters
-
_object | The JSON object containing the information |
- Exceptions
-
Will | throw an exception if the provided object is not valid (members missing or invalid types) |
Implements ot::Serializable.
◆ setRootGroups()
void ot::PropertyGridCfg::setRootGroups |
( |
const std::list< PropertyGroup * > & | _groups | ) |
|
The documentation for this class was generated from the following files: