Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CfgMgr.h

Go to the documentation of this file.
00001 /*                                                                           
00002  * Dibbler - a portable DHCPv6                                               
00003  *                                                                           
00004  * authors: Tomasz Mrugalski <thomson@klub.com.pl>                           
00005  *          Marek Senderski <msend@o2.pl>                                    
00006  *                                                                           
00007  * released under GNU GPL v2 or later licence                                
00008  *                                                                           
00009  * $Id: CfgMgr.h,v 1.5 2004/07/05 00:53:03 thomson Exp $
00010  *
00011  * $Log: CfgMgr.h,v $
00012  * Revision 1.5  2004/07/05 00:53:03  thomson
00013  * Various changes.
00014  *
00015  * Revision 1.4  2004/07/01 18:12:12  thomson
00016  * DUID creation failure results in client/server shutdown (bugs #44, #45)
00017  *
00018  * Revision 1.3  2004/05/23 21:35:31  thomson
00019  * *** empty log message ***
00020  *
00021  * Revision 1.2  2004/05/23 19:12:34  thomson
00022  * *** empty log message ***
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 

Generated on Mon Dec 27 21:55:21 2004 for Dibbler - a portable DHCPv6 by  doxygen 1.3.9.1