12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-03-29
- * Changed: 2024-09-11
- *
- * */
- #ifndef LS_STD_DATE_PARAMETER_HPP
- #define LS_STD_DATE_PARAMETER_HPP
- #include <cstdint>
- #include <ls-std/os/dynamic-goal.hpp>
- #include <ls-std/time/type/DateParameterTypes.hpp>
- /*
- * @doc: class(name: 'DateParameter', package: 'time')
- * @doc: time.DateParameter.description('This class holds information of a date processed by this library.')
- * */
- namespace ls::std::time
- {
- class LS_STD_DYNAMIC_GOAL DateParameter
- {
- public:
- 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);
- DateParameter();
- ~DateParameter();
- bool operator==(const ls::std::time::DateParameter &_dateParameter) const;
- [[nodiscard]] ls::std::time::type::Day getDay() const;
- [[nodiscard]] ls::std::time::type::Hour getHour() const;
- [[nodiscard]] ls::std::time::type::Minute getMinute() const;
- [[nodiscard]] ls::std::time::type::Month getMonth() const;
- [[nodiscard]] ls::std::time::type::Second getSecond() const;
- [[nodiscard]] ls::std::time::type::Year getYear() const;
- void setDay(ls::std::time::type::Day _day);
- void setHour(ls::std::time::type::Hour _hour);
- void setMinute(ls::std::time::type::Minute _minute);
- void setMonth(ls::std::time::type::Month _month);
- void setSecond(ls::std::time::type::Second _second);
- void setYear(ls::std::time::type::Year _year);
- private:
- ls::std::time::type::Day day{};
- ls::std::time::type::Hour hour{};
- ls::std::time::type::Minute minute{};
- ls::std::time::type::Month month{};
- ls::std::time::type::Second second{};
- ls::std::time::type::Year year{};
- };
- }
- #endif
|