SystemTime.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-03-07
  6. * Changed: 2024-09-09
  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. /*
  20. * @doc: class(name: 'SystemTime', package: 'time')
  21. * */
  22. namespace ls::std::time
  23. {
  24. class LS_STD_DYNAMIC_GOAL SystemTime : public ls::std::core::Class
  25. {
  26. public:
  27. explicit SystemTime(const ::std::shared_ptr<ls::std::time::SystemTimeParameter> &_parameter);
  28. SystemTime();
  29. ~SystemTime() noexcept override;
  30. [[nodiscard]] bool set(const ls::std::time::DateParameter &_dateParameter) const;
  31. private:
  32. ::std::shared_ptr<ls::std::time::SystemTimeParameter> parameter{};
  33. [[nodiscard]] static ::std::string _fetchClassName();
  34. void _generateParameter();
  35. };
  36. }
  37. #endif