00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 class TCfgMgr;
00028 #ifndef CFGMGR_H
00029 #define CFGMGR_H
00030 #include <string>
00031 #include "SmartPtr.h"
00032 #include "DUID.h"
00033 #include "IfaceMgr.h"
00034
00035 using namespace std;
00036 class TCfgMgr
00037 {
00038 public:
00039 TCfgMgr(SmartPtr<TIfaceMgr> IfaceMgr);
00040 virtual TCfgMgr::~TCfgMgr();
00041
00042 bool compareConfigs(const string cfgFile, const string oldCfgFile);
00043 void copyFile(const string cfgFile, const string oldCfgFile);
00044 SmartPtr<TDUID> getDUID();
00045
00046 protected:
00047 SmartPtr<TDUID> DUID;
00048 bool setDUID(const string duidFile);
00049 bool loadDUID(const string filename);
00050 bool generateDUID(const string duidFile,char * mac,int macLen, int macType);
00051 string WorkDir;
00052 string LogName;
00053 int LogLevel;
00054 bool IsDone;
00055 SmartPtr<TIfaceMgr> IfaceMgr;
00056 private:
00057
00058 };
00059 #endif
00060