src/loader.h

Go to the documentation of this file.
00001 // Copyright (c) 2003 - 2004 Anselm R. Garbe <anselmg at t-online.de>
00002 // See ../LICENSE.txt for license details.
00003 //
00004 // $Id: loader.h 7 2007-05-24 11:03:53Z eg1981 $
00005 
00006 #ifndef __LOADER_H
00007 #define __LOADER_H
00008 
00009 #include "ncwm.h"
00010 
00011 #include <list>
00012 #include <string>
00013 #include <map>
00014 
00015 typedef map<string, string, less<string> > MSettings;
00016 
00020 class Loader
00021 {
00022 
00023 public:
00024 
00026     Loader();
00027 
00028     ~Loader();
00029 
00042     static bool load(MSettings *settings, string path,
00043                      bool suppressWarning = false,
00044                      bool caseSensitive = false);
00045 
00047     static bool saveSettings(MSettings *settings, string path);
00048 
00050     static bool saveFile(string path, string content);
00051 
00053     static void print(MSettings *settings);
00054 
00055 };
00056 
00057 #endif // __LOADER_H

Generated on Thu May 24 15:19:32 2007 for ncwm by  doxygen 1.5.1