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.6 2005/02/01 00:57:36 thomson Exp $
00010  *
00011  * $Log: CfgMgr.h,v $
00012  * Revision 1.6  2005/02/01 00:57:36  thomson
00013  * no message
00014  *
00015  * Revision 1.5  2004/07/05 00:53:03  thomson
00016  * Various changes.
00017  *
00018  * Revision 1.4  2004/07/01 18:12:12  thomson
00019  * DUID creation failure results in client/server shutdown (bugs #44, #45)
00020  *
00021  * Revision 1.3  2004/05/23 21:35:31  thomson
00022  * *** empty log message ***
00023  *
00024  * Revision 1.2  2004/05/23 19:12:34  thomson
00025  * *** empty log message ***
00026  *
00027  *                                                                           
00028  */
00029 
00030 class TCfgMgr;
00031 #ifndef CFGMGR_H
00032 #define CFGMGR_H
00033 #include <string>
00034 #include "SmartPtr.h"
00035 #include "DUID.h"
00036 #include "IfaceMgr.h"
00037 
00038 using namespace std;
00039 class TCfgMgr
00040 {
00041  public:
00042     TCfgMgr(SmartPtr<TIfaceMgr> IfaceMgr);
00043     virtual TCfgMgr::~TCfgMgr();
00044 
00045     bool compareConfigs(const string cfgFile, const string oldCfgFile);
00046     void copyFile(const string cfgFile, const string oldCfgFile);
00047     SmartPtr<TDUID> getDUID();
00048     void setWorkdir(std::string workdir);
00049     int getLogLevel();
00050     string getWorkDir();
00051     string getLogName();
00052     
00053  protected:
00054     SmartPtr<TDUID> DUID;
00055     bool setDUID(const string duidFile);
00056     bool loadDUID(const string filename);
00057     bool generateDUID(const string duidFile,char * mac,int macLen, int macType);
00058     string Workdir;
00059     string LogName;
00060     int LogLevel;
00061     bool IsDone;
00062     SmartPtr<TIfaceMgr> IfaceMgr;
00063  private:
00064     
00065 };
00066 #endif
00067 

Generated on Wed Mar 16 00:10:24 2005 for Dibbler - a portable DHCPv6 by  doxygen 1.3.9.1