forked from tomaszmrugalski/dibbler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOptDomainLst.h
33 lines (30 loc) · 853 Bytes
/
OptDomainLst.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Dibbler - a portable DHCPv6
*
* authors: Tomasz Mrugalski <[email protected]>
* Marek Senderski <[email protected]>
*
* released under GNU GPL v2 licence
*/
#ifndef OPTSTRINGLST_H
#define OPTSTRINGLST_H
#include "Opt.h"
#include <iostream>
#include <string>
class TOptDomainLst : public TOpt
{
public:
TOptDomainLst(int type, List(std::string) strLst, TMsg* parent);
TOptDomainLst(int type, const std::string& domain, TMsg* parent);
TOptDomainLst(int type, const char *buf, unsigned short bufsize, TMsg* parent);
const List(std::string)& getDomainLst() { return StringLst; }
const std::string& getDomain();
char * storeSelf( char* buf);
size_t getSize();
int countString();
bool doDuties() { return true; }
virtual std::string getPlain();
protected:
List(std::string) StringLst;
};
#endif