PosixClock.hpp 675 B

12345678910111213141516171819202122232425262728293031
  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_POSIX_CLOCK_HPP
  10. #define LS_STD_POSIX_CLOCK_HPP
  11. #include "IClock.hpp"
  12. #include <cstdint>
  13. #include <ls-std/os/dynamic-goal.hpp>
  14. #include <ls-std/time/type/DateParameterTypes.hpp>
  15. namespace ls::std::time
  16. {
  17. class LS_STD_DYNAMIC_GOAL PosixClock : public ls::std::time::IClock
  18. {
  19. public:
  20. PosixClock();
  21. ~PosixClock() noexcept override;
  22. [[nodiscard]] bool setTime(const ls::std::time::DateParameter &_dateParameter) override;
  23. };
  24. }
  25. #endif