SystemTime.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-03-07
  6. * Changed: 2023-05-18
  7. *
  8. * */
  9. #ifndef LS_STD_SYSTEM_TIME_HPP
  10. #define LS_STD_SYSTEM_TIME_HPP
  11. #include "SystemTimeParameter.hpp"
  12. #include <cstdint>
  13. #include <ls-std/core/Class.hpp>
  14. #include <ls-std/os/dynamic-goal.hpp>
  15. #include <ls-std/time/common/DateParameter.hpp>
  16. #include <ls-std/time/type/DateParameterTypes.hpp>
  17. #include <memory>
  18. #include <string>
  19. namespace ls::std::time
  20. {
  21. class LS_STD_DYNAMIC_GOAL SystemTime : public ls::std::core::Class
  22. {
  23. public:
  24. explicit SystemTime(const ::std::shared_ptr<ls::std::time::SystemTimeParameter> &_parameter);
  25. SystemTime();
  26. ~SystemTime() noexcept override;
  27. [[nodiscard]] bool set(const ls::std::time::DateParameter &_dateParameter) const;
  28. private:
  29. ::std::shared_ptr<ls::std::time::SystemTimeParameter> parameter{};
  30. [[nodiscard]] static ::std::string _fetchClassName();
  31. void _generateParameter();
  32. };
  33. }
  34. #endif