SystemTimeParameter.hpp 747 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-03-15
  6. * Changed: 2023-03-31
  7. *
  8. * */
  9. #ifndef LS_STD_SYSTEM_TIME_PARAMETER_HPP
  10. #define LS_STD_SYSTEM_TIME_PARAMETER_HPP
  11. #include "IClock.hpp"
  12. #include <ls-std/os/dynamic-goal.hpp>
  13. #include <memory>
  14. namespace ls::std::time
  15. {
  16. class LS_STD_DYNAMIC_GOAL SystemTimeParameter
  17. {
  18. public:
  19. SystemTimeParameter();
  20. ~SystemTimeParameter();
  21. [[nodiscard]] ::std::shared_ptr<ls::std::time::IClock> getClock();
  22. void setClock(const ::std::shared_ptr<ls::std::time::IClock> &_clock);
  23. private:
  24. ::std::shared_ptr<ls::std::time::IClock> clock{};
  25. };
  26. }
  27. #endif