/* * Date.h */ #ifndef DATE_H #define DATE_H #include #include namespace IDA_Date { class Date { public: Date(int year, int month, int day) : year_{ year }, month_{ month }, day_{ day } {} Date(const Date&) = default; Date(Date&&) noexcept = default; ~Date() = default; Date& operator=(const Date&) & = default; Date& operator=(Date&&) & noexcept = default; int get_year() const; int get_month() const; int get_day() const; void set_year(int year); void set_month(int month); void set_day(int day); std::string str() const; private: int year_; int month_; int day_; }; std::ostream& operator<<(std::ostream&, const Date&); } // namespace IDA_Date #endif