#include <swconfig.h>
Public Methods | |
SWConfig (const char *ifilename) | |
Constructor of SWConfig. More... | |
virtual | ~SWConfig () |
virtual void | Load () |
Load from disk Load the contzent from disk. | |
virtual void | Save () |
Save to disk Save the content of this config object to disk. | |
virtual SWConfig & | operator+= (SWConfig &addFrom) |
Merges the values of addFrom. More... | |
virtual ConfigEntMap & | operator[] (const char *section) |
Get a section This is an easy way to get and store config values. More... | |
Public Attributes | |
string | filename |
The filename used by this SWConfig object. | |
SectionMap | Sections |
Map of available sections The map of available sections. | |
Private Methods | |
char | getline (FILE *fp, string &line) |
Definition at line 56 of file swconfig.h.
|
Constructor of SWConfig.
|
|
Merges the values of addFrom.
|
|
Get a section This is an easy way to get and store config values.
The following will work:
SWConfig config("/home/user/.setttings"); config["Colors"]["Background"] = "red"; |