DateParameter.hpp 1.8 KB

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