SystemTimeParameter.hpp 931 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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-11
  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. * @doc: time.SystemTimeParameter.description('This class holds information for setting the system time.')
  17. * */
  18. namespace ls::std::time
  19. {
  20. class LS_STD_DYNAMIC_GOAL SystemTimeParameter
  21. {
  22. public:
  23. SystemTimeParameter();
  24. ~SystemTimeParameter();
  25. [[nodiscard]] ::std::shared_ptr<ls::std::time::IClock> getClock() const;
  26. void setClock(const ::std::shared_ptr<ls::std::time::IClock> &_clock);
  27. private:
  28. ::std::shared_ptr<ls::std::time::IClock> clock{};
  29. };
  30. }
  31. #endif