#include <lib_description.h>
The dynamic description class stores user data values. See Description for its container format.
- Note
- Use EditDescription() to let the user edit the container settings.
◆ DynamicDescription()
◆ ~DynamicDescription()
◆ Alloc()
Allocates a new user data and return its ID.
- Parameters
-
[in] | datadescription | The settings of the new user data. |
- Returns
- The ID of the new user data.
◆ Set()
Inserts a new user data with the specified ID.
- Parameters
-
[in] | descid | The ID of the new user data. |
[in] | datadescription | The settings of the new user data. |
[in] | bl | TODO |
- Returns
- true if the user data was inserted, otherwise false.
◆ Find()
Finds user data settings from its description ID.
- Parameters
-
[in] | descid | The ID of the user data. |
- Returns
- The found settings, or nullptr. The description owns the pointed base container.
◆ Remove()
Removes user data by ID.
- Parameters
-
[in] | descid | The ID of the user data. |
- Returns
- true if the user data was removed, otherwise false.
◆ CopyTo()
Copies the dynamic description.
- Parameters
-
[in] | dest | The destination dynamic description. The caller owns the pointed dynamic description. |
- Returns
- true if the description was copied, otherwise false.
◆ BrowseInit()
void* BrowseInit |
( |
void |
| ) |
|
Starts browsing the parameters linearly.
- Warning
- After browsing is done done BrowseFree() must be called.
- Returns
- The browse handle.
◆ BrowseGetNext()
Retrieves the next parameter in a browse sequence initialized with BrowseInit().
- Parameters
-
[in] | handle | The browse handle returned by BrowseInit(). |
[out] | id | Assigned the ID of the retrieved parameter. |
[out] | data | Assigned the settings for the retrieved parameter. The caller owns the pointed base container. |
- Returns
- true if a new parameter was retrieved, otherwise the sequence is finished.
◆ BrowseFree()
void BrowseFree |
( |
void *& |
handle | ) |
|
Frees browse handles from BrowseInit().
- Parameters
-
[in,out] | handle | The handle to free. Assigned nullptr. |
◆ FillDefaultContainer()
Fills the default settings container for a certain data type with the specified name.
- Parameters
-
[out] | res | Assigned the default settings. |
[in] | type | The datatype ID. Either a custom ID or one of: DTYPE. |
[in] | name | The name of the user data. |
- Returns
- true if the settings were filled, otherwise false.
◆ GetDirty()
Gets the dirty count. Can be used to check if something has changed.
- Returns
- The dirty counter, incremented when something changes in the system.