Sign in Join
FPDoc Onlineexperiment

TXMLConfigStorage.Create constructor

Member of TXMLConfigStoragepublicIn unit XMLPropStorage

Constructor for the class instance.

Declaration

pascal
constructor Create(const Filename: string; LoadFromDisk: Boolean)
                  ;  override
constructor Create(TheXMLConfig: TXMLConfig)
constructor Create(TheXMLConfig: TXMLConfig; const StartPath: string)
constructor Create(s: TStream; const StartPath: string='')

Arguments

Filename

Qualified file name where the XML content is stored.

LoadFromDisk

True to load existing XML content from the file, or False to create an empty storage.

TheXMLConfig

TXMLConfig instance where the XML paths and values are stored.

StartPath

Initial path for values read and written in the class instance.

s

Stream with the XML content loaded in the XMLConfig storage.

Description

Create is the overridden, overloaded constructor for the class instance. The overloaded variants allow the XML content to read from various sources like a file name, a TXMLConfig instance, a scoped TXMLConfig instance, or a TStream instance.

Use WriteToDisk or SaveToStream to specify where the XML content is stored .

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.