NetBurner 3.5.0
PDF Version |
|
Base class used to create configuration objects. More...
#include <config_obj.h>
Inherits config_leaf.
Inherited by AcmeObject, CertData, ControlSet, EmailNotify, I4Record, I6Record, InterfaceBlock, LLDPEntity, MonitorRecord, NV_OneI2CPortSetting, NV_OnePortSetting, NV_SettingsStruct, OneConfigRecord, PIDSet, SysRecord, TempRange, TempRange, TempRange, ThermoGroup, Thermostat1, cfg_class_slot, cfg_class_slots, config_chooser, config_preserver_obj, config_uart, detached_root_obj, empty_config_obj, and root_obj.
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) |
Get the object value as a text string to the specified NBString object. | |
virtual void | GetTypeValue (NBString &s) |
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:
\nburn\examples
folder for the latest code updates.
|
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 |
|
virtual |
|
inlinevirtual |
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.