Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RelCfgIface.h
Go to the documentation of this file.
1 /*
2  * Dibbler - a portable DHCPv6
3  *
4  * authors: Tomasz Mrugalski <thomson@klub.com.pl>
5  * Marek Senderski <msend@o2.pl>
6  *
7  * released under GNU GPL v2 only licence
8  *
9  */
10 
11 class TRelCfgIface;
12 
13 #ifndef RELCFGIFACE_H
14 #define RELCFGIFACE_H
15 #include "DHCPConst.h"
16 #include "RelParsGlobalOpt.h"
17 #include <iostream>
18 #include <string>
19 
21 {
22  friend std::ostream& operator<<(std::ostream& out,TRelCfgIface& iface);
23 public:
24  TRelCfgIface(const std::string& ifaceName);
25  TRelCfgIface(int ifaceNr);
26  virtual ~TRelCfgIface();
27 
28  void setName(std::string ifaceName);
29  void setID(int ifaceID);
30  int getID();
31  std::string getName();
32  std::string getFullName();
33 
36  bool getServerMulticast();
37  bool getClientMulticast();
38 
40 
41  unsigned char getPreference();
42  int getInterfaceID();
43 
44 private:
45  std::string Name_;
46  int ID_;
47  int InterfaceID_; // value of interface-id option (optional)
48 
53 };
54 
55 #endif /* RELCFGIFACE_H */
56