Public Member Functions | |
Assign (const TZVariant SrcValue, TZVariant &DstValue) | |
Assignes one variant value to another one. | |
TZVariant | Clone (const TZVariant Value) |
Clones a variant value. | |
Integer | Compare (const TZVariant Value1, const TZVariant Value2) |
Compares two variant values. | |
TZVariant | Convert (const TZVariant Value, TZVariantType NewType) |
Converts a specified variant value to a new type. | |
Boolean | GetAsBoolean (const TZVariant Value) |
Gets a variant to boolean value. | |
TDateTime | GetAsDateTime (const TZVariant Value) |
Gets a variant to date and time value. | |
Extended | GetAsFloat (const TZVariant Value) |
Gets a variant to float value. | |
Int64 | GetAsInteger (const TZVariant Value) |
Gets a variant to integer value. | |
IZInterface | GetAsInterface (const TZVariant Value) |
Gets a variant to interface value. | |
Pointer | GetAsPointer (const TZVariant Value) |
Gets a variant to pointer value. | |
AnsiString | GetAsString (const TZVariant Value) |
Gets a variant to string value. | |
WideString | GetAsUnicodeString (const TZVariant Value) |
Gets a variant to unicode string value. | |
Boolean | IsNull (const TZVariant Value) |
Checks is the specified value NULL. | |
TZVariant | OpAdd (const TZVariant Value1, const TZVariant Value2) |
Performs '+' operation. | |
TZVariant | OpAnd (const TZVariant Value1, const TZVariant Value2) |
Performs '&' operation. | |
TZVariant | OpDiv (const TZVariant Value1, const TZVariant Value2) |
Performs '/' operation. | |
TZVariant | OpEqual (const TZVariant Value1, const TZVariant Value2) |
Performs '=' operation. | |
TZVariant | OpLess (const TZVariant Value1, const TZVariant Value2) |
Performs '<' operation. | |
TZVariant | OpLessEqual (const TZVariant Value1, const TZVariant Value2) |
Performs '<=' operation. | |
TZVariant | OpMod (const TZVariant Value1, const TZVariant Value2) |
Performs '' operation. | |
TZVariant | OpMore (const TZVariant Value1, const TZVariant Value2) |
Performs '>' operation. | |
TZVariant | OpMoreEqual (const TZVariant Value1, const TZVariant Value2) |
Performs '>=' operation. | |
TZVariant | OpMul (const TZVariant Value1, const TZVariant Value2) |
Performs '*' operation. | |
TZVariant | OpNegative (const TZVariant Value) |
Performs unary '-' operation. | |
TZVariant | OpNot (const TZVariant Value) |
Performs '~' operation. | |
TZVariant | OpNotEqual (const TZVariant Value1, const TZVariant Value2) |
Performs '<>' operation. | |
TZVariant | OpOr (const TZVariant Value1, const TZVariant Value2) |
Performs '|' operation. | |
TZVariant | OpPow (const TZVariant Value1, const TZVariant Value2) |
Performs '^' operation. | |
TZVariant | OpSub (const TZVariant Value1, const TZVariant Value2) |
Performs '-' operation. | |
TZVariant | OpXor (const TZVariant Value1, const TZVariant Value2) |
Performs '^' operation. | |
SetAsBoolean (TZVariant &Value, Boolean Data) | |
Assignes a boolean value to variant. | |
SetAsDateTime (TZVariant &Value, TDateTime Data) | |
Assignes a datetime value to variant. | |
SetAsFloat (TZVariant &Value, Extended Data) | |
Assignes a float value to variant. | |
SetAsInteger (TZVariant &Value, Int64 Data) | |
Assignes an integer value to variant. | |
SetAsInterface (TZVariant &Value, IZInterface Data) | |
Assignes a interface value to variant. | |
SetAsPointer (TZVariant &Value, Pointer Data) | |
Assignes a pointer value to variant. | |
SetAsString (TZVariant &Value, const AnsiString Data) | |
Assignes a string value to variant. | |
SetAsUnicodeString (TZVariant &Value, const WideString Data) | |
Assignes a unicode string value to variant. | |
SetNull (TZVariant &Value) | |
Sets the NULL value to specified variant. | |
Protected Member Functions | |
RaiseTypeMismatchError () | |
Raises a type mismatch exception. | |
RaiseUnsupportedOperation () | |
Raises an unsupported operation exception. |
Definition at line 317 of file ZVariant.pas.
Assignes one variant value to another one.
SrcValue | a source variant value. | |
DstValue | a destination variant value. |
Reimplemented from IZVariantManager.
Definition at line 728 of file ZVariant.pas.
Clones a variant value.
Value | a source variant value. |
Reimplemented from IZVariantManager.
Definition at line 754 of file ZVariant.pas.
Compares two variant values.
Value1 | the first variant value. | |
Value2 | the second variant value. |
Reimplemented from IZVariantManager.
Definition at line 898 of file ZVariant.pas.
TZVariant TZDefaultVariantManager::Convert | ( | const TZVariant | Value, | |
TZVariantType | NewType | |||
) |
Converts a specified variant value to a new type.
Value | a variant value to be converted. | |
NewType | a type of the result variant value. |
Reimplemented from IZVariantManager.
Reimplemented in TZSoftVariantManager.
Definition at line 791 of file ZVariant.pas.
Boolean TZDefaultVariantManager::GetAsBoolean | ( | const TZVariant | Value | ) |
Gets a variant to boolean value.
Value | a variant to be converted. | |
a | result value. |
Reimplemented from IZVariantManager.
Definition at line 997 of file ZVariant.pas.
TDateTime TZDefaultVariantManager::GetAsDateTime | ( | const TZVariant | Value | ) |
Gets a variant to date and time value.
Value | a variant to be converted. | |
a | result value. |
Reimplemented from IZVariantManager.
Definition at line 1067 of file ZVariant.pas.
Extended TZDefaultVariantManager::GetAsFloat | ( | const TZVariant | Value | ) |
Gets a variant to float value.
Value | a variant to be converted. | |
a | result value. |
Reimplemented from IZVariantManager.
Definition at line 1025 of file ZVariant.pas.
Int64 TZDefaultVariantManager::GetAsInteger | ( | const TZVariant | Value | ) |
Gets a variant to integer value.
Value | a variant to be converted. | |
a | result value. |
Reimplemented from IZVariantManager.
Definition at line 1011 of file ZVariant.pas.
IZInterface TZDefaultVariantManager::GetAsInterface | ( | const TZVariant | Value | ) |
Gets a variant to interface value.
Value | a variant to be converted. | |
a | result value. |
Reimplemented from IZVariantManager.
Definition at line 1095 of file ZVariant.pas.
Pointer TZDefaultVariantManager::GetAsPointer | ( | const TZVariant | Value | ) |
Gets a variant to pointer value.
Value | a variant to be converted. | |
a | result value. |
Reimplemented from IZVariantManager.
Definition at line 1081 of file ZVariant.pas.
AnsiString TZDefaultVariantManager::GetAsString | ( | const TZVariant | Value | ) |
Gets a variant to string value.
Value | a variant to be converted. | |
a | result value. |
Reimplemented from IZVariantManager.
Definition at line 1039 of file ZVariant.pas.
WideString TZDefaultVariantManager::GetAsUnicodeString | ( | const TZVariant | Value | ) |
Gets a variant to unicode string value.
Value | a variant to be converted. | |
a | result value. |
Reimplemented from IZVariantManager.
Definition at line 1053 of file ZVariant.pas.
Boolean TZDefaultVariantManager::IsNull | ( | const TZVariant | Value | ) |
Checks is the specified value NULL.
Value | a value to be checked. |
True
if variant has NULL value. Reimplemented from IZVariantManager.
Definition at line 970 of file ZVariant.pas.
Performs '+' operation.
Value1 | the first variant argument. | |
Value2 | the second variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1238 of file ZVariant.pas.
Performs '&' operation.
Value1 | the first variant argument. | |
Value2 | the second variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1266 of file ZVariant.pas.
Performs '/' operation.
Value1 | the first variant argument. | |
Value2 | the second variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1293 of file ZVariant.pas.
Performs '=' operation.
Value1 | the first variant argument. | |
Value2 | the second variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1320 of file ZVariant.pas.
Performs '<' operation.
Value1 | the first variant argument. | |
Value2 | the second variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1336 of file ZVariant.pas.
Performs '<=' operation.
Value1 | the first variant argument. | |
Value2 | the second variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1352 of file ZVariant.pas.
Performs '' operation.
Value1 | the first variant argument. | |
Value2 | the second variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1368 of file ZVariant.pas.
Performs '>' operation.
Value1 | the first variant argument. | |
Value2 | the second variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1395 of file ZVariant.pas.
Performs '>=' operation.
Value1 | the first variant argument. | |
Value2 | the second variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1411 of file ZVariant.pas.
Performs '*' operation.
Value1 | the first variant argument. | |
Value2 | the second variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1427 of file ZVariant.pas.
Performs unary '-' operation.
Value | the variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1453 of file ZVariant.pas.
Performs '~' operation.
Value | the variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1478 of file ZVariant.pas.
Performs '<>' operation.
Value1 | the first variant argument. | |
Value2 | the second variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1504 of file ZVariant.pas.
Performs '|' operation.
Value1 | the first variant argument. | |
Value2 | the second variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1520 of file ZVariant.pas.
Performs '^' operation.
Value1 | the first variant argument. | |
Value2 | the second variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1547 of file ZVariant.pas.
Performs '-' operation.
Value1 | the first variant argument. | |
Value2 | the second variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1574 of file ZVariant.pas.
Performs '^' operation.
Value1 | the first variant argument. | |
Value2 | the second variant argument. |
Reimplemented from IZVariantManager.
Definition at line 1601 of file ZVariant.pas.
TZDefaultVariantManager::RaiseTypeMismatchError | ( | ) | [protected] |
TZDefaultVariantManager::RaiseUnsupportedOperation | ( | ) | [protected] |
TZDefaultVariantManager::SetAsBoolean | ( | TZVariant & | Value, | |
Boolean | Data | |||
) |
Assignes a boolean value to variant.
Value | a variant to store the value. | |
Data | a value to be assigned. |
Reimplemented from IZVariantManager.
Definition at line 1109 of file ZVariant.pas.
TZDefaultVariantManager::SetAsDateTime | ( | TZVariant & | Value, | |
TDateTime | Data | |||
) |
Assignes a datetime value to variant.
Value | a variant to store the value. | |
Data | a value to be assigned. |
Reimplemented from IZVariantManager.
Definition at line 1189 of file ZVariant.pas.
TZDefaultVariantManager::SetAsFloat | ( | TZVariant & | Value, | |
Extended | Data | |||
) |
Assignes a float value to variant.
Value | a variant to store the value. | |
Data | a value to be assigned. |
Reimplemented from IZVariantManager.
Definition at line 1141 of file ZVariant.pas.
TZDefaultVariantManager::SetAsInteger | ( | TZVariant & | Value, | |
Int64 | Data | |||
) |
Assignes an integer value to variant.
Value | a variant to store the value. | |
Data | a value to be assigned. |
Reimplemented from IZVariantManager.
Definition at line 1125 of file ZVariant.pas.
TZDefaultVariantManager::SetAsInterface | ( | TZVariant & | Value, | |
IZInterface | Data | |||
) |
Assignes a interface value to variant.
Value | a variant to store the value. | |
Data | a value to be assigned. |
Reimplemented from IZVariantManager.
Definition at line 1221 of file ZVariant.pas.
TZDefaultVariantManager::SetAsPointer | ( | TZVariant & | Value, | |
Pointer | Data | |||
) |
Assignes a pointer value to variant.
Value | a variant to store the value. | |
Data | a value to be assigned. |
Reimplemented from IZVariantManager.
Definition at line 1205 of file ZVariant.pas.
TZDefaultVariantManager::SetAsString | ( | TZVariant & | Value, | |
const AnsiString | Data | |||
) |
Assignes a string value to variant.
Value | a variant to store the value. | |
Data | a value to be assigned. |
Reimplemented from IZVariantManager.
Definition at line 1157 of file ZVariant.pas.
TZDefaultVariantManager::SetAsUnicodeString | ( | TZVariant & | Value, | |
const WideString | Data | |||
) |
Assignes a unicode string value to variant.
Value | a variant to store the value. | |
Data | a value to be assigned. |
Reimplemented from IZVariantManager.
Definition at line 1173 of file ZVariant.pas.
TZDefaultVariantManager::SetNull | ( | TZVariant & | Value | ) |
Sets the NULL value to specified variant.
Value | variant value to be set to NULL. |
Reimplemented from IZVariantManager.
Definition at line 983 of file ZVariant.pas.