00001
00002
00003
00004
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