DateParameter.hpp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-03-29
  6. * Changed: 2024-09-09
  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. /*
  15. * @doc: class(name: 'DateParameter', package: 'time')
  16. * */
  17. namespace ls::std::time
  18. {
  19. class LS_STD_DYNAMIC_GOAL DateParameter
  20. {
  21. public:
  22. 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);
  23. DateParameter();
  24. ~DateParameter();
  25. bool operator==(const ls::std::time::DateParameter &_dateParameter) const;
  26. [[nodiscard]] ls::std::time::type::Day getDay() const;
  27. [[nodiscard]] ls::std::time::type::Hour getHour() const;
  28. [[nodiscard]] ls::std::time::type::Minute getMinute() const;
  29. [[nodiscard]] ls::std::time::type::Month getMonth() const;
  30. [[nodiscard]] ls::std::time::type::Second getSecond() const;
  31. [[nodiscard]] ls::std::time::type::Year getYear() const;
  32. void setDay(ls::std::time::type::Day _day);
  33. void setHour(ls::std::time::type::Hour _hour);
  34. void setMinute(ls::std::time::type::Minute _minute);
  35. void setMonth(ls::std::time::type::Month _month);
  36. void setSecond(ls::std::time::type::Second _second);
  37. void setYear(ls::std::time::type::Year _year);
  38. private:
  39. ls::std::time::type::Day day{};
  40. ls::std::time::type::Hour hour{};
  41. ls::std::time::type::Minute minute{};
  42. ls::std::time::type::Month month{};
  43. ls::std::time::type::Second second{};
  44. ls::std::time::type::Year year{};
  45. };
  46. }
  47. #endif