|
NetBurner 3.5.8
PDF Version |
Base class used to create configuration objects. More...
#include <config_obj.h>
Inherited by CertData, , , , GPSAssistConfig, I4Record, and I6Record.
Public Member Functions | |
| config_obj (config_obj &owner, const char *name, const char *desc) | |
| Object constructor with the parent/owner leaf parameter. | |
| config_obj (const char *name, const char *desc) | |
| Object constructor. | |
| virtual void | GetTextValue (NBString &s) override |
| Get the object value as a text string to the specified NBString object. | |
| virtual void | GetTypeValue (NBString &s) override |
| Assigns the object type value to the specified NBString object. | |
Base class used to create configuration objects.
Base that can be used to create your own custom configuration objects in a JSON compatible format. The object can hold any number of JSON compatible types: integer, boolean, null, string, object or array.
A config_obj can hold multiple values in a JSON object. A config_value holds only a single JSON value.
The example below demonstrates how to create a thermostat object with a temperature range derived from a config_obj:
|
inline |
Object constructor with the parent/owner leaf parameter.
For example,
| owner | Reference to owner/parent leaf |
| name | Field name |
| desc | Description used for info/tool tip |
|
inline |
Object constructor.
This constructor should be called as part of the derived class constructor. For example,
| name | Field name |
| desc | Description used for info/tool tip |
|
overridevirtual |
|
inlineoverridevirtual |
Assigns the object type value to the specified NBString object.
The type value "object" is written to the NBString object.
| s | NBString object to hold the type value string |
Reimplemented in config_chooser.