DateParameter.hpp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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-11
  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. * @doc: time.DateParameter.description('This class holds information of a date processed by this library.')
  17. * */
  18. namespace ls::std::time
  19. {
  20. class LS_STD_DYNAMIC_GOAL DateParameter
  21. {
  22. public:
  23. 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);
  24. DateParameter();
  25. ~DateParameter();
  26. bool operator==(const ls::std::time::DateParameter &_dateParameter) const;
  27. [[nodiscard]] ls::std::time::type::Day getDay() const;
  28. [[nodiscard]] ls::std::time::type::Hour getHour() const;
  29. [[nodiscard]] ls::std::time::type::Minute getMinute() const;
  30. [[nodiscard]] ls::std::time::type::Month getMonth() const;
  31. [[nodiscard]] ls::std::time::type::Second getSecond() const;
  32. [[nodiscard]] ls::std::time::type::Year getYear() const;
  33. void setDay(ls::std::time::type::Day _day);
  34. void setHour(ls::std::time::type::Hour _hour);
  35. void setMinute(ls::std::time::type::Minute _minute);
  36. void setMonth(ls::std::time::type::Month _month);
  37. void setSecond(ls::std::time::type::Second _second);
  38. void setYear(ls::std::time::type::Year _year);
  39. private:
  40. ls::std::time::type::Day day{};
  41. ls::std::time::type::Hour hour{};
  42. ls::std::time::type::Minute minute{};
  43. ls::std::time::type::Month month{};
  44. ls::std::time::type::Second second{};
  45. ls::std::time::type::Year year{};
  46. };
  47. }
  48. #endif