DateParameter.cpp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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-29
  7. *
  8. * */
  9. #include <ls-std/time/common/DateParameter.hpp>
  10. using ls::std::time::DateParameter;
  11. using ls::std::time::type::Day;
  12. using ls::std::time::type::Hour;
  13. using ls::std::time::type::Millisecond;
  14. using ls::std::time::type::Minute;
  15. using ls::std::time::type::Month;
  16. using ls::std::time::type::Second;
  17. using ls::std::time::type::Year;
  18. DateParameter::DateParameter(Year _year, Month _month, Day _day, Hour _hour, Minute _minute, Second _second, Millisecond _millisecond) : year(_year), month(_month), day(_day), hour(_hour), minute(_minute), second(_second), millisecond(_millisecond)
  19. {}
  20. DateParameter::DateParameter() = default;
  21. DateParameter::~DateParameter() = default;
  22. Day DateParameter::getDay() const
  23. {
  24. return this->day;
  25. }
  26. Hour DateParameter::getHour() const
  27. {
  28. return this->hour;
  29. }
  30. Millisecond DateParameter::getMillisecond() const
  31. {
  32. return this->millisecond;
  33. }
  34. Minute DateParameter::getMinute() const
  35. {
  36. return this->minute;
  37. }
  38. Month DateParameter::getMonth() const
  39. {
  40. return this->month;
  41. }
  42. Second DateParameter::getSecond() const
  43. {
  44. return this->second;
  45. }
  46. Year DateParameter::getYear() const
  47. {
  48. return this->year;
  49. }
  50. void DateParameter::setDay(Day _day)
  51. {
  52. this->day = _day;
  53. }
  54. void DateParameter::setHour(Hour _hour)
  55. {
  56. this->hour = _hour;
  57. }
  58. void DateParameter::setMillisecond(Millisecond _millisecond)
  59. {
  60. this->millisecond = _millisecond;
  61. }
  62. void DateParameter::setMinute(Minute _minute)
  63. {
  64. this->minute = _minute;
  65. }
  66. void DateParameter::setMonth(Month _month)
  67. {
  68. this->month = _month;
  69. }
  70. void DateParameter::setSecond(Second _second)
  71. {
  72. this->second = _second;
  73. }
  74. void DateParameter::setYear(Year _year)
  75. {
  76. this->year = _year;
  77. }