TIniCollection class
Collection which can write itself to an .ini file.
Declaration
TIniCollection = class(TCollection)Inheritance
- TIniCollection
- TCollection
- TPersistent
- TObject
Descends from it: TNamedIniCollection
Description
TIniCollection is a
collection descendent which has the
capability to write itself to an
.ini file. It introduces some
load and save mechanisms, which can be used to write all items in the
collection to disk. The items should be descendents of the type
TIniCollectionItem.
All methods work using a TCustomInifile class, making it possible
to save to alternate file formats, or even databases.
An instance of TIniCollection should never be used directly.
Instead, a descendent should be used, which sets the FPrefix and
FSectionPrefix protected variables.
See also
Properties
Prefix | public | Prefix used in global section. |
SectionPrefix | public | Prefix string for section names. |
FileName | public | Filename of the collection. |
GlobalSection | public | Name of the global section. |
Methods
Load | public | Loads the collection from the default filename. |
Save | public | Save the collection to the default filename. |
SaveToIni | public | Save the collection to a TCustomIniFile descendent. |
SaveToFile | public | Save collection to a file in .ini file format. |
LoadFromIni | public | Load collection from a file in .ini file format. |
LoadFromFile | public | Load collection from file. |
Fields
FPrefix | protected | |
FSectionPrefix | protected |
Inherited
From TCollection (31)
Add Assign BeginUpdate Changed Clear Count Create Delete Destroy EndUpdate Exchange FindItemID GetAttr GetAttrCount GetEnumerator GetItem GetItemAttr GetNamePath Insert ItemClass Items Move Notify Owner PropName SetItem SetItemName SetPropName Sort Update UpdateCount
From TPersistent (6)
AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers GetOwner
From TObject (40)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
