delphirtl • Docs
delphirtl / TIniFile
TCustomIniFile
new TIniFile(
fileName
):TIniFile
• fileName: string
TCustomIniFile.constructor
protected
data:Map
<string
,Map
<string
,string
>>
TCustomIniFile.data
FileName:
string
protected
sectionOrder:string
[] =[]
TCustomIniFile.sectionOrder
AfterConstruction():
void
Responds after the last constructor has executed.
AfterConstruction is called automatically after the object’s last constructor has executed. Do not call it explicitly in your applications.
The AfterConstruction method implemented in TObject does nothing. Override this method when creating a class that performs an action after the object is created.
void
TCustomIniFile.AfterConstruction
BeforeDestruction():
void
Responds before the first destructor executes.
BeforeDestruction is called automatically before the object’s first destructor executes. Do not call it explicitly in your applications.
The BeforeDestruction method implemented in TObject does nothing. Override this method when creating a class that performs an action before the object is destroyed.
void
TCustomIniFile.BeforeDestruction
DeleteKey(
Section
,Key
):void
• Section: string
• Key: string
void
TCustomIniFile.DeleteKey
destroy():
void
performs cleanup tasks and destroys the object
void
TCustomIniFile.destroy
Destroy():
void
void
TCustomIniFile.Destroy
protected
ensureSection(name
):Map
<string
,string
>
• name: string
Map
<string
, string
>
TCustomIniFile.ensureSection
EraseSection(
Section
):void
• Section: string
void
TCustomIniFile.EraseSection
free():
void
Calls destroy to perform any cleanup tasks. Call Free() to destroy the object, so as to retain Delphi-style AfterConstruction and BeforeDestruction semantics.
void
TCustomIniFile.free
Free():
void
Destroys the object, maintaining Delphi-style AfterConstruction and BeforeDestruction semantics.
void
TCustomIniFile.Free
protected
load():void
void
TCustomIniFile.load
parse(
text
):EnvNode
[]
• text: string
EnvNode
[]
TCustomIniFile.parse
ReadBinaryStream(
Section
,Key
,stream
):number
• Section: string
• Key: string
• stream: any
number
TCustomIniFile.ReadBinaryStream
ReadBool(
Section
,Key
,Default
):boolean
• Section: string
• Key: string
• Default: boolean
boolean
TCustomIniFile.ReadBool
ReadDate(
Section
,Key
,Default
):Date
• Section: string
• Key: string
• Default: Date
Date
TCustomIniFile.ReadDate
ReadDateTime(
Section
,Key
,Default
):Date
• Section: string
• Key: string
• Default: Date
Date
TCustomIniFile.ReadDateTime
ReadFloat(
Section
,Key
,Default
):number
• Section: string
• Key: string
• Default: number
number
TCustomIniFile.ReadFloat
ReadInt64(
Section
,Key
,Default
):number
• Section: string
• Key: string
• Default: number
number
TCustomIniFile.ReadInt64
ReadInteger(
Section
,Key
,Default
):number
• Section: string
• Key: string
• Default: number
number
TCustomIniFile.ReadInteger
ReadSection(
Section
,Strings
):void
• Section: string
• Strings: string
[]
void
TCustomIniFile.ReadSection
ReadSectionValues(
Section
,Strings
):void
• Section: string
• Strings: string
[]
void
TCustomIniFile.ReadSectionValues
ReadString(
Section
,Key
,Default
):string
• Section: string
• Key: string
• Default: string
string
TCustomIniFile.ReadString
ReadSubSections(
Section
,Strings
,Recurse
):void
• Section: string
• Strings: string
[]
• Recurse: boolean
= false
void
TCustomIniFile.ReadSubSections
ReadTime(
Section
,Key
,Default
):Date
• Section: string
• Key: string
• Default: Date
Date
TCustomIniFile.ReadTime
protected
save():void
void
TCustomIniFile.save
SectionExists(
Section
):boolean
• Section: string
boolean
TCustomIniFile.SectionExists
UpdateFile():
void
void
TCustomIniFile.UpdateFile
ValueExists(
Section
,Key
):boolean
• Section: string
• Key: string
boolean
TCustomIniFile.ValueExists
WriteBinaryStream(
Section
,Key
,stream
):void
• Section: string
• Key: string
• stream: any
void
TCustomIniFile.WriteBinaryStream
WriteBool(
Section
,Key
,Value
):void
• Section: string
• Key: string
• Value: boolean
void
TCustomIniFile.WriteBool
WriteDate(
Section
,Key
,Value
):void
• Section: string
• Key: string
• Value: Date
void
TCustomIniFile.WriteDate
WriteDateTime(
Section
,Key
,Value
):void
• Section: string
• Key: string
• Value: Date
void
TCustomIniFile.WriteDateTime
WriteFloat(
Section
,Key
,Value
):void
• Section: string
• Key: string
• Value: number
void
TCustomIniFile.WriteFloat
WriteInt64(
Section
,Key
,Value
):void
• Section: string
• Key: string
• Value: number
void
TCustomIniFile.WriteInt64
WriteInteger(
Section
,Key
,Value
):void
• Section: string
• Key: string
• Value: number
void
TCustomIniFile.WriteInteger
WriteString(
Section
,Key
,Value
):void
• Section: string
• Key: string
• Value: string
void
TCustomIniFile.WriteString
WriteTime(
Section
,Key
,Value
):void
• Section: string
• Key: string
• Value: Date
void
TCustomIniFile.WriteTime
static
Create<T
>(this
, …args
):T
Creates a new instance of the class. To create a new constructor, declare the constructor(args) method and call the super constructor. Then, to instantiate the class, call YourClass.Create(args) instead of new YourClass(args), so as to retain Delphi-style AfterConstruction and BeforeDestruction semantics.
• T extends TObject
<T
>
• this
• …args: any
[]
T
TCustomIniFile.Create