[Overview][Classes][Procedures and functions][Index] Reference for unit 'XMLPropStorage' (#lcl)

TXMLConfigStorage

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

Implements a configuration storage mechanism using XML-tagged content.

Declaration

Source position: xmlpropstorage.pas line 76

type TXMLConfigStorage = class(TConfigStorage)

protected

  function GetFullPathValue();

  

Gets the String value stored at the specified path in the XML storage.

  procedure SetFullPathValue();

  

Sets the value for the specified path.

  procedure SetDeleteFullPathValue();

  

Sets the value for or deletes the XML node at the specified path.

  procedure DeleteFullPath(); override;

  

Deletes the XML node and its content and the specified path.

  procedure DeleteFullPathValue(); override;

  

Deletes the value stored in the XML node at the specified path.

public

  procedure Clear; override;

  

Removes all XML nodes stored in the XMLConfig storage.

  constructor Create();

  

Constructor for the class instance.

  destructor Destroy; override;

  

Destructor for the class instance.

  property XMLConfig: TXMLConfig; [r]

  

TXMLConfig with the values accessed and maintained in the class instance.

  property FreeXMLConfig: Boolean; [rw]

  

Indicates whether the TXMLConfig instance is freed when the class is destroyed.

  procedure WriteToDisk; override;

  

Stores the values in XMLConfig to the specified file name.

  function GetFilename; override;

  

Gets the file name passed as an argument to the constructor.

  procedure SaveToStream(); virtual;

  

Saves the content in XMLConfig to the specified TStream instance.

end;

Inheritance

TXMLConfigStorage

  

Implements a configuration storage mechanism using XML-tagged content.

|

TConfigStorage

|

TObject

Description

TXMLConfigStorage is a TConfigStorage descendant which implements an XML-storage mechanism for configuration or other values.

TXMLConfigStorage allows names (paths) and values to be accessed using an XPATH-like syntax.

It provides implementations of the abstract virtual methods defined in the ancestor class. It provides overridden constructors that allow the class instance to be created for a qualified file name, a TXMLConfig instance, a subset of values in a TXMLConfig instance, or a stream. Internally, it use TXMLConfig as the storage for values in the class instance.

Use the XMLConfig property to access the internal storage for class instance. Use the overridden methods to read, write, or delete the names and values in the class instance. For example:

See also

TConfigStorage


Version 3.2 Generated 2024-02-25 Home