TZVariablesList Class Reference

Implements a variables list. More...

Inheritance diagram for TZVariablesList:

TInterfacedObject IZVariablesList

List of all members.

Public Member Functions

 Add (const string Name, const TZVariant Value)
 Adds a new variable with value.
 Clear ()
 Clears all variables.
 ClearValues ()
 Clears only variable values.
Integer FindByName (const string Name)
 Finds a variable by specified name.
Integer GetCount ()
 Gets a number of registered variables.
string GetName (Integer Index)
 Gets a variable name by it's index.
TZVariant GetValue (Integer Index)
 Gets a variable value by it's index.
TZVariant GetValueByName (const string Name)
 Gets a variable name by it's name.
 Remove (const string Name)
 Removes a variable by specified name.
 SetValue (Integer Index, const TZVariant Value)
 Sets a variable name by it's index.
 SetValueByName (const string Name, const TZVariant Value)
 Sets a variable name by it's name.
 TZVariablesList ()
 Creates this variable list object.
 ~TZVariablesList ()
 Destroys this object and cleanups the memory.

Private Attributes

Integer Count
TObjectList FVariables
TZVariant NamedValues
string Names
TZVariant Values


Detailed Description

Implements a variables list.

Definition at line 89 of file ZVariables.pas.


Constructor & Destructor Documentation

TZVariablesList::TZVariablesList (  ) 

Creates this variable list object.

Definition at line 181 of file ZVariables.pas.

TZVariablesList::~TZVariablesList (  ) 

Destroys this object and cleanups the memory.

Definition at line 192 of file ZVariables.pas.


Member Function Documentation

TZVariablesList::Add ( const string  Name,
const TZVariant  Value 
)

Adds a new variable with value.

Parameters:
Name a name of the new variable.
Value a value for the new variable.

Reimplemented from IZVariablesList.

Definition at line 235 of file ZVariables.pas.

TZVariablesList::Clear (  ) 

Clears all variables.

Reimplemented from IZVariablesList.

Definition at line 272 of file ZVariables.pas.

TZVariablesList::ClearValues (  ) 

Clears only variable values.

Reimplemented from IZVariablesList.

Definition at line 283 of file ZVariables.pas.

Integer TZVariablesList::FindByName ( const string  Name  ) 

Finds a variable by specified name.

Parameters:
Name a name of the variable.
Returns:
a found variable index or -1 otherwise.

Reimplemented from IZVariablesList.

Definition at line 206 of file ZVariables.pas.

Integer TZVariablesList::GetCount (  ) 

Gets a number of registered variables.

Returns:
a number of all registered variables.

Reimplemented from IZVariablesList.

Definition at line 303 of file ZVariables.pas.

string TZVariablesList::GetName ( Integer  Index  ) 

Gets a variable name by it's index.

Parameters:
Index a variable index.
Returns:
a variable name.

Reimplemented from IZVariablesList.

Definition at line 316 of file ZVariables.pas.

TZVariant TZVariablesList::GetValue ( Integer  Index  ) 

Gets a variable value by it's index.

Parameters:
Index a variable index.
Returns:
a variable value

Reimplemented from IZVariablesList.

Definition at line 330 of file ZVariables.pas.

TZVariant TZVariablesList::GetValueByName ( const string  Name  ) 

Gets a variable name by it's name.

Parameters:
Name a variable name.
Returns:
a variable value.

Reimplemented from IZVariablesList.

Definition at line 344 of file ZVariables.pas.

TZVariablesList::Remove ( const string  Name  ) 

Removes a variable by specified name.

Parameters:
Name a name of variable to be removed.

Reimplemented from IZVariablesList.

Definition at line 251 of file ZVariables.pas.

TZVariablesList::SetValue ( Integer  Index,
const TZVariant  Value 
)

Sets a variable name by it's index.

Parameters:
Index a variable index.
Value a variable value.

Reimplemented from IZVariablesList.

Definition at line 368 of file ZVariables.pas.

TZVariablesList::SetValueByName ( const string  Name,
const TZVariant  Value 
)

Sets a variable name by it's name.

Parameters:
Index a variable name.
Value a variable value.

Reimplemented from IZVariablesList.

Definition at line 383 of file ZVariables.pas.


Member Data Documentation

Integer IZVariablesList::Count [inherited]

See also:
GetCount For reading

Definition at line 174 of file ZExpression.pas.

TObjectList TZVariablesList::FVariables [private]

Definition at line 94 of file ZVariables.pas.

See also:
GetValueByName For reading

SetValueByName For writing

Definition at line 184 of file ZExpression.pas.

string IZVariablesList::Names [inherited]

See also:
GetName For reading

Definition at line 177 of file ZExpression.pas.

See also:
GetValue For reading

SetValue For writing

Definition at line 180 of file ZExpression.pas.


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

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