#include <w32dlib/datax.h>
Public Types | |
| enum | EType { eInt, eString, eBool } |
| Describes the types allowed using DataX. More... | |
Public Member Functions | |
| DataX (int value) | |
| Constructs an eInt object. | |
| DataX (const char *value) | |
| Constructs an eString object. | |
| DataX (bool value) | |
| Constructs an eBool object. | |
| virtual | ~DataX () |
| Destructor. | |
| EType | Type () |
| Get the type. | |
| void | Set (int value) |
| Sets the value of an eInt instance. | |
| void | Set (const std::string &value) |
| Sets the value of an eString instance. | |
| void | Set (const char *value) |
| Sets the value of an eString instance. | |
| void | Set (bool value) |
| Sets the value of an eBool instance. | |
| int | Int () |
| Gets the value of an eInt instance. | |
| std::string | Str () |
| Gets the value of an eString instance. | |
| bool | Bool () |
| Gets the value of an eBool instance. | |
This class is used to manage data exchanges between variables and controls.
Illegal operations, such as trying to set or get a string from an int DataX instance will silently fail or return default empty/false values.
|
|
Describes the types allowed using DataX.
|
|
|
Constructs an eInt object.
|
|
|
Constructs an eString object.
|
|
|
Constructs an eBool object.
|
|
|
Destructor.
|
|
|
Gets the value of an eBool instance.
|
|
|
Gets the value of an eInt instance.
|
|
|
Sets the value of an eBool instance.
|
|
|
Sets the value of an eString instance.
|
|
|
Sets the value of an eString instance.
|
|
|
Sets the value of an eInt instance.
|
|
|
Gets the value of an eString instance.
|
|
|
Get the type.
|
1.4.1