SystemTime.hpp 910 B

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