Sign in Join
FPDoc Onlineexperiment

TXMLConfigStorage class

In unit XMLPropStorage

Implements a configuration storage mechanism using XML-tagged content.

Declaration

pascal
TXMLConfigStorage = class(TConfigStorage)

Inheritance

  1. TXMLConfigStorage
  2. TConfigStorage

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:

  • DeleteFullPathValue
  • GetFullPathValue
  • SetDeleteFullPathValue
  • SetFullPathValue

See also

Properties

XMLConfigpublicTXMLConfig with the values accessed and maintained in the class instance.
FreeXMLConfigpublicIndicates whether the TXMLConfig instance is freed when the class is destroyed.

Methods

GetFullPathValueprotectedGets the String value stored at the specified path in the XML storage.
SetFullPathValueprotectedSets the value for the specified path.
SetDeleteFullPathValueprotectedSets the value for or deletes the XML node at the specified path.
DeleteFullPathprotectedDeletes the XML node and its content and the specified path.
DeleteFullPathValueprotectedDeletes the value stored in the XML node at the specified path.
ClearpublicRemoves all XML nodes stored in the XMLConfig storage.
CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
WriteToDiskpublicStores the values in XMLConfig to the specified file name.
GetFilenamepublicGets the file name passed as an argument to the constructor.
SaveToStreampublicSaves the content in XMLConfig to the specified TStream instance.

Inherited

From TConfigStorage (13)

AppendBasePath CurrentBasePath DeletePath DeleteValue ExtendPath GetValue ReadObject ReadProperty SetDeleteValue SetValue UndoAppendBasePath WriteObject WriteProperty

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