Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FQDN.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 FQDN_H
11 #define FQDN_H
12 
13 #include <iostream>
14 #include <fstream>
15 #include <iomanip>
16 #include <string.h>
17 #include "DUID.h"
18 #include "IPv6Addr.h"
19 #include "SmartPtr.h"
20 
21 class TFQDN
22 {
23  friend std::ostream& operator<<(std::ostream& out,TFQDN& truc);
24 public:
25  TFQDN(); //Creates any addresses and names
26  TFQDN(SPtr<TDUID> duid, const std::string& name, bool used);
27  TFQDN(SPtr<TIPv6Addr> addr, const std::string& name, bool used);
28  TFQDN(const std::string& name, bool used);
31  std::string getName();
32  bool isUsed();
33  void setUsed(bool used);
34 
35  private:
38  std::string Name_;
39  bool Used_;
40 };
41 #endif
42