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

TConfigMemStorage

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

Implement a configuration storage class using in-memory storage for values in the class instance.

Declaration

Source position: lazconfigstorage.pas line 111

type TConfigMemStorage = class(TConfigStorage)

protected

  procedure DeleteFullPath(); override;

  

Implements the method used to remove the node at the specified path from the configuration storage.

  procedure DeleteFullPathValue(); override;

  

Deletes the node with the specified full path name from the configuration storage.

  function GetFullPathValue();

  

Gets the value from the specified node path with an optional default value when not found.

  procedure SetDeleteFullPathValue();

  

Implements the method used to delete the specified node path or to reset it to a default value.

  procedure SetFullPathValue();

  

Implements the method used to resolve the specified node path prior to storing the specified value.

public

  Root: TConfigMemStorageNode;

  

TConfigMemStorageNode instance with the root node for the configuration storage.

  function GetFilename; override;

  

Re-implements the method used to get the file name where the configuration items are stored. Not used in TConfigMemStorage.

  procedure WriteToDisk; override;

  

Re-implements the method used to store the configuration items to disk.

  destructor Destroy; override;

  

Destructor for the class instance.

  procedure Clear; override;

  

Clears the storage nodes in the memory-based configuration storage.

  procedure SaveToConfig();

  

Save the storage nodes to the specified path in another configuration storage class instance.

  procedure LoadFromConfig();

  

Loads storage nodes from the specified path in another configuration storage class instance.

  procedure WriteDebugReport;

  

Generates the content in the Root node in a format suitable for debugger output.

end;

Inheritance

TConfigMemStorage

  

Implement a configuration storage class using in-memory storage for values in the class instance.

|

TConfigStorage

  

Defines the base class for a configuration storage mechanism.

|

TObject


Version 4.0 Generated 2025-05-03 Home