Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OptDomainLst.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 #ifndef OPTSTRINGLST_H
11 #define OPTSTRINGLST_H
12 #include "Opt.h"
13 #include <iostream>
14 #include <string>
15 
16 class TOptDomainLst : public TOpt
17 {
18 public:
19  TOptDomainLst(int type, List(std::string) strLst, TMsg* parent);
20  TOptDomainLst(int type, const std::string& domain, TMsg* parent);
21  TOptDomainLst(int type, const char *buf, unsigned short bufsize, TMsg* parent);
22  const List(std::string)& getDomainLst() { return StringLst; }
23  const std::string& getDomain();
24  char * storeSelf( char* buf);
25  size_t getSize();
26  int countString();
27  bool doDuties() { return true; }
28  virtual std::string getPlain();
29 protected:
30  List(std::string) StringLst;
31 };
32 
33 #endif
34