[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Ini file implementation using JSON storage format
Source position: jsonini.pp line 37
type TJSONIniFile = class(TCustomIniFile) |
||
public |
||
constructor Create(); |
|
Creates a new TJSONIniFile instance |
destructor Destroy; override; |
|
Destroys the TJSONIniFile instance |
class procedure ConvertIni(); |
|
Converts a traditional ini file to JSON format |
function ReadString(); override; |
|
Reads a string value from the JSON ini file |
function ReadInteger(); override; |
|
Reads an integer value from the JSON ini file |
function ReadInt64(); override; |
|
Reads a 64-bit integer value from the JSON ini file |
function ReadBool(); override; |
|
Reads a boolean value from the JSON ini file |
function ReadDate(); override; |
|
Reads a date value from the JSON ini file |
function ReadDateTime(); override; |
|
Reads a date-time value from the JSON ini file |
function ReadFloat(); override; |
|
Reads a floating-point value from the JSON ini file |
function ReadTime(); override; |
|
Reads a time value from the JSON ini file |
procedure WriteString(); override; |
|
Writes a string value to the JSON ini file |
procedure WriteDate(); override; |
|
Writes a date value to the JSON ini file |
procedure WriteDateTime(); override; |
|
Writes a date-time value to the JSON ini file |
procedure WriteFloat(); override; |
|
Writes a floating-point value to the JSON ini file |
procedure WriteTime(); override; |
|
Writes a time value to the JSON ini file |
procedure WriteInteger(); override; |
|
Writes an integer value to the JSON ini file |
procedure WriteInt64(); override; |
|
Writes a 64-bit integer value to the JSON ini file |
procedure WriteBool(); override; |
|
Writes a boolean value to the JSON ini file |
procedure ReadSection(); override; |
|
Reads all key names from a section |
procedure ReadSections(); override; |
|
Reads all section names from the JSON ini file |
procedure ReadSectionValues(); override; overload; |
|
Reads all key-value pairs from a section |
procedure EraseSection(); override; |
|
Removes an entire section from the JSON ini file |
procedure DeleteKey(); override; |
|
Removes a key from a section |
procedure UpdateFile(); |
|
Writes the JSON data to file |
|
Read-only access to the internal stream |
|
property CacheUpdates: Boolean; [rw] |
|
Controls when changes are written to file |
end; |
|
Ini file implementation using JSON storage format |
|
| | | ||
|
Abstract ini file object. |
|
| | | ||
TJSONIniFile is a descendant of TCustomIniFile that stores configuration data in JSON format instead of traditional ini file format. The JSON structure uses objects for sections and key-value pairs within those objects for the actual configuration entries. This allows for more flexible data storage while maintaining full compatibility with the standard ini file interface.
|
Abstract ini file object. |
|
|
Inifile cached in memory. |