home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 February
/
Chip_2000-02_cd.bin
/
zkuste
/
Delphi
/
navody
/
tt
/
objvm.exe
/
UNITS
/
LangVariables.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1998-03-13
|
1KB
|
43 lines
unit LangVariables;
interface
uses LangValue,
NamedValuesList,LangVariable,ProxyValue;
type TLangVariables=class(ILangValue)
protected
Variables:TNamedValuesList;
function rdValues(const s:string):ILangValue;override;
public
constructor Create;
destructor Destroy;override;
function HasValue(const s:string):boolean;override;
end;
implementation
function TLangVariables.rdValues;
Var a:TProxyValue;
begin
Result:=Variables.ValByName(s);
if Result=nil then
begin
Result:=TLangVariable.Create;
Variables.Add(S,Result);
end;
Result:=TProxyValue.CreateFrom(Result);
end;
constructor TLangVariables.Create;
begin
inherited Create(nil);
Variables:=TNamedValuesList.Create;
end;
destructor TLangVariables.Destroy;
begin
Variables.Free;
inherited Destroy;
end;
function TLangVariables.HasValue;
begin
Result:=True;
end;
end.