DateParameter.hpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-03-29
  6. * Changed: 2024-05-31
  7. *
  8. * */
  9. #ifndef LS_STD_DATE_PARAMETER_HPP
  10. #define LS_STD_DATE_PARAMETER_HPP
  11. #include <ls-std/core/definition.hpp>
  12. #include <ls-std/time/type/DateParameterTypes.hpp>
  13. namespace ls::std::time
  14. {
  15. ls_std_class DateParameter
  16. {
  17. public:
  18. DateParameter(type::Year _year, type::Month _month, type::Day _day, type::Hour _hour, type::Minute _minute, type::Second _second);
  19. DateParameter();
  20. ~DateParameter();
  21. bool operator==(const DateParameter &_dateParameter) const;
  22. [[nodiscard]] type::Day getDay() const;
  23. [[nodiscard]] type::Hour getHour() const;
  24. [[nodiscard]] type::Minute getMinute() const;
  25. [[nodiscard]] type::Month getMonth() const;
  26. [[nodiscard]] type::Second getSecond() const;
  27. [[nodiscard]] type::Year getYear() const;
  28. void setDay(type::Day _day);
  29. void setHour(type::Hour _hour);
  30. void setMinute(type::Minute _minute);
  31. void setMonth(type::Month _month);
  32. void setSecond(type::Second _second);
  33. void setYear(type::Year _year);
  34. private:
  35. type::Day day{};
  36. type::Hour hour{};
  37. type::Minute minute{};
  38. type::Month month{};
  39. type::Second second{};
  40. type::Year year{};
  41. };
  42. }
  43. #endif