1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565
|
<?xml version="1.0" encoding="UTF-8"?>
<fpdoc-descriptions>
<package name="lcl">
<!--
====================================================================
XMLPropStorage
====================================================================
-->
<module name="XMLPropStorage">
<short>Contains a component that stores Form Session Properties in XML format.</short>
<descr>
<p>In this unit you can find an implementation of a name/value pair storage container in XML format.</p>
<p>This container will get the Form's Session Properties that you setup in <link id="#LCL.Forms.TForm">TForm.SessionProperties</link> and read/write them on the file you specify on <link id="#LCL.XmlPropStorage.TXMLPropStorage.FileName">TXMLPropStorage.FileName</link>.</p>
</descr>
<!-- unresolved type references -->
<element name="Classes"/>
<element name="SysUtils"/>
<element name="XMLConf"/>
<element name="DOM"/>
<element name="XMLRead"/>
<element name="XMLWrite"/>
<element name="LCLProc"/>
<element name="Forms"/>
<element name="LazConfigStorage"/>
<element name="LazUTF8"/>
<!-- object Visibility: default -->
<element name="TPropStorageXMLConfig">
<short>Wrapper class around <url href="http://wiki.freepascal.org/xmlconf">XMLConf</url>.<url href="http://wiki.freepascal.org/TXMLConfig">TXMLConfig</url>.</short>
<descr />
<errors />
<seealso />
</element> <!-- object TPropStorageXMLConfig -->
<!-- procedure Visibility: public -->
<element name="TPropStorageXMLConfig.DeleteSubNodes">
<short>Deletes sub nodes on a path.</short>
<descr />
<errors />
<seealso />
</element> <!-- procedure TPropStorageXMLConfig.DeleteSubNodes -->
<!-- argument Visibility: default -->
<element name="TPropStorageXMLConfig.DeleteSubNodes.ARootNode">
<short>The path of the node to have it's sub nodes deleted.</short>
</element> <!-- argument TPropStorageXMLConfig.DeleteSubNodes.ARootNode -->
<!-- procedure Visibility: public -->
<element name="TPropStorageXMLConfig.LoadFromStream">
<short>Loads XML content from a stream.</short>
<descr />
<errors />
<seealso />
</element> <!-- procedure TPropStorageXMLConfig.LoadFromStream -->
<!-- argument Visibility: default -->
<element name="TPropStorageXMLConfig.LoadFromStream.s">
<short>The stream to load the XML content from.</short>
</element> <!-- argument TPropStorageXMLConfig.LoadFromStream.s -->
<!-- procedure Visibility: public -->
<element name="TPropStorageXMLConfig.SaveToStream">
<short>Saves XML content to a stream.</short>
<descr />
<errors />
<seealso />
</element> <!-- procedure TPropStorageXMLConfig.SaveToStream -->
<!-- argument Visibility: default -->
<element name="TPropStorageXMLConfig.SaveToStream.s">
<short>The stream to save the XML content to.</short>
</element> <!-- argument TPropStorageXMLConfig.SaveToStream.s -->
<!-- property Visibility: public -->
<element name="TPropStorageXMLConfig.XMLDoc">
<short>Contains the XML document.</short>
<descr />
<errors />
<seealso />
</element> <!-- property TPropStorageXMLConfig.XMLDoc -->
<!-- object Visibility: default -->
<element name="TCustomXMLPropStorage">
<short>Implements the base class for the XML Form's Session Properties Storage.</short>
<descr />
<errors />
<seealso />
</element> <!-- object TCustomXMLPropStorage -->
<!-- variable Visibility: private -->
<element name="TCustomXMLPropStorage.FCount">
<short />
<descr />
<seealso />
</element> <!-- variable TCustomXMLPropStorage.FCount -->
<!-- variable Visibility: private -->
<element name="TCustomXMLPropStorage.FFileName">
<short />
<descr />
<seealso />
</element> <!-- variable TCustomXMLPropStorage.FFileName -->
<!-- variable Visibility: private -->
<element name="TCustomXMLPropStorage.FXML">
<short />
<descr />
<seealso />
</element> <!-- variable TCustomXMLPropStorage.FXML -->
<!-- variable Visibility: private -->
<element name="TCustomXMLPropStorage.FRootNode">
<short />
<descr />
<seealso />
</element> <!-- variable TCustomXMLPropStorage.FRootNode -->
<!-- variable Visibility: private -->
<element name="TCustomXMLPropStorage.FRootNodePath">
<short />
<descr />
<seealso />
</element> <!-- variable TCustomXMLPropStorage.FRootNodePath -->
<!-- function Visibility: protected -->
<element name="TCustomXMLPropStorage.GetXMLFileName">
<short>Getter for the property <link id="#LCL.XmlPropStorage.TCustomXMLPropStorage.FileName">TCustomXMLPropStorage.FileName</link>.</short>
<descr />
<errors />
<seealso />
</element> <!-- function TCustomXMLPropStorage.GetXMLFileName -->
<!-- function result Visibility: default -->
<element name="TCustomXMLPropStorage.GetXMLFileName.Result">
<short>The current value of the property <link id="#LCL.XmlPropStorage.TCustomXMLPropStorage.FileName">TCustomXMLPropStorage.FileName</link>.</short>
</element> <!-- function result TCustomXMLPropStorage.GetXMLFileName.Result -->
<!-- function Visibility: protected -->
<element name="TCustomXMLPropStorage.RootSection">
<short>Returns the name of the RootSection.</short>
<descr />
<errors />
<seealso />
</element> <!-- function TCustomXMLPropStorage.RootSection -->
<!-- function result Visibility: default -->
<element name="TCustomXMLPropStorage.RootSection.Result">
<short>The current value of RootSection.</short>
</element> <!-- function result TCustomXMLPropStorage.RootSection.Result -->
<!-- function Visibility: protected -->
<element name="TCustomXMLPropStorage.FixPath">
<short>Turns '.' notation into '/' notation for the xpath-like implementation in <url href="http://wiki.freepascal.org/xmlconf">XMLConf</url>.</short>
<descr />
<errors />
<seealso />
</element> <!-- function TCustomXMLPropStorage.FixPath -->
<!-- function result Visibility: default -->
<element name="TCustomXMLPropStorage.FixPath.Result">
<short>The fixed path is returned with '.' replaced by '/'.</short>
</element> <!-- function result TCustomXMLPropStorage.FixPath.Result -->
<!-- argument Visibility: default -->
<element name="TCustomXMLPropStorage.FixPath.APath">
<short>The path to be fixed.</short>
</element> <!-- argument TCustomXMLPropStorage.FixPath.APath -->
<!-- property Visibility: protected -->
<element name="TCustomXMLPropStorage.XMLConfig">
<short>Property to access the <link id="#LCL.XmlPropStorage.TPropStorageXMLConfig">TPropStorageXMLConfig</link>.</short>
<descr />
<seealso />
</element> <!-- property TCustomXMLPropStorage.XMLConfig -->
<!-- procedure Visibility: public -->
<element name="TCustomXMLPropStorage.StorageNeeded">
<short>Ask the underlying storage object for an entry.</short>
<descr />
<errors />
<seealso />
</element> <!-- procedure TCustomXMLPropStorage.StorageNeeded -->
<!-- argument Visibility: default -->
<element name="TCustomXMLPropStorage.StorageNeeded.ReadOnly">
<short>If the item is read-only.</short>
</element> <!-- argument TCustomXMLPropStorage.StorageNeeded.ReadOnly -->
<!-- procedure Visibility: public -->
<element name="TCustomXMLPropStorage.FreeStorage">
<short>Frees an entry from the underlying storage object.</short>
<descr />
<errors />
<seealso />
</element> <!-- procedure TCustomXMLPropStorage.FreeStorage -->
<!-- function Visibility: public -->
<element name="TCustomXMLPropStorage.DoReadString">
<short>Implements the actual reading of a value from the underlying storage container.</short>
<descr />
<errors />
<seealso />
</element> <!-- function TCustomXMLPropStorage.DoReadString -->
<!-- function result Visibility: default -->
<element name="TCustomXMLPropStorage.DoReadString.Result">
<short>The value of the section/ident requested.</short>
</element> <!-- function result TCustomXMLPropStorage.DoReadString.Result -->
<!-- argument Visibility: default -->
<element name="TCustomXMLPropStorage.DoReadString.Section">
<short>The section to be read.</short>
</element> <!-- argument TCustomXMLPropStorage.DoReadString.Section -->
<!-- argument Visibility: default -->
<element name="TCustomXMLPropStorage.DoReadString.Ident">
<short>The ident to be read.</short>
</element> <!-- argument TCustomXMLPropStorage.DoReadString.Ident -->
<!-- argument Visibility: default -->
<element name="TCustomXMLPropStorage.DoReadString.TheDefault">
<short>If has no value then return this as default.</short>
</element> <!-- argument TCustomXMLPropStorage.DoReadString.TheDefault -->
<!-- procedure Visibility: public -->
<element name="TCustomXMLPropStorage.DoWriteString">
<short>Implements the actual writing of a value from the underlying storage container.</short>
<descr />
<errors />
<seealso />
</element> <!-- procedure TCustomXMLPropStorage.DoWriteString -->
<!-- argument Visibility: default -->
<element name="TCustomXMLPropStorage.DoWriteString.Section">
<short>The section to be written.</short>
</element> <!-- argument TCustomXMLPropStorage.DoWriteString.Section -->
<!-- argument Visibility: default -->
<element name="TCustomXMLPropStorage.DoWriteString.Ident">
<short>The ident to be written.</short>
</element> <!-- argument TCustomXMLPropStorage.DoWriteString.Ident -->
<!-- argument Visibility: default -->
<element name="TCustomXMLPropStorage.DoWriteString.Value">
<short>The value to be written.</short>
</element> <!-- argument TCustomXMLPropStorage.DoWriteString.Value -->
<!-- procedure Visibility: public -->
<element name="TCustomXMLPropStorage.DoEraseSections">
<short>Erases a section from the underlying storage container.</short>
<descr />
<errors />
<seealso />
</element> <!-- procedure TCustomXMLPropStorage.DoEraseSections -->
<!-- argument Visibility: default -->
<element name="TCustomXMLPropStorage.DoEraseSections.ARootSection">
<short>The path to the section that will be erased.</short>
</element> <!-- argument TCustomXMLPropStorage.DoEraseSections.ARootSection -->
<!-- property Visibility: public -->
<element name="TCustomXMLPropStorage.FileName">
<short>Name of the file where the property data is saved in XML format.</short>
<descr />
<seealso />
</element> <!-- propert TCustomXMLPropStorage.FileName -->
<!-- property Visibility: public -->
<element name="TCustomXMLPropStorage.RootNodePath">
<short>Name of the root object path on your XML file.</short>
<descr />
<seealso />
</element> <!-- property TCustomXMLPropStorage.RootNodePath -->
<!-- object Visibility: default -->
<element name="TXMLPropStorage">
<short>Implements the final class for the XML Form Session Properties storage.</short>
<descr />
<errors />
<seealso>
<link id="#LCL.Forms.TForm">TForm.SessionProperties</link>
<link id="#LCL.INIPropStorage.TINIPropStorage">TINIPropStorage</link>
<link id="#LCL.JSONPropStorage.TJSONPropStorage">TJSONPropStorage</link>
</seealso>
</element> <!-- object TXMLPropStorage -->
<!-- property Visibility: published -->
<element name="TXMLPropStorage.StoredValues" link="#LCL.PropertyStorage.TCustomPropertyStorage.StoredValues">
<short />
<descr />
<seealso />
</element> <!-- property TXMLPropStorage.StoredValues -->
<!-- property Visibility: published -->
<element name="TXMLPropStorage.FileName" link="#LCL.XmlPropStorage.TCustomXmlPropStorage.FileName">
<short />
<descr />
<seealso />
</element> <!-- property TXMLPropStorage.FileName -->
<!-- property Visibility: published -->
<element name="TXMLPropStorage.RootNodePath" link="#LCL.XmlPropStorage.TCustomXmlPropStorage.RootNodePath">
<short />
<descr />
<seealso />
</element> <!-- property TXMLPropStorage.RootNodePath -->
<!-- property Visibility: published -->
<element name="TXMLPropStorage.Active" link="#LCL.PropertyStorage.TCustomPropertyStorage.Active">
<short />
<descr />
<seealso />
</element> <!-- property TXMLPropStorage.Active -->
<!-- property Visibility: published -->
<element name="TXMLPropStorage.OnSavingProperties" link="#LCL.PropertyStorage.TCustomPropertyStorage.OnSavingProperties">
<short />
<descr />
<errors />
<seealso />
</element> <!-- property TXMLPropStorage.OnSavingProperties -->
<!-- property Visibility: published -->
<element name="TXMLPropStorage.OnSaveProperties" link="#LCL.PropertyStorage.TCustomPropertyStorage.OnSaveProperties">
<short />
<descr />
<errors />
<seealso />
</element> <!-- property TXMLPropStorage.OnSaveProperties -->
<!-- property Visibility: published -->
<element name="TXMLPropStorage.OnRestoringProperties" link="#LCL.PropertyStorage.TCustomPropertyStorage.OnRestoringProperties">
<short />
<descr />
<errors />
<seealso />
</element> <!-- property TXMLPropStorage.OnRestoringProperties -->
<!-- property Visibility: published -->
<element name="TXMLPropStorage.OnRestoreProperties" link="#LCL.PropertyStorage.TCustomPropertyStorage.OnRestoreProperties">
<short />
<descr />
<errors />
<seealso />
</element> <!-- property TXMLPropStorage.OnRestoreProperties -->
<element name="TXMLConfigStorage">
<short>
Implements a configation storage mechanism using XML-tagged content.
</short>
<descr>
<p>
<var>TXMLConfigStorage</var> is a <var>TConfigStorage</var> descendant which implements an XML-storage mechanism for configuration or other values.
</p>
<p>
TXMLConfigStorage allows names (paths) and values to be accessed using an XPATH-like syntax.
</p>
<p>
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.
</p>
<p>
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:
</p>
<ul>
<li>DeleteFullPathValue</li>
<li>GetFullPathValue</li>
<li>SetDeleteFullPathValue</li>
<li>SetFullPathValue</li>
</ul>
</descr>
<errors />
<seealso>
<link id="#lazutils.lazconfigstorage.TConfigStorage"/>
</seealso>
</element>
<!-- private -->
<element name="TXMLConfigStorage.FFilename"/>
<element name="TXMLConfigStorage.FFreeXMLConfig"/>
<element name="TXMLConfigStorage.FXMLConfig"/>
<!-- protected -->
<element name="TXMLConfigStorage.GetFullPathValue">
<short>Gets the String value stored at the specified path in the XML storage.</short>
<descr>
<p>
Calls the GetValue method for the internal TXMLConfig instance.
</p>
</descr>
<seealso/>
</element>
<element name="TXMLConfigStorage.GetFullPathValue.Result">
<short>
Value retrieved from the internal storage, or ADefault when the path is not found.
</short>
</element>
<element name="TXMLConfigStorage.GetFullPathValue.APath">
<short>Path to the XML node with the requested value.</short>
</element>
<element name="TXMLConfigStorage.GetFullPathValue.ADefault">
<short>Default value returned if APath is not found in the internal storage.</short>
</element>
<element name="TXMLConfigStorage.SetFullPathValue">
<short>Sets the value for the specified path.</short>
<descr/>
<seealso/>
</element>
<element name="TXMLConfigStorage.SetFullPathValue.APath">
<short>Path to the XML node where the value is stored.</short>
</element>
<element name="TXMLConfigStorage.SetFullPathValue.AValue">
<short>Value stored in the XML node for the specified path.</short>
</element>
<element name="TXMLConfigStorage.SetDeleteFullPathValue">
<short>Sets the value for or deletes the XML node at the specified path.</short>
<descr/>
<seealso/>
</element>
<element name="TXMLConfigStorage.SetDeleteFullPathValue.APath">
<short>Path to the XML node with the value updated or removed in the method.</short>
</element>
<element name="TXMLConfigStorage.SetDeleteFullPathValue.AValue">
<short>
Value for the specified path. An empty value causes the path to be removed.
</short>
</element>
<element name="TXMLConfigStorage.DeleteFullPath">
<short>Deletes the XML node and its content and the specified path.</short>
<descr/>
<seealso/>
</element>
<element name="TXMLConfigStorage.DeleteFullPath.APath">
<short>Path to the XML node removed in the method.</short>
</element>
<element name="TXMLConfigStorage.DeleteFullPathValue">
<short>Deletes the value stored in the XML node at the specified path.</short>
<descr/>
<seealso/>
</element>
<element name="TXMLConfigStorage.DeleteFullPathValue.APath">
<short>Path to the XML node with the value removed in the method.</short>
</element>
<!-- public -->
<element name="TXMLConfigStorage.Clear">
<short>Removes all XML nodes stored in the XMLConfig storage.</short>
<descr>
<p>
Calls the Clear method in XMLConfig.
</p>
</descr>
<seealso>
<link id="TXMLConfigStorage.XMLConfig"/>
</seealso>
</element>
<element name="TXMLConfigStorage.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the overridden, overloaded constructor for the class instance. The overloaded variants allow the XML content to read from various sources like a file name, a TXMLConfig instance, a scoped TXMLConfig instance, or a TStream instance.
</p>
<p>
Use WriteToDisk or SaveToStream to speciy where the XML content is stored .
</p>
</descr>
<seealso/>
</element>
<element name="TXMLConfigStorage.Create.Filename">
<short>Qualified file name where the XML content is stored.</short>
</element>
<element name="TXMLConfigStorage.Create.LoadFromDisk">
<short>
True to load existing XML content from the file, or False to create an empty storage.
</short>
</element>
<element name="TXMLConfigStorage.Create.TheXMLConfig">
<short>TXMLConfig instance where the XML paths and values are stored.</short>
</element>
<element name="TXMLConfigStorage.Create.StartPath">
<short>Intial path for values read and written in the class instance.</short>
</element>
<element name="TXMLConfigStorage.Create.s">
<short>Stream with the XML content loaded in the XMLConfig storage.</short>
</element>
<element name="TXMLConfigStorage.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor for the class instance. It uses the value in FreeXMLConfig to determine whether the TXMLConfig instance in XMLConfig is freed in the method. When set to True, XMLConfig is freed and set to Nil.
</p>
<p>
Destroy calls the inherited destructor prior to exiting from the method.
</p>
</descr>
<seealso>
<link id="TXMLConfigStorage.Create"/>
<link id="TXMLConfigStorage.FreeXMLConfig"/>
<link id="TXMLConfigStorage.XMLConfig"/>
</seealso>
</element>
<element name="TXMLConfigStorage.XMLConfig">
<short>TXMLConfig with the values accessed and maintained in the class instance.</short>
<descr>
Read-only TXMLConfig property.
</descr>
<seealso/>
</element>
<element name="TXMLConfigStorage.FreeXMLConfig">
<short>
Indicates whether the TXMLConfig instance is freed when the class is destroyed.
</short>
<descr>
<p>
<var>FreeXMLConfig</var> is a <var>Boolean</var> property which indicates if the TXMLConfig instance in XMLConfig is freed when the class instance is destroyed.
</p>
</descr>
<seealso/>
</element>
<element name="TXMLConfigStorage.WriteToDisk">
<short>Stores the values in XMLConfig to the specified file name.</short>
<descr/>
<seealso/>
</element>
<element name="TXMLConfigStorage.GetFilename">
<short>Gets the file name passed as an argument to the constructor.</short>
<descr/>
<seealso/>
</element>
<element name="TXMLConfigStorage.GetFilename.Result">
<short>File passed as an argument to the overloaded constructor.</short>
</element>
<element name="TXMLConfigStorage.SaveToStream">
<short>Saves the content in XMLConfig to the specified TStream instance.</short>
<descr/>
<seealso/>
</element>
<element name="TXMLConfigStorage.SaveToStream.s">
<short>TStream instance where the XML content is stored.</short>
</element>
<!-- procedure Visibility: default -->
<element name="Register">
<short>Registers <link id="#LCL.XmlPropStorage.TXMLPropStorage">TXMLPropStorage</link> on the 'Misc' tab of the component palette.</short>
<descr />
<errors />
<seealso />
</element> <!-- procedure Register -->
</module> <!-- moduleXMLPropStorage -->
</package> <!-- package lcl -->
</fpdoc-descriptions>
|