12 #ifndef __KOME_CORE_NUMBER_RESTRICTION_H__
13 #define __KOME_CORE_NUMBER_RESTRICTION_H__
17 #include <boost/optional.hpp>
62 void setInclusiveMinValue(
const double value );
69 bool hasInclusiveMinValue();
77 double getInclusiveMinValue(
const double dfValue = 0.0 );
84 void setInclusiveMaxValue(
const double value );
91 bool hasInclusiveMaxValue();
99 double getInclusiveMaxValue(
const double dfValue = 0.0 );
106 void setExclusiveMinValue(
const double value );
113 bool hasExclusiveMinValue();
121 double getExclusiveMinValue(
const double dfValue = 0.0 );
128 void setExclusiveMaxValue(
const double value );
135 bool hasExclusiveMaxValue();
143 double getExclusiveMaxValue(
const double dfValue = 0.0 );
151 double getLowerBound(
const double dfValue = 0.0 );
159 double getUpperBound(
const double dfValue = 0.0 );
167 bool checkDoubleValue(
const double value );
175 bool checkIntValue(
const int value );
183 std::string getRangeStr(
const char* name );
188 #endif // __KOME_CORE_NUMBER_RESTRICTION_H__
the restriction of number class
boost::optional< double > m_maxInclusive
boost::optional< double > m_maxExclusive
boost::optional< double > m_minExclusive
boost::optional< double > m_minInclusive