Defines a generic value class, similar to a variant.
For Windows platforms only.
|
Name
|
Description
|
|
TGCustomValue
|
Implements an object that can hold any type of value; Integer,
Float, Boolean, Object, etc.; and can convert between them. Since it avoids all pointers to values, There are a few issues:
1. If you use AsInterface, it better well be an interface or
you will get an access error
2. The Precision of Currency is only what will fit in Single
3. AsVariant does not truly store the variant. |
The bulk of the class is just properties and their accessor methods for retrieving values of the different types. The class does not guarantee type conversion between all the types, but the basic conversions have been implemented.
For Windows platforms only.
Note
|
This class is extremely similar to the TIEValue class in the Inference Engine Component Suite, but without the IECS specific code.
|
|
|
TGValue
|
Implements an object that can hold any type of value; Integer,
Float, Boolean, Object, etc.; and can convert between them. Since it avoids all pointers to values, There are a few issues:
1. If you use AsInterface, it better well be an interface or
you will get an access error
2. The Precision of Currency is only what will fit in Single
3. AsVariant does not truly store the variant. |
The bulk of the class is just properties and their accessor methods for retrieving values of the different types. The class does not guarantee type conversion between all the types, but the basic conversions have been implemented.
For Windows platforms only.
Note
|
This class is extremely similar to the TIEValue class in the Inference Engine Component Suite, but without the IECS specific code.
|
|
Top
|