Confing
1.0
Configuration properties manipulation in INI Files and the Windows Registry
|
Public Member Functions | |
Ini (string file) | |
Ini (string file, bool autosave) | |
Ini (string file, bool autosave, bool ignoreCase) | |
Ini (string file, bool autosave, bool ignoreCase, char separator) | |
Ini (string file, bool autosave, bool ignoreCase, char separator, char comments) | |
void | Save () |
Properties | |
string | this[string key] [get, set] |
string | this[string section, string key] [get, set] |
Additional Inherited Members | |
![]() | |
static string | EncodeB64 (string val) |
static string | DecodeB64 (string val) |
static string | AddQuotes (string val) |
static string | RemoveQuotes (string val) |
Multipetros.Config.Ini.Ini | ( | string | file | ) |
The simplest constructor, with filename only to configure. Autosave properties setted as False, ingore case as True, the Separator as "=" & Comments sign as "#".
file | A valid file path, with read and write priviliges |
Multipetros.Config.Ini.Ini | ( | string | file, |
bool | autosave | ||
) |
Constructor with filename and autosave mode to configure. Ingore case setted as True, the Separator as "=" & Comments sign as "#".
file | A valid file path, with read and write priviliges |
autosave | True, to save each time a Property added or setted. False, to save manualy by calling the Save() method |
Multipetros.Config.Ini.Ini | ( | string | file, |
bool | autosave, | ||
bool | ignoreCase | ||
) |
Constructor with filename, autosave mode & ignore case to configure. Separator setted as "=" & Comments sign as "#".
file | A valid file path, with read and write priviliges |
autosave | True, to save each time a Property added or setted. False, to save manualy by calling the Save() method |
ignoreCase | True to ignore case, False to make properties keys case sensitive |
Multipetros.Config.Ini.Ini | ( | string | file, |
bool | autosave, | ||
bool | ignoreCase, | ||
char | separator | ||
) |
Constructor with filename, autosave mode, ignore case & the separator sign to configure. The Comments sign setted as "#".
file | A valid file path, with read and write priviliges |
autosave | True, to save each time a Property added or setted. False, to save manualy by calling the Save() method |
ignoreCase | True to ignore case, False to make properties keys case sensitive |
separator | Separator character for keys and values |
Multipetros.Config.Ini.Ini | ( | string | file, |
bool | autosave, | ||
bool | ignoreCase, | ||
char | separator, | ||
char | comments | ||
) |
Constructor with filename, autosave mode, ignore case, the separator & comments sign to configure.
file | A valid file path, with read and write priviliges |
autosave | True, to save each time a Property added or setted. False, to save manualy by calling the Save() method |
ignoreCase | True to ignore case, False to make properties keys case sensitive |
separator | Separator character for keys and values |
comments | Comments definition character |
void Multipetros.Config.Ini.Save | ( | ) |
Store properties to file
|
getset |
Access properties like Dictionary, negotiating with the default (noname section) with the Property key name only eg: iniObj["keyName"]
When getting value of the specified property, or empty string if property not found
When setting a value for a non-existed property, the property will be automatically added.
If the setting value is null the property will be deleted.
|
getset |
Access properties like Dictionary, negotiating with the Section & the Property key name eg: iniObj["sectionName", "keyName"]
When getting value of the specified section-property pair, or empty string if property not found
When setting a value for a non-existed section-property pair, the section-property pair will be automatically added.
If the setting value is null the property will be deleted.