17 Limit::Limit(bool isLower)
19 this->isLower = isLower;
27 void Limit::setValue(std::string value)
32 std::string Limit::getValue()
37 double Limit::getDouble(double value)
39 if(this->value.size() > 0)
43 std::istringstream iss(this->value);
49 c = std::max(value, c);
53 c = std::min(value, c);
64 float Limit::getFloat(float value)
66 if(this->value.size() > 0)
70 std::istringstream iss(this->value);
76 c = std::max(value, c);
80 c = std::min(value, c);
91 int Limit::getInteger(int value)
93 if(this->value.size() > 0)
97 std::istringstream iss(this->value);
103 c = std::max(value, c);
107 c = std::min(value, c);
118 long Limit::getLong(long value)
120 if(this->value.size() > 0)
124 std::istringstream iss(this->value);
130 c = std::max(value, c);
134 c = std::min(value, c);
145 char Limit::getByte(char value)
147 if(this->value.size() > 0)
151 std::istringstream iss(this->value);
157 c = std::max(value, c);
161 c = std::min(value, c);
172 void Limit::setInclusive()
177 bool Limit::getInclusive()
182 std::string Limit::writeOut()
188 if(isInclusive == true)
202 if(isInclusive == true)