Confing  1.0
Configuration properties manipulation in INI Files and the Windows Registry
Public Member Functions | Properties | List of all members
Multipetros.Config.Ini Class Reference
Inheritance diagram for Multipetros.Config.Ini:
Multipetros.Config.ConfigBase

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 Public Member Functions inherited from Multipetros.Config.ConfigBase
static string EncodeB64 (string val)
 
static string DecodeB64 (string val)
 
static string AddQuotes (string val)
 
static string RemoveQuotes (string val)
 

Detailed Description

Constructor & Destructor Documentation

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 "#".

Parameters
fileA 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 "#".

Parameters
fileA valid file path, with read and write priviliges
autosaveTrue, 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 "#".

Parameters
fileA valid file path, with read and write priviliges
autosaveTrue, to save each time a Property added or setted. False, to save manualy by calling the Save() method
ignoreCaseTrue 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 "#".

Parameters
fileA valid file path, with read and write priviliges
autosaveTrue, to save each time a Property added or setted. False, to save manualy by calling the Save() method
ignoreCaseTrue to ignore case, False to make properties keys case sensitive
separatorSeparator 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.

Parameters
fileA valid file path, with read and write priviliges
autosaveTrue, to save each time a Property added or setted. False, to save manualy by calling the Save() method
ignoreCaseTrue to ignore case, False to make properties keys case sensitive
separatorSeparator character for keys and values
commentsComments definition character

Member Function Documentation

void Multipetros.Config.Ini.Save ( )

Store properties to file

Property Documentation

string Multipetros.Config.Ini.this[string key]
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.

string Multipetros.Config.Ini.this[string section, string key]
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.