Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OptString.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 licence
8  *
9  */
10 
11 #ifndef OPTSTRING_H
12 #define OPTSTRING_H
13 #include <iostream>
14 #include <string>
15 
16 #include "Opt.h"
17 
18 class TOptString : public TOpt
19 {
20  public:
21  TOptString(int type, std::string str, TMsg* parent);
22  TOptString(int type, const char *buf, unsigned short len, TMsg* parent);
23  char * storeSelf( char* buf);
24  size_t getSize();
25  std::string getString();
26  virtual bool doDuties() { return true; } // do nothing, actual code in ClntOpt* classes
27  std::string getPlain() { return Str; }
28  protected:
29  std::string Str;
30 };
31 
32 #endif
33