|
NetBurner 3.5.8
PDF Version |
Boolean Configuration Variable. More...
#include <config_obj.h>
Inherits config_value.
Public Member Functions | |
| virtual void | GetTextValue (NBString &s) override |
| Copy the object value as a text string to the specified NBString object. | |
| config_bool (config_obj &owner, bool def_val, const char *name, const char *desc=NULL) | |
| Object constructor with the parent/owner leaf parameter. | |
| config_bool (bool def_val, const char *name, const char *desc=NULL) | |
| Object constructor. | |
| operator bool () const | |
| Return the object value. | |
| config_bool & | operator= (const bool v) |
| Assign the config_bool object value to the specified bool value. | |
| config_bool & | operator= (const config_bool &cb) |
| Copy one config_bool object to another. | |
| config_bool & | operator= (const int i) |
| Assign a config_bool object value to the specified integer value. | |
| virtual void | GetTypeValue (NBString &s) override |
| Copy the object type value to the specified NBString object. | |
Additional Inherited Members | |
| Protected Member Functions inherited from config_value | |
| config_value (config_obj &owner, const char *name, const char *desc) | |
| Object constructor with the parent/owner leaf parameter. | |
| config_value (const char *name, const char *desc) | |
| Object constructor. | |
Boolean Configuration Variable.
|
inline |
Object constructor with the parent/owner leaf parameter.
| owner | Reference to parent leaf |
| def_val | Default value |
| name | Field name assigned to the value |
| desc | Description used for info/tool tip |
|
inline |
Object constructor.
| def_val | Default value |
| name | Field name assigned to the value |
| desc | Description, used for info/tool tips |
|
inlineoverridevirtual |
Copy the object value as a text string to the specified NBString object.
Writes either "true" or "false". This is a virtual function that can be overridden in a derived class.
| s | Reference to a NBString object to store the result |
Implements config_value.
|
inlineoverridevirtual |
|
inline |
Return the object value.
Example: for a variable named configInt of type config_double:
|
inline |
Assign the config_bool object value to the specified bool value.
| v | Value of type bool |
|
inline |
Copy one config_bool object to another.
| cb | Reference to a config_bool object |
|
inline |
Assign a config_bool object value to the specified integer value.
| i | Integer value, either 0 (false) or 1 (true) |