44 #include <Bpp/Exceptions.h> 45 #include <Bpp/Clonable.h> 56 class Date :
public Clonable
75 Date(
const int day = 1,
const int month = 1,
const int year = 2000) throw (BadIntegerException);
103 void setDate(const
int day, const
int month, const
int year) throw (BadIntegerException);
117 void setMonth(const
int month) throw (BadIntegerException);
124 void setDay(const
int day) throw (BadIntegerException);
186 #ifdef NO_VIRTUAL_COV void setDate(const int day, const int month, const int year)
Set the Date.
bool operator>(const Date &date) const
The > operator.
void setMonth(const int month)
Set the month.
int getDay() const
Get the day as an int.
void setYear(const int year)
Set the year.
bool operator>=(const Date &date) const
The >= operator.
int getMonth() const
Get the month as an int.
void setDay(const int day)
Set the day.
std::string getDateStr() const
Get the Date as a string.
bool operator<=(const Date &date) const
The <= operator.
int getYear() const
Get the Year as an int.
bool operator!=(const Date &date) const
The != operator.
Date(const int day=1, const int month=1, const int year=2000)
Build a new Date from three values.
bool operator==(const Date &date) const
The == operator.
bool operator<(const Date &date) const
The < operator.