SystemTime.hpp 865 B

123456789101112131415161718192021222324252627282930313233343536373839
  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-15
  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 <memory>
  16. namespace ls::std::time
  17. {
  18. class LS_STD_DYNAMIC_GOAL SystemTime : public ls::std::core::Class
  19. {
  20. public:
  21. explicit SystemTime(const ::std::shared_ptr<ls::std::time::SystemTimeParameter> &_parameter);
  22. SystemTime();
  23. ~SystemTime() noexcept override;
  24. [[nodiscard]] bool set(uint32_t _timeStamp);
  25. private:
  26. ::std::shared_ptr<ls::std::time::SystemTimeParameter> parameter{};
  27. void _generateParameter();
  28. };
  29. }
  30. #endif