Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OptStatusCode.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 #ifndef OPTSTATUSCODE_H
12 #define OPTSTATUSCODE_H
13 
14 #include <string>
15 #include "Opt.h"
16 
17 class TOptStatusCode : public TOpt
18 {
19  public:
20  TOptStatusCode(const char * buf, size_t len, TMsg* parent);
21  TOptStatusCode(int status, const std::string& Message, TMsg* parent);
22 
23  virtual size_t getSize();
24  virtual char * storeSelf( char* buf);
25 
26  int getCode();
27  std::string getText();
28 
29  virtual bool doDuties();
30  private:
31  std::string Message_;
33  bool Valid_;
34 };
35 
36 #endif
37