PosixClock.hpp 756 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: 2024-09-11
  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. * @doc: time.PosixClock.description('This is a POSIX based internal time.')
  17. * */
  18. namespace ls::std::time
  19. {
  20. class PosixClock : public ls::std::time::IClock
  21. {
  22. public:
  23. PosixClock();
  24. ~PosixClock() noexcept override;
  25. [[nodiscard]] bool setTime(const ls::std::time::DateParameter &_dateParameter) override;
  26. };
  27. }
  28. #endif