Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OptFQDN.h
Go to the documentation of this file.
1 /*
2 * Dibbler - a portable DHCPv6
3 *
4 * authors: Adrien CLERC, Bahattin DEMIRPLAK, Gaëtant ELEOUET
5 * Mickaël GUÉRIN, Lionel GUILMIN, Lauréline PROVOST
6 * from ENSEEIHT, Toulouse, France
7 *
8 * released under GNU GPL v2 licence
9 *
10 */
11 
17 class TOptFQDN;
18 #ifndef OPTFQDN_H
19 #define OPTFQDN_H
20 
21 #include <string>
22 
23 #include "Opt.h"
24 #include "DHCPConst.h"
25 
26 class TOptFQDN : public TOpt
27 {
28  public:
36  TOptFQDN(const std::string& fqdn, TMsg* parent);
37 
46  TOptFQDN(const char* buf, int bufsize, TMsg* parent);
47 
51  ~TOptFQDN();
52 
53  size_t getSize();
54  char * storeSelf( char* buf);
55  bool isValid() const;
56 
57  bool getNFlag() const;
58  bool getSFlag() const;
59  bool getOFlag() const;
60  void setNFlag(bool flag);
61  void setOFlag(bool flag);
62  void setSFlag(bool flag);
63  std::string getFQDN() const;
64  virtual std::string getPlain();
65  bool doDuties();
66 
67  private:
68  std::string fqdn_;
69  bool flag_N_;
70  bool flag_O_;
71  bool flag_S_;
72 };
73 
74 #endif /* OPTFQDN_H */
75