00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 class TRelCfgIface;
00019
00020 #ifndef RELCFGIFACE_H
00021 #define RELCFGIFACE_H
00022 #include "DHCPConst.h"
00023 #include "RelParsGlobalOpt.h"
00024 #include <iostream>
00025 #include <string>
00026 using namespace std;
00027
00028 class TRelCfgIface
00029 {
00030 friend ostream& operator<<(ostream& out,TRelCfgIface& iface);
00031 public:
00032 TRelCfgIface(string ifaceName);
00033 TRelCfgIface(int ifaceNr);
00034 virtual ~TRelCfgIface();
00035 void setDefaults();
00036
00037 void setName(string ifaceName);
00038 void setID(int ifaceID);
00039 int getID();
00040 string getName();
00041
00042 SmartPtr<TIPv6Addr> getServerUnicast();
00043 SmartPtr<TIPv6Addr> getClientUnicast();
00044 bool getServerMulticast();
00045 bool getClientMulticast();
00046
00047 void setOptions(SmartPtr<TRelParsGlobalOpt> opt);
00048
00049 unsigned char getPreference();
00050 int getInterfaceID();
00051
00052 private:
00053 string Name;
00054 int ID;
00055 int InterfaceID;
00056
00057 SmartPtr<TIPv6Addr> ClientUnicast;
00058 SmartPtr<TIPv6Addr> ServerUnicast;
00059 bool ClientMulticast;
00060 bool ServerMulticast;
00061 };
00062
00063 #endif
00064