From 7dfef1b508256e3b629d40ea463b293792a0620e Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 7 May 2022 17:03:57 +0300 Subject: Autocommit at 07.05.2022 @ 17:03 --- src/Generic/Date/Date.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/Generic/Date/Date.h') diff --git a/src/Generic/Date/Date.h b/src/Generic/Date/Date.h index 5d1ff62..aa4047d 100644 --- a/src/Generic/Date/Date.h +++ b/src/Generic/Date/Date.h @@ -15,16 +15,14 @@ class Date { public: Date(); Date(unsigned short day, unsigned short month, unsigned short year); - int compare(const Date& other) const; unsigned short get_day() const; - bool set_day(unsigned short newDay); - unsigned short get_month() const; - bool set_month(unsigned short newMonth); - unsigned short get_year() const; - bool set_year(unsigned short newYear); + + void read(std::istream& istr); + void write(std::ostream& ostr); + int compare(const Date& other) const; }; std::istream& operator>>(std::istream& istr, Date& dt); -- cgit v1.3.1-26-gb76a