PosixClock.hpp 679 B

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