123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924 |
- unit Registry;
- {$mode objfpc}
- interface
- uses
- Classes, SysUtils;
- type
- HKEY = Integer;
- PHKEY = ^HKEY;
- ERegistryException = class(Exception);
- TRegKeyInfo = record
- NumSubKeys: Integer;
- MaxSubKeyLen: Integer;
- NumValues: Integer;
- MaxValueLen: Integer;
- MaxDataLen: Integer;
- //FileTime: TFileTime;
- end;
- TRegDataType = (rdUnknown, rdString, rdExpandString, rdInteger, rdBinary);
- TRegDataInfo = record
- RegData: TRegDataType;
- DataSize: Integer;
- end;
- { TRegistry }
- {
- @abstract(Class to provide access to a registry.)
- Introduced by Curtis White
- Currently maintained by Curtis White
- }
- TRegistry = class(TObject)
- private
- fCurrentKey: HKEY;
- fRootKey: HKEY;
- fLazyWrite: Boolean;
- fCurrentPath: string;
- //fCloseRootKey: Boolean;
- procedure SetRootKey(Value: HKEY);
- protected
- function GetBaseKey(Relative: Boolean): HKey;
- function GetData(const Name: string; Buffer: Pointer;
- BufSize: Integer; var RegData: TRegDataType): Integer;
- function GetKey(const Key: string): HKEY;
- procedure ChangeKey(Value: HKey; const Path: string);
- procedure PutData(const Name: string; Buffer: Pointer;
- BufSize: Integer; RegData: TRegDataType);
- procedure SetCurrentKey(Value: HKEY);
- public
- constructor Create;
- destructor Destroy; override;
- function CreateKey(const Key: string): Boolean;
- function DeleteKey(const Key: string): Boolean;
- function DeleteValue(const Name: string): Boolean;
- function GetDataInfo(const ValueName: string; var Value: TRegDataInfo): Boolean;
- function GetDataSize(const ValueName: string): Integer;
- function GetDataType(const ValueName: string): TRegDataType;
- function GetKeyInfo(var Value: TRegKeyInfo): Boolean;
- function HasSubKeys: Boolean;
- function KeyExists(const Key: string): Boolean;
- function LoadKey(const Key, FileName: string): Boolean;
- function OpenKey(const Key: string; CanCreate: Boolean): Boolean;
- //function ReadCurrency(const Name: string): Currency;
- function ReadBinaryData(const Name: string; var Buffer; BufSize: Integer): Integer;
- function ReadBool(const Name: string): Boolean;
- function ReadDate(const Name: string): TDateTime;
- function ReadDateTime(const Name: string): TDateTime;
- function ReadFloat(const Name: string): Double;
- function ReadInteger(const Name: string): Integer;
- function ReadString(const Name: string): string;
- function ReadTime(const Name: string): TDateTime;
- function RegistryConnect(const UNCName: string): Boolean;
- function ReplaceKey(const Key, FileName, BackUpFileName: string): Boolean;
- function RestoreKey(const Key, FileName: string): Boolean;
- function SaveKey(const Key, FileName: string): Boolean;
- function UnLoadKey(const Key: string): Boolean;
- function ValueExists(const Name: string): Boolean;
- procedure CloseKey;
- procedure GetKeyNames(Strings: TStrings);
- procedure GetValueNames(Strings: TStrings);
- procedure MoveKey(const OldName, NewName: string; Delete: Boolean);
- procedure RenameValue(const OldName, NewName: string);
- //procedure WriteCurrency(const Name: string; Value: Currency);
- procedure WriteBinaryData(const Name: string; var Buffer; BufSize: Integer);
- procedure WriteBool(const Name: string; Value: Boolean);
- procedure WriteDate(const Name: string; Value: TDateTime);
- procedure WriteDateTime(const Name: string; Value: TDateTime);
- procedure WriteFloat(const Name: string; Value: Double);
- procedure WriteInteger(const Name: string; Value: Integer);
- procedure WriteString(const Name, Value: string);
- procedure WriteExpandString(const Name, Value: string);
- procedure WriteTime(const Name: string; Value: TDateTime);
- property CurrentKey: HKEY read fCurrentKey;
- property CurrentPath: string read fCurrentPath;
- property LazyWrite: Boolean read fLazyWrite write fLazyWrite;
- property RootKey: HKEY read fRootKey write SetRootKey;
- end;
- { TRegIniFile }
- {
- @abstract(Class to provide access to a registry in an Ini file manner.)
- Introduced by Curtis White
- Currently maintained by Curtis White
- }
- TRegIniFile = class(TRegistry)
- private
- fFileName: String;
- public
- constructor Create(const FN: string);
- function ReadString(const Section, Ident, Default: string): string;
- function ReadInteger(const Section, Ident: string;
- Default: Longint): Longint;
- function ReadBool(const Section, Ident: string; Default: Boolean): Boolean;
- procedure WriteString(const Section, Ident, Value: String);
- procedure WriteInteger(const Section, Ident: string; Value: Longint);
- procedure WriteBool(const Section, Ident: string; Value: Boolean);
- procedure ReadSection(const Section: string; Strings: TStrings);
- procedure ReadSections(Strings: TStrings);
- procedure ReadSectionValues(const Section: string; Strings: TStrings);
- procedure EraseSection(const Section: string);
- procedure DeleteKey(const Section, Ident: String);
- property FileName: String read fFileName;
- end;
- implementation
- {******************************************************************************
- TRegistry
- ******************************************************************************}
- {------------------------------------------------------------------------------
- Method: TRegistry.Create
- Params: None
- Returns: Nothing
- Constructor for the class.
- ------------------------------------------------------------------------------}
- constructor TRegistry.Create;
- begin
- inherited Create;
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.Destroy
- Params: None
- Returns: Nothing
- Destructor for the class.
- ------------------------------------------------------------------------------}
- destructor TRegistry.Destroy;
- begin
- inherited Destroy;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.CreateKey
- Params: Key: String key to create
- Returns: Boolean containing result of the create. True if it succeeded.
- Create a registry key.
- ------------------------------------------------------------------------------}
- function TRegistry.CreateKey(const Key: String): Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.DeleteKey
- Params: Key: String key to create
- Returns: Boolean containing result of the delete. True if it succeeded.
- Delete a registry key.
- ------------------------------------------------------------------------------}
- function TRegistry.DeleteKey(const Key: String): Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.DeleteValue
- Params: Name: Name of key of which to delete its value
- Returns: Boolean containing result of the function. True if it succeeded.
- Delete the value for a registry key.
- ------------------------------------------------------------------------------}
- function TRegistry.DeleteValue(const Name: String): Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.GetBaseKey
- Params: Relative: Is the key relative or absolute. True if relative.
- Returns: HKey containing the base key.
- Gets the base key.
- ------------------------------------------------------------------------------}
- function TRegistry.GetBaseKey(Relative: Boolean): HKey;
- begin
- Result := CurrentKey;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.GetData
- Params: Name: name of the key
- Buffer:
- BufSize:
- RegData:
- Returns: Integer containing output from the function.
- Gets data from the registry.
- ------------------------------------------------------------------------------}
- function TRegistry.GetData(const Name: String; Buffer: Pointer;
- BufSize: Integer; var RegData: TRegDataType): Integer;
- begin
- Result := 0;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.GetDataInfo
- Params: ValueName: name of the value to get info on
- Value:
- Returns: Boolean containing result of the function. True if it succeeded.
- Get info on the data value.
- ------------------------------------------------------------------------------}
- function TRegistry.GetDataInfo(const ValueName: String; var Value: TRegDataInfo): Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.GetDataSize
- Params: ValueName: name of the value to get info on
- Returns: Integer containing the size of the value.
- Get the size of the data value.
- ------------------------------------------------------------------------------}
- function TRegistry.GetDataSize(const ValueName: String): Integer;
- begin
- Result := 0;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.GetDataType
- Params: ValueName: name of the value to get info on
- Returns: TRegDataType containing type of the value.
- Get the type of the data value.
- ------------------------------------------------------------------------------}
- function TRegistry.GetDataType(const ValueName: string): TRegDataType;
- begin
- Result := rdUnknown;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.GetKey
- Params: Key: key to get
- Returns: HKey containing the key.
- Get a key from the registry.
- ------------------------------------------------------------------------------}
- function TRegistry.GetKey(const Key: String): HKEY;
- begin
- Result := 0;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.GetKeyInfo
- Params: Value: value of info to get key info on
- Returns: Boolean containing result of the function. True if it succeeded.
- Get the info of a key.
- ------------------------------------------------------------------------------}
- function TRegistry.GetKeyInfo(var Value: TRegKeyInfo): Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.HasSubKeys
- Params: None
- Returns: Boolean containing result of the function. True if there are sub
- keys.
- See if the key has sub keys.
- ------------------------------------------------------------------------------}
- function TRegistry.HasSubKeys: Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.KeyExists
- Params: Key: the name of the key
- Returns: Boolean containing result of the function. True if the key exists.
- Check to see if a key exists.
- ------------------------------------------------------------------------------}
- function TRegistry.KeyExists(const Key: string): Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.LoadKey
- Params: Key: the name of the key
- FileName: file containing the key to load
- Returns: Boolean containing result of the function. True if it succeeded.
- Load a key from a file.
- ------------------------------------------------------------------------------}
- function TRegistry.LoadKey(const Key, FileName: string): Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.OpenKey
- Params: Key: the name of the key
- CanCreate: create the key if it does not exist. True to create
- Returns: Boolean containing result of the function. True if it succeeded.
- Open a key and optionally create it if is does not exist.
- ------------------------------------------------------------------------------}
- function TRegistry.OpenKey(const Key: string; CanCreate: Boolean): Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.ReadBinaryData
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegistry.ReadBinaryData(const Name: string; var Buffer; BufSize: Integer): Integer;
- begin
- Result := 0;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.ReadBool
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegistry.ReadBool(const Name: string): Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.ReadCurrency
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- {function TRegistry.ReadCurrency(const Name: string): Currency;
- begin
- Result := 0.0;
- end;}
- {------------------------------------------------------------------------------
- Function: TRegistry.ReadDate
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegistry.ReadDate(const Name: string): TDateTime;
- begin
- Result := now;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.ReadDateTime
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegistry.ReadDateTime(const Name: string): TDateTime;
- begin
- Result := now;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.ReadFloat
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegistry.ReadFloat(const Name: string): Double;
- begin
- Result := 0.0;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.ReadInteger
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegistry.ReadInteger(const Name: string): Integer;
- begin
- Result := 0;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.ReadString
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegistry.ReadString(const Name: string): string;
- begin
- Result := '';
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.ReadTime
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegistry.ReadTime(const Name: string): TDateTime;
- begin
- Result := now;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.RegistryConnect
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegistry.RegistryConnect(const UNCName: string): Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.ReplaceKey
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegistry.ReplaceKey(const Key, FileName, BackUpFileName: string): Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.RestoreKey
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegistry.RestoreKey(const Key, FileName: string): Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.SaveKey
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegistry.SaveKey(const Key, FileName: string): Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.UnLoadKey
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegistry.UnLoadKey(const Key: string): Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Function: TRegistry.ValueExists
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegistry.ValueExists(const Name: string): Boolean;
- begin
- Result := True;
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.CloseKey
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.CloseKey;
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.ChangeKey
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.ChangeKey(Value: HKey; const Path: String);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.GetKeyName
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.GetKeyNames(Strings: TStrings);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.GetValueNames
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.GetValueNames(Strings: TStrings);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.MoveKey
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.MoveKey(const OldName, NewName: string; Delete: Boolean);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.PutData
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.PutData(const Name: string; Buffer: Pointer;
- BufSize: Integer; RegData: TRegDataType);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.RenameValue
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.RenameValue(const OldName, NewName: string);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.SetCurrentKey
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.SetCurrentKey(Value: HKEY);
- begin
- fCurrentKey := Value;
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.SetRootKey
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.SetRootKey(Value: HKEY);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.WriteBinaryData
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.WriteBinaryData(const Name: string; var Buffer; BufSize: Integer);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.WriteBool
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.WriteBool(const Name: string; Value: Boolean);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.WriteCurrency
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- {procedure TRegistry.WriteCurrency(const Name: string; Value: Currency);
- begin
- end;}
- {------------------------------------------------------------------------------
- Method: TRegistry.WriteDate
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.WriteDate(const Name: string; Value: TDateTime);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.WriteDateTime
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.WriteDateTime(const Name: string; Value: TDateTime);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.WriteExpandString
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.WriteExpandString(const Name, Value: string);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.WriteFloat
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.WriteFloat(const Name: string; Value: Double);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.WriteInteger
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.WriteInteger(const Name: string; Value: Integer);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.WriteString
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.WriteString(const Name, Value: string);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegistry.WriteTime
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegistry.WriteTime(const Name: string; Value: TDateTime);
- begin
- end;
- {******************************************************************************
- TRegIniFile
- ******************************************************************************}
- {------------------------------------------------------------------------------
- Method: TRegIniFile.Create
- Params: None
- Returns: Nothing
- Constructor for the class.
- ------------------------------------------------------------------------------}
- constructor TRegIniFile.Create(const FN: String);
- begin
- inherited Create;
- fFileName := FN;
- end;
- {------------------------------------------------------------------------------
- Method: TRegIniFile.MyMethod
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegIniFile.DeleteKey(const Section, Ident: String);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegIniFile.MyMethod
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegIniFile.EraseSection(const Section: string);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegIniFile.MyMethod
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegIniFile.ReadSection(const Section: string; Strings: TStrings);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegIniFile.MyMethod
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegIniFile.ReadSections(Strings: TStrings);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegIniFile.MyMethod
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegIniFile.ReadSectionValues(const Section: string; Strings: TStrings);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegIniFile.MyMethod
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegIniFile.WriteBool(const Section, Ident: string; Value: Boolean);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegIniFile.MyMethod
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegIniFile.WriteInteger(const Section, Ident: string; Value: LongInt);
- begin
- end;
- {------------------------------------------------------------------------------
- Method: TRegIniFile.MyMethod
- Params: AOwner: the owner of the class
- Returns: Nothing
- Description of the procedure for the class.
- ------------------------------------------------------------------------------}
- procedure TRegIniFile.WriteString(const Section, Ident, Value: String);
- begin
- end;
- {------------------------------------------------------------------------------
- Function: TRegIniFile.MyFunction
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegIniFile.ReadBool(const Section, Ident: string; Default: Boolean): Boolean;
- begin
- Result := Default;
- end;
- {------------------------------------------------------------------------------
- Function: TRegIniFile.MyFunction
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegIniFile.ReadInteger(const Section, Ident: string; Default: LongInt): LongInt;
- begin
- Result := Default;
- end;
- {------------------------------------------------------------------------------
- Function: TRegIniFile.MyFunction
- Params: AOwner: the owner of the class
- Returns: String containing output from the function.
- Description of the function for the class.
- ------------------------------------------------------------------------------}
- function TRegIniFile.ReadString(const Section, Ident, Default: String): String;
- begin
- Result := Default;
- end;
- end.
- {
- $Log$
- Revision 1.3 2002-09-07 15:15:25 peter
- * old logs removed and tabs fixed
- }
|