ConfigDB::PropertyConst Class Reference
Read-only access to a key/value pair stored in an object, or a simple array value. More...
#include <Property.h>
Inheritance diagram for ConfigDB::PropertyConst:
Collaboration diagram for ConfigDB::PropertyConst:
Public Member Functions | |
| PropertyConst ()=default | |
| PropertyConst (const Store &store, const PropertyInfo &info, const PropertyData *data) | |
| Create a PropertyConst instance. More... | |
| String | getValue () const |
| Retrieve the property value as a string. More... | |
| operator bool () const | |
| String | getJsonValue () const |
| Get property value as a valid JSON string. More... | |
| const PropertyInfo & | info () const |
| Access property type information. More... | |
Protected Attributes | |
| const PropertyInfo * | propinfo {&PropertyInfo::empty} |
| const Store * | store {} |
| const PropertyData * | data {} |
Detailed Description
Read-only access to a key/value pair stored in an object, or a simple array value.
Constructor & Destructor Documentation
◆ PropertyConst() [1/2]
|
default |
◆ PropertyConst() [2/2]
|
inline |
Create a PropertyConst instance.
- Parameters
-
info Property information data Pointer to location where value is stored
Member Function Documentation
◆ getJsonValue()
| String ConfigDB::PropertyConst::getJsonValue | ( | ) | const |
Get property value as a valid JSON string.
- Return values
-
String Can return "null", numeric, boolean or quoted string
◆ getValue()
| String ConfigDB::PropertyConst::getValue | ( | ) | const |
Retrieve the property value as a string.
◆ info()
|
inline |
Access property type information.
◆ operator bool()
|
inlineexplicit |
Member Data Documentation
◆ data
|
protected |
◆ propinfo
|
protected |
◆ store
|
protected |
The documentation for this class was generated from the following file:
1.9.1