1 #ifndef __OPENTREP_PARSERHELPERTYPES_HPP
2 #define __OPENTREP_PARSERHELPERTYPES_HPP
21 template <
int MIN = 0,
int MAX = 0>
34 if (_value < MIN || _value > MAX) {
35 std::ostringstream oMessage;
36 oMessage <<
"The value: " <<
_value <<
" is out of range ("
37 << MIN <<
", " << MAX <<
")";
44 template <
int MIN,
int MAX>
45 inline date_time_element<MIN,
52 template <
int MIN,
int MAX>
53 inline date_time_element<MIN,
68 #endif // __OPENTREP_PARSERHELPERTYPES_HPP
date_time_element< 1900, 2100 > year_t
date_time_element< 1, 31 > day_t
date_time_element(const date_time_element &t)
date_time_element< 0, 59 > second_t
date_time_element< 0, 23 > hour_t
date_time_element< MIN, MAX > operator+(const date_time_element< MIN, MAX > &o1, const date_time_element< MIN, MAX > &o2)
date_time_element< MIN, MAX > operator*(const date_time_element< MIN, MAX > &o1, const date_time_element< MIN, MAX > &o2)
date_time_element< 1, 12 > month_t
date_time_element< 0, 59 > minute_t