1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-03-07
- * Changed: 2024-05-25
- *
- * */
- #ifndef LS_STD_SYSTEM_TIME_HPP
- #define LS_STD_SYSTEM_TIME_HPP
- #include "SystemTimeParameter.hpp"
- #include <cstdint>
- #include <ls-std/core/Class.hpp>
- #include <ls-std/os/dynamic-goal.hpp>
- #include <ls-std/time/common/DateParameter.hpp>
- #include <ls-std/time/type/DateParameterTypes.hpp>
- #include <memory>
- #include <string>
- /*
- * @class(name: 'SystemTime', package: 'time')
- * */
- namespace ls::std::time
- {
- class LS_STD_DYNAMIC_GOAL SystemTime : public ls::std::core::Class
- {
- public:
- explicit SystemTime(const ::std::shared_ptr<ls::std::time::SystemTimeParameter> &_parameter);
- SystemTime();
- ~SystemTime() noexcept override;
- [[nodiscard]] bool set(const ls::std::time::DateParameter &_dateParameter) const;
- private:
- ::std::shared_ptr<ls::std::time::SystemTimeParameter> parameter{};
- [[nodiscard]] static ::std::string _fetchClassName();
- void _generateParameter();
- };
- }
- #endif
|