Class TXMLConfig
Unit
CastleXMLCfgInternal
Declaration
type TXMLConfig = class(TComponent)
Description
Warning: this symbol is deprecated.
"APath" is the path and name of a value: A XML configuration file is hierachical. "/" is the path delimiter, the part after the last "/" is the name of the value. The path components will be mapped to XML elements, the name will be an element attribute.
Hierarchy
Overview
Fields
Methods
 |
procedure Loaded; override; |
 |
function FindNode(const APath: String; PathHasValue: boolean): TDomNode; |
 |
function Escape(const s: String): String; |
 |
constructor Create(AOwner: TComponent); override; |
 |
destructor Destroy; override; |
 |
procedure Clear; |
 |
procedure Flush; |
 |
function GetValue(const APath, ADefault: String): String; overload; |
 |
function GetValue(const APath: String; ADefault: Integer): Integer; overload; |
 |
function GetValue(const APath: String; ADefault: Boolean): Boolean; overload; |
 |
procedure SetValue(const APath, AValue: String); overload; |
 |
procedure SetDeleteValue(const APath, AValue, DefValue: String); overload; |
 |
procedure SetValue(const APath: String; AValue: Integer); overload; |
 |
procedure SetDeleteValue(const APath: String; AValue, DefValue: Integer); overload; |
 |
procedure SetValue(const APath: String; AValue: Boolean); overload; |
 |
procedure SetDeleteValue(const APath: String; AValue, DefValue: Boolean); overload; |
 |
procedure DeletePath(const APath: string); |
 |
procedure DeleteValue(const APath: string); |
 |
procedure LoadFromStream(const Stream: TStream); |
 |
procedure SaveToStream(const Stream: TStream); |
Properties
 |
property Modified: Boolean read FModified; |
 |
property URL: String read FURL write SetURL; |
 |
property StartEmpty: Boolean read FStartEmpty write SetStartEmpty; |
 |
property UseEscaping: Boolean read FUseEscaping write FUseEscaping
default True; |
 |
property RootName: DOMString read FRootName write SetRootName; |
Description
Fields
 |
Doc: TXMLDocument; |
|
 |
FModified: Boolean; |
|
Methods
 |
procedure Loaded; override; |
|
 |
function FindNode(const APath: String; PathHasValue: boolean): TDomNode; |
|
 |
function Escape(const s: String): String; |
|
 |
constructor Create(AOwner: TComponent); override; |
|
 |
destructor Destroy; override; |
|
 |
procedure Clear; |
|
 |
procedure Flush; |
|
 |
function GetValue(const APath, ADefault: String): String; overload; |
Writes the XML file
|
 |
function GetValue(const APath: String; ADefault: Integer): Integer; overload; |
|
 |
function GetValue(const APath: String; ADefault: Boolean): Boolean; overload; |
|
 |
procedure SetValue(const APath, AValue: String); overload; |
|
 |
procedure SetDeleteValue(const APath, AValue, DefValue: String); overload; |
|
 |
procedure SetValue(const APath: String; AValue: Integer); overload; |
|
 |
procedure SetDeleteValue(const APath: String; AValue, DefValue: Integer); overload; |
|
 |
procedure SetValue(const APath: String; AValue: Boolean); overload; |
|
 |
procedure SetDeleteValue(const APath: String; AValue, DefValue: Boolean); overload; |
|
 |
procedure DeletePath(const APath: string); |
|
 |
procedure DeleteValue(const APath: string); |
|
 |
procedure LoadFromStream(const Stream: TStream); |
Load and save config state to a TStream instance. Loading changes URL to empty, and does Flush before, so it works similarly to setting an URL. Saving does not change any state (it also ignores the Modified value), it unconditionally dumps the contents to stream.
|
 |
procedure SaveToStream(const Stream: TStream); |
|
Properties
 |
property URL: String read FURL write SetURL; |
|
 |
property StartEmpty: Boolean read FStartEmpty write SetStartEmpty; |
|
 |
property UseEscaping: Boolean read FUseEscaping write FUseEscaping
default True; |
|
 |
property RootName: DOMString read FRootName write SetRootName; |
|
Generated by PasDoc 0.13.0 on 2014-04-30 22:06:46
|