1 #ifndef __JEEP__JDATE__
2 #define __JEEP__JDATE__
21 namespace JPP {
using namespace JEEP; }
38 template<
char JSeparator_t>
81 std::istringstream in(date);
87 static JDate min() {
return JDate(std::numeric_limits<int>::lowest(), 1, 1); }
88 static JDate max() {
return JDate(std::numeric_limits<int>::max(), 12, 31); }
102 return this->
day < date.
day;
127 while (isspace(in.peek())) { in.ignore(); }
131 in >>
object.year >>
object.month >>
object.day;
150 <<
FILL(2,
'0') <<
object.day <<
FILL();
I/O formatting auxiliaries.
Auxiliary class to specify white space character(s) in currect locale.
General puprpose classes and methods.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for sequence of same character.
Auxiliary class for simple date.
static JDate max()
Maximal date.
friend std::ostream & operator<<(std::ostream &out, const JDate &object)
Write date to output stream.
JDate()
Default constructor.
static const char SEPARATOR
Separation character.
JDate(const std::string &date)
Constructor.
friend std::istream & operator>>(std::istream &in, JDate &object)
Read date from input stream.
static JDate min()
Minimal date.
JDate(const int year, const int month, const int day)
Constructor.
bool less(const JDate &date) const
Less-than method.
Template definition of auxiliary base class for comparison of data structures.