SystemTime.hpp 995 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-03-07
  6. * Changed: 2023-03-31
  7. *
  8. * */
  9. #ifndef LS_STD_SYSTEM_TIME_HPP
  10. #define LS_STD_SYSTEM_TIME_HPP
  11. #include "SystemTimeParameter.hpp"
  12. #include <cstdint>
  13. #include <ls-std/core/Class.hpp>
  14. #include <ls-std/os/dynamic-goal.hpp>
  15. #include <ls-std/time/common/DateParameter.hpp>
  16. #include <ls-std/time/type/DateParameterTypes.hpp>
  17. #include <memory>
  18. namespace ls::std::time
  19. {
  20. class LS_STD_DYNAMIC_GOAL SystemTime : public ls::std::core::Class
  21. {
  22. public:
  23. explicit SystemTime(const ::std::shared_ptr<ls::std::time::SystemTimeParameter> &_parameter);
  24. SystemTime();
  25. ~SystemTime() noexcept override;
  26. [[nodiscard]] bool set(const ls::std::time::DateParameter &_dateParameter);
  27. private:
  28. ::std::shared_ptr<ls::std::time::SystemTimeParameter> parameter{};
  29. void _generateParameter();
  30. };
  31. }
  32. #endif