bdm::UIFile Class Reference

This class serves to load and/or save user-infos into/from configuration files stored on a hard-disk. More...


Detailed Description

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:

        CAudi audi;
        UIFile file;
        UI::save( audi, file, "TT");
        file.save("cars.cfg");

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");

User Infos and their use

#include <user_info.h>

List of all members.

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.

The documentation for this class was generated from the following files:

Generated on Sun Sep 27 00:49:05 2009 for mixpp by  doxygen 1.6.1