A class to represent and handle date ranges. They can be sorted, checked for uniqueness and a date can be compared to the range (is it before or after?).
#include <Date.h>
Public Member Functions | |
| DateRange () | |
| DateRange (const Date &d1, const Date &d2) | |
| bool | in (const Date &a) const |
| Is the provided date within the current range? More... | |
| bool | operator< (const Date &a) const |
| Is the provided date before the end of the range? More... | |
| bool | operator> (const Date &a) const |
| Is the provided date after the start of the range? More... | |
| bool | operator< (const DateRange &a) const |
| bool | operator== (const DateRange &a) const |
| const std::string | toString () const |
Public Attributes | |
| Date | start |
| Date | end |
|
inline |
|
inline |
Is the provided date within the current range?
| [in] | a | Date to check |
|
inline |
Is the provided date before the end of the range?
| [in] | a | Date to check |
|
inline |
|
inline |
|
inline |
Is the provided date after the start of the range?
| [in] | a | Date to check |
|
inline |
| Date mio::DateRange::end |
| Date mio::DateRange::start |