|
xplConfigItem |
( |
string const & |
_name, |
|
|
string const & |
_type, |
|
|
unsigned int const |
_maxValues = 1 |
|
) |
|
|
|
Constructor.
Creates a new, empty xplConfigItem, containing no values. These must be added through calls to AddValue. - Parameters:
-
| _name | unique name identifying the config item. This name will be displayed in the xPLHal user interface. |
| _type | type of config item. Must be one of "config", "reconf" or "option". Config elements specify items that are mandatory for the device to function, and that cannot be changed once a device is running. Reconf elements specify items which are mandatory for the device to operate, but whose value can be changed at any time while the device is operating. Option elements specify items that are not required for device operation, where there is a suitable default that can be used. |
| _maxValues | maximum number of values that can be associated with this config item. Defaults to one. If the item is an array of values, the size of that array is specified here, otherwise it should be set to one. |
- See also:
- AddValue.
|
|