Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ClntCfgPD.h
Go to the documentation of this file.
1 /*
2  * Dibbler - a portable DHCPv6
3  *
4  * author: Krzysztof Wnuk <keczi@poczta.onet.pl>
5  *
6  * released under GNU GPL v2 only licence
7  *
8  */
9 
10 #ifndef CLNTCFGPD_H
11 #define CLNTCFGPD_H
12 
13 #include "ClntCfgPrefix.h"
14 #include "ClntParsGlobalOpt.h"
15 #include "DHCPConst.h"
16 #include <iostream>
17 #include <iomanip>
18 
20 {
21  friend std::ostream& operator<<(std::ostream& out, TClntCfgPD& group);
22  public:
23  long getIAID();
24  void setIAID(long iaid);
25 
26  unsigned long getT1();
27  unsigned long getT2();
28  char getPrefixLength();
29 
31 
32  void firstPrefix();
34  long countPrefixes();
36 
37  TClntCfgPD();
38  TClntCfgPD(SPtr<TClntCfgPD> right, long iAID);
39 
40  void setState(enum EState state);
41  enum EState getState();
42 
43  private:
44  TContainer< SPtr<TClntCfgPrefix> > ClntCfgPrefixLst_;
45  unsigned long IAID_;
46  unsigned long T1_;
47  unsigned long T2_;
49 
51 };
52 
53 #endif
54