1 #ifndef __JEEP__JDATE__
2 #define __JEEP__JDATE__
19 namespace JPP {
using namespace JEEP; }
29 template<
char JSeparator_t>
72 std::istringstream
in(date);
78 static JDate min() {
return JDate(-std::numeric_limits<int>::max(), 1, 1); }
79 static JDate max() {
return JDate(+std::numeric_limits<int>::max(), 12, 31); }
93 return this->
day < date.
day;
121 for (string::iterator i = buffer.begin(); i != buffer.end(); ++i) {
127 istringstream
is(buffer);
129 if (! (is >>
object.
year >>
object.
month >>
object.
day)) {
130 in.setstate(is.rdstate());
149 <<
FILL(2,
'0') <<
object.day <<
FILL();
static const char SEPARATOR
Separation character.
friend std::istream & operator>>(std::istream &in, JDate &object)
Read date from input stream.
friend std::ostream & operator<<(std::ostream &out, const JDate &object)
Write date to output stream.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
static JDate min()
Minimal date.
I/O formatting auxiliaries.
JDate()
Default constructor.
static JDate max()
Maximal date.
Auxiliary class for simple date.
JDate(const int year, const int month, const int day)
Constructor.
Template definition of auxiliary base class for comparison of data structures.
Auxiliary data structure for sequence of same character.
JDate(const std::string &date)
Constructor.
bool less(const JDate &date) const
Less-than method.