SystemTimeParameter.hpp 824 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-03-15
  6. * Changed: 2024-09-09
  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. /*
  15. * @doc: class(name: 'SystemTimeParameter', package: 'time')
  16. * */
  17. namespace ls::std::time
  18. {
  19. class LS_STD_DYNAMIC_GOAL SystemTimeParameter
  20. {
  21. public:
  22. SystemTimeParameter();
  23. ~SystemTimeParameter();
  24. [[nodiscard]] ::std::shared_ptr<ls::std::time::IClock> getClock() const;
  25. void setClock(const ::std::shared_ptr<ls::std::time::IClock> &_clock);
  26. private:
  27. ::std::shared_ptr<ls::std::time::IClock> clock{};
  28. };
  29. }
  30. #endif