-//---------------------------------------------------------------------------
-int CONFIGFILE::FindParameter(const string ¶meter, string * value) const
-{
-it = param_val.find(parameter);
-if (it == param_val.end())
- return -1;
-
-*value = param_val[parameter];
-return 0;
-}
-//---------------------------------------------------------------------------
-int CONFIGFILE::Flush()
-{
-fstream f(fileName.c_str(), ios::out);
-if (!f.is_open())
- {
- error = EIO;
- return EIO;
- }
-
-it = param_val.begin();
-while (it != param_val.end())
- {
- f << it->first << "=" << it->second << endl;
- it++;
- }
-
-f.close();
-
-return 0;
-}
-//---------------------------------------------------------------------------