# bdm::UIFile Class Reference

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

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

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

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

- user_info.h
- user_info.cpp