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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
/*
* Dibbler - a portable DHCPv6
*
* authors: Tomasz Mrugalski <thomson@klub.com.pl>
* Marek Senderski <msend@o2.pl>
*
* released under GNU GPL v2 only licence
*
*/
#include "ClntParsGlobalOpt.h"
#include "Portable.h"
#include "DHCPDefaults.h"
#include "Logger.h"
using namespace std;
TClntParsGlobalOpt::TClntParsGlobalOpt()
:TClntParsIfaceOpt() {
this->WorkDir = DEFAULT_WORKDIR;
this->PrefixLength = CLIENT_DEFAULT_PREFIX_LENGTH;
this->AnonInfRequest = false;
this->InactiveMode = false;
this->InsistMode = false;
this->FQDNFlagS = CLIENT_DEFAULT_FQDN_FLAG_S;
this->Experimental = false;
this->UseConfirm = true;
}
TClntParsGlobalOpt::~TClntParsGlobalOpt() {
}
void TClntParsGlobalOpt::setWorkDir(const std::string& dir) {
WorkDir = dir;
}
string TClntParsGlobalOpt::getWorkDir() {
return WorkDir;
}
void TClntParsGlobalOpt::setOnLinkPrefixLength(int len) {
PrefixLength = len;
}
int TClntParsGlobalOpt::getOnLinkPrefixLength() {
return PrefixLength;
}
void TClntParsGlobalOpt::setAnonInfRequest(bool anonymous) {
this->AnonInfRequest = anonymous;
}
bool TClntParsGlobalOpt::getAnonInfRequest() {
return this->AnonInfRequest;
}
void TClntParsGlobalOpt::setInsistMode(bool insist)
{
InsistMode = insist;
}
bool TClntParsGlobalOpt::getInsistMode()
{
return InsistMode;
}
void TClntParsGlobalOpt::setInactiveMode(bool flex)
{
InactiveMode = flex;
}
bool TClntParsGlobalOpt::getInactiveMode()
{
return InactiveMode;
}
void TClntParsGlobalOpt::setExperimental()
{
Experimental = true;
}
bool TClntParsGlobalOpt::getExperimental()
{
return Experimental;
}
void TClntParsGlobalOpt::setFQDNFlagS(bool s)
{
FQDNFlagS = s;
}
bool TClntParsGlobalOpt::getFQDNFlagS()
{
return FQDNFlagS;
}
void TClntParsGlobalOpt::setConfirm(bool conf)
{
UseConfirm = conf;
}
bool TClntParsGlobalOpt::getConfirm()
{
return UseConfirm;
}
|