[Overview][Classes][Procedures and functions][Index] Reference for unit 'Laz2_XMLCfg' (#lazutils)

TXMLConfig.Create

Constructor for the class instance.

Declaration

Source position: laz2_xmlcfg.pas line 99

public constructor TXMLConfig.Create(

  AOwner: TComponent

); override; overload;

constructor TXMLConfig.Create(

  const AFilename: string

); overload;

Arguments

AOwner

  

Owner of the class instance.

Arguments

AFilename

  

File with the XML content loaded in the class instance.

Description

Create is the overloaded, overridden constructor for the class instance.

Calling Create with the AFilename argument causes the XML content in the specified Filename to be loaded into the class instance. The variant that specifies an owner simply sets the default values in ReadFlags, WriteFlags, and its internal format settings.

Alternate constructors, like CreateClean and CreateWithSource, are provided to create an empty XML configuration file or to load its content from a String variable.

See also

TXMLConfig.CreateClean

  

Alternate constructor used to create the class without reading existing XML content in the specified file.

TXMLConfig.CreateWithSource

  

Alternate constructor used to create the class using the XML content specified in Source.

TXMLConfig.Destroy

  

Destructor for the class instance.

TXMLConfig.ReadFlags

  

TXMLReaderFlags for the XML configuration file.

TXMLConfig.WriteFlags

  

TXMLWriteFlags for the XML configuration file.


Version 4.0 Generated 2025-05-03 Home