delphirtl

delphirtlDocs


delphirtl / TIniFile

Class: TIniFile

Extends

Constructors

new TIniFile()

new TIniFile(fileName): TIniFile

Parameters

fileName: string

Returns

TIniFile

Overrides

TCustomIniFile.constructor

Defined in

src/inifiles.ts:240

Properties

data

protected data: Map<string, Map<string, string>>

Inherited from

TCustomIniFile.data

Defined in

src/inifiles.ts:14


FileName

FileName: string

Defined in

src/inifiles.ts:238


sectionOrder

protected sectionOrder: string[] = []

Inherited from

TCustomIniFile.sectionOrder

Defined in

src/inifiles.ts:13

Methods

AfterConstruction()

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.

Returns

void

Inherited from

TCustomIniFile.AfterConstruction

Defined in

src/rtl.ts:66


BeforeDestruction()

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.

Returns

void

Inherited from

TCustomIniFile.BeforeDestruction

Defined in

src/rtl.ts:75


DeleteKey()

DeleteKey(Section, Key): void

Parameters

Section: string

Key: string

Returns

void

Inherited from

TCustomIniFile.DeleteKey

Defined in

src/inifiles.ts:215


destroy()

destroy(): void

performs cleanup tasks and destroys the object

Returns

void

Inherited from

TCustomIniFile.destroy

Defined in

src/inifiles.ts:20


Destroy()

Destroy(): void

Returns

void

Inherited from

TCustomIniFile.Destroy

Defined in

src/rtl.ts:25


ensureSection()

protected ensureSection(name): Map<string, string>

Parameters

name: string

Returns

Map<string, string>

Inherited from

TCustomIniFile.ensureSection

Defined in

src/inifiles.ts:25


EraseSection()

EraseSection(Section): void

Parameters

Section: string

Returns

void

Inherited from

TCustomIniFile.EraseSection

Defined in

src/inifiles.ts:208


free()

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.

Returns

void

Inherited from

TCustomIniFile.free

Defined in

src/rtl.ts:30


Free()

Free(): void

Destroys the object, maintaining Delphi-style AfterConstruction and BeforeDestruction semantics.

Returns

void

Inherited from

TCustomIniFile.Free

Defined in

src/rtl.ts:37


load()

protected load(): void

Returns

void

Overrides

TCustomIniFile.load

Defined in

src/inifiles.ts:246


parse()

parse(text): EnvNode[]

Parameters

text: string

Returns

EnvNode[]

Inherited from

TCustomIniFile.parse

Defined in

src/env.ts:45


ReadBinaryStream()

ReadBinaryStream(Section, Key, stream): number

Parameters

Section: string

Key: string

stream: any

Returns

number

Inherited from

TCustomIniFile.ReadBinaryStream

Defined in

src/inifiles.ts:147


ReadBool()

ReadBool(Section, Key, Default): boolean

Parameters

Section: string

Key: string

Default: boolean

Returns

boolean

Inherited from

TCustomIniFile.ReadBool

Defined in

src/inifiles.ts:77


ReadDate()

ReadDate(Section, Key, Default): Date

Parameters

Section: string

Key: string

Default: Date

Returns

Date

Inherited from

TCustomIniFile.ReadDate

Defined in

src/inifiles.ts:111


ReadDateTime()

ReadDateTime(Section, Key, Default): Date

Parameters

Section: string

Key: string

Default: Date

Returns

Date

Inherited from

TCustomIniFile.ReadDateTime

Defined in

src/inifiles.ts:121


ReadFloat()

ReadFloat(Section, Key, Default): number

Parameters

Section: string

Key: string

Default: number

Returns

number

Inherited from

TCustomIniFile.ReadFloat

Defined in

src/inifiles.ts:90


ReadInt64()

ReadInt64(Section, Key, Default): number

Parameters

Section: string

Key: string

Default: number

Returns

number

Inherited from

TCustomIniFile.ReadInt64

Defined in

src/inifiles.ts:65


ReadInteger()

ReadInteger(Section, Key, Default): number

Parameters

Section: string

Key: string

Default: number

Returns

number

Inherited from

TCustomIniFile.ReadInteger

Defined in

src/inifiles.ts:54


ReadSection()

ReadSection(Section, Strings): void

Parameters

Section: string

Strings: string[]

Returns

void

Inherited from

TCustomIniFile.ReadSection

Defined in

src/inifiles.ts:176


ReadSectionValues()

ReadSectionValues(Section, Strings): void

Parameters

Section: string

Strings: string[]

Returns

void

Inherited from

TCustomIniFile.ReadSectionValues

Defined in

src/inifiles.ts:183


ReadString()

ReadString(Section, Key, Default): string

Parameters

Section: string

Key: string

Default: string

Returns

string

Inherited from

TCustomIniFile.ReadString

Defined in

src/inifiles.ts:41


ReadSubSections()

ReadSubSections(Section, Strings, Recurse): void

Parameters

Section: string

Strings: string[]

Recurse: boolean = false

Returns

void

Inherited from

TCustomIniFile.ReadSubSections

Defined in

src/inifiles.ts:190


ReadTime()

ReadTime(Section, Key, Default): Date

Parameters

Section: string

Key: string

Default: Date

Returns

Date

Inherited from

TCustomIniFile.ReadTime

Defined in

src/inifiles.ts:117


save()

protected save(): void

Returns

void

Overrides

TCustomIniFile.save

Defined in

src/inifiles.ts:298


SectionExists()

SectionExists(Section): boolean

Parameters

Section: string

Returns

boolean

Inherited from

TCustomIniFile.SectionExists

Defined in

src/inifiles.ts:33


UpdateFile()

UpdateFile(): void

Returns

void

Overrides

TCustomIniFile.UpdateFile

Defined in

src/inifiles.ts:322


ValueExists()

ValueExists(Section, Key): boolean

Parameters

Section: string

Key: string

Returns

boolean

Inherited from

TCustomIniFile.ValueExists

Defined in

src/inifiles.ts:37


WriteBinaryStream()

WriteBinaryStream(Section, Key, stream): void

Parameters

Section: string

Key: string

stream: any

Returns

void

Inherited from

TCustomIniFile.WriteBinaryStream

Defined in

src/inifiles.ts:157


WriteBool()

WriteBool(Section, Key, Value): void

Parameters

Section: string

Key: string

Value: boolean

Returns

void

Inherited from

TCustomIniFile.WriteBool

Defined in

src/inifiles.ts:86


WriteDate()

WriteDate(Section, Key, Value): void

Parameters

Section: string

Key: string

Value: Date

Returns

void

Inherited from

TCustomIniFile.WriteDate

Defined in

src/inifiles.ts:125


WriteDateTime()

WriteDateTime(Section, Key, Value): void

Parameters

Section: string

Key: string

Value: Date

Returns

void

Inherited from

TCustomIniFile.WriteDateTime

Defined in

src/inifiles.ts:133


WriteFloat()

WriteFloat(Section, Key, Value): void

Parameters

Section: string

Key: string

Value: number

Returns

void

Inherited from

TCustomIniFile.WriteFloat

Defined in

src/inifiles.ts:97


WriteInt64()

WriteInt64(Section, Key, Value): void

Parameters

Section: string

Key: string

Value: number

Returns

void

Inherited from

TCustomIniFile.WriteInt64

Defined in

src/inifiles.ts:73


WriteInteger()

WriteInteger(Section, Key, Value): void

Parameters

Section: string

Key: string

Value: number

Returns

void

Inherited from

TCustomIniFile.WriteInteger

Defined in

src/inifiles.ts:61


WriteString()

WriteString(Section, Key, Value): void

Parameters

Section: string

Key: string

Value: string

Returns

void

Inherited from

TCustomIniFile.WriteString

Defined in

src/inifiles.ts:46


WriteTime()

WriteTime(Section, Key, Value): void

Parameters

Section: string

Key: string

Value: Date

Returns

void

Inherited from

TCustomIniFile.WriteTime

Defined in

src/inifiles.ts:129


Create()

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.

Type Parameters

T extends TObject<T>

Parameters

this

• …args: any[]

Returns

T

Inherited from

TCustomIniFile.Create

Defined in

src/rtl.ts:49