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

TRttiXMLConfig

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements an XML configuration file with RTTI support.

Declaration

Source position: laz2_xmlcfg.pas line 160

type TRttiXMLConfig = class(TXMLConfig)

protected

  procedure WriteProperty();

  

Writes a property value from an object to the specified path in the XML Document.

  procedure ReadProperty();

  

Stores the value for the specified path to a property in an object instance.

public

  procedure WriteObject();

  

Stores property values from an object to the specified path in the document.

  procedure ReadObject();

  

Stores property values from the specified path to an object instance.

end;

Inheritance

TRttiXMLConfig

  

Implements an XML configuration file with RTTI support.

|

TXMLConfig

  

Implements a class used to access and maintain an XML configuration data file.

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent,IFPObserved

|

TObject

Description

TRttiXMLConfig is a TXMLConfig descendant which implements support for reading and writing objects and their property values using RTTI (Run-Time Type Information). TRttiXMLConfig extends the ancestor class to include methods used to read and write objects, or just specific properties, using path specifiers supported in the class. See the TXMLConfig Path Syntax topic for more information about path specifiers in TXMLConfig.

Type information provided by RTTI (Run-Time Type Information) is used to determine the value and formatting used for supported data types. Supported RTTI type kinds include:

Remark: Properties must be implemented with both getter and setter procedures to be available for use in TRttiXMLConfig. Properties which do not use both types of procedure are ignored.

See also

TXMLConfig

  

Implements a class used to access and maintain an XML configuration data file.

TXMLConfig-PathSyntax

  

TXMLConfig Path Syntax.


Version 4.0 Generated 2025-05-03 Home