TZAnyValue Class Reference

Implements an any value object. More...

Inheritance diagram for TZAnyValue:

TZAbstractObject IZComparable TInterfacedObject IZObject

List of all members.

Public Member Functions

IZInterface Clone ()
 Clones an object instance.
Boolean Equals (const IZInterface &Value)
Boolean Equals (const IZInterface Value)
 Compares this and another property.
Boolean GetBoolean ()
 Gets a stored value converted to boolean.
TDateTime GetDateTime ()
 Gets a stored value converted to datetime.
Extended GetFloat ()
 Gets a stored value converted to double.
Int64 GetInteger ()
 Gets a stored value converted to integer.
AnsiString GetString ()
 Gets a stored value converted to string.
WideString GetUnicodeString ()
 Gets a stored value converted to unicode string.
TZVariant GetValue ()
 Gets a stored any value.
LongInt Hash ()
 Gets a unique hash for this object.
Boolean InstanceOf (const TGUID IId)
 Checks is this object implements a specified interface.
Boolean IsNull ()
 Checks is the stored value contains NULL.
string ToString ()
 Converts this object into the string representation.
 TZAnyValue (TDateTime Value)
 Constructs this object and assignes the main properties.
 TZAnyValue (const WideString Value)
 Constructs this object and assignes the main properties.
 TZAnyValue (const AnsiString Value)
 Constructs this object and assignes the main properties.
 TZAnyValue (Extended Value)
 Constructs this object and assignes the main properties.
 TZAnyValue (Int64 Value)
 Constructs this object and assignes the main properties.
 TZAnyValue (Boolean Value)
 Constructs this object and assignes the main properties.
 TZAnyValue (const TZVariant Value)
 Constructs this object and assignes the main properties.

Private Member Functions

Boolean Equals (const IZInterface &Value)

Private Attributes

TZVariant FValue


Detailed Description

Implements an any value object.

Definition at line 572 of file ZVariant.pas.


Constructor & Destructor Documentation

TZAnyValue::TZAnyValue ( const TZVariant  Value  ) 

Constructs this object and assignes the main properties.

Parameters:
Value an any value.

Definition at line 1845 of file ZVariant.pas.

TZAnyValue::TZAnyValue ( Boolean  Value  ) 

Constructs this object and assignes the main properties.

Parameters:
Value a boolean value.

Definition at line 1858 of file ZVariant.pas.

TZAnyValue::TZAnyValue ( Int64  Value  ) 

Constructs this object and assignes the main properties.

Parameters:
Value a integer value.

Definition at line 1897 of file ZVariant.pas.

TZAnyValue::TZAnyValue ( Extended  Value  ) 

Constructs this object and assignes the main properties.

Parameters:
Value a float value.

Definition at line 1884 of file ZVariant.pas.

TZAnyValue::TZAnyValue ( const AnsiString  Value  ) 

Constructs this object and assignes the main properties.

Parameters:
Value a string value.

Definition at line 1910 of file ZVariant.pas.

TZAnyValue::TZAnyValue ( const WideString  Value  ) 

Constructs this object and assignes the main properties.

Parameters:
Value a unicode string value.

Definition at line 1923 of file ZVariant.pas.

TZAnyValue::TZAnyValue ( TDateTime  Value  ) 

Constructs this object and assignes the main properties.

Parameters:
Value a datetime value.

Definition at line 1871 of file ZVariant.pas.


Member Function Documentation

IZInterface TZAnyValue::Clone (  ) 

Clones an object instance.

Returns:
a clonned object instance.

Reimplemented from TZAbstractObject.

Definition at line 1936 of file ZVariant.pas.

Boolean IZObject::Equals ( const IZInterface Value  )  [inherited]

Boolean IZObject::Equals ( const IZInterface Value  )  [inherited]

Boolean TZAnyValue::Equals ( const IZInterface  Value  ) 

Compares this and another property.

Returns:
True is properties are equal.

Reimplemented from TZAbstractObject.

Definition at line 1948 of file ZVariant.pas.

Boolean TZAnyValue::GetBoolean (  ) 

Gets a stored value converted to boolean.

Returns:
a stored value converted to boolean.

Definition at line 2045 of file ZVariant.pas.

TDateTime TZAnyValue::GetDateTime (  ) 

Gets a stored value converted to datetime.

Returns:
a stored value converted to datetime.

Definition at line 2069 of file ZVariant.pas.

Extended TZAnyValue::GetFloat (  ) 

Gets a stored value converted to double.

Returns:
a stored value converted to double.

Definition at line 2009 of file ZVariant.pas.

Int64 TZAnyValue::GetInteger (  ) 

Gets a stored value converted to integer.

Returns:
a stored value converted to integer.

Definition at line 2021 of file ZVariant.pas.

AnsiString TZAnyValue::GetString (  ) 

Gets a stored value converted to string.

Returns:
a stored value converted to string.

Definition at line 2033 of file ZVariant.pas.

WideString TZAnyValue::GetUnicodeString (  ) 

Gets a stored value converted to unicode string.

Returns:
a stored value converted to unicode string.

Definition at line 2057 of file ZVariant.pas.

TZVariant TZAnyValue::GetValue (  ) 

Gets a stored any value.

Returns:
a stored any value.

Definition at line 1973 of file ZVariant.pas.

LongInt TZAbstractObject::Hash (  )  [inherited]

Gets a unique hash for this object.

Returns:
a unique hash for this object.

Reimplemented from IZObject.

Definition at line 462 of file ZClasses.pas.

Boolean TZAbstractObject::InstanceOf ( const TGUID  IId  )  [inherited]

Checks is this object implements a specified interface.

Parameters:
IId an interface id.
Returns:
True if this object support the interface.

Reimplemented from IZObject.

Definition at line 488 of file ZClasses.pas.

Boolean TZAnyValue::IsNull (  ) 

Checks is the stored value contains NULL.

Returns:
True if NULL is stored.

Definition at line 1997 of file ZVariant.pas.

string TZAnyValue::ToString (  ) 

Converts this object into the string representation.

Returns:
a string representation for this object.

Reimplemented from TZAbstractObject.

Definition at line 1985 of file ZVariant.pas.


Member Data Documentation

Definition at line 577 of file ZVariant.pas.


The documentation for this class was generated from the following file:

Generated on Wed Dec 30 08:42:48 2009 for zeoslib by  doxygen 1.5.7.1