This class serves to load and/or save user-infos into/from configuration files stored on a hard-disk. More...
This class serves to load and/or save user-infos into/from configuration files stored on a hard-disk.
Firstly, save some user-infos into the new UIFile instance. Then, call the save method with a filename as its only argument:
In the other way round, when loading object from a configuration file, the appropriate code looks like this:
UIFile file("cars.cfg"); CAudi *audi = UI::build<CAudi>(file,"TT");
#include <user_info.h>
Public Member Functions | |
UIFile () | |
Create empty file instance prepared to store Settings. | |
UIFile (const string &file_name) | |
Creates instance and fills it from the configuration file file_name. | |
void | save (const string &file_name) |
Save all the stored Settings into the configuration file file_name. | |
operator Setting & () | |
This operator allows the ability of substituting Setting parameter by UIFile instance. |