🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
EventTimeExplicit.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AstCore/EventTime.hpp"
25#include "AstCore/TimePoint.hpp"
26
27AST_NAMESPACE_BEGIN
28
36class AST_CORE_API EventTimeExplicit final: public EventTime
37{
38public:
39 AST_OBJECT(EventTimeExplicit)
40 AST_PROPERT(Time)
41 static EventTimeExplicit* New(const TimePoint& time);
42 static SharedPtr<EventTimeExplicit> MakeShared(const TimePoint& time);
43
44 EventTimeExplicit() = default;
45 explicit EventTimeExplicit(const TimePoint& time);
46 ~EventTimeExplicit() override = default;
47 std::string getRepresentation() const override;
48PROPERTIES:
49 errc_t getTime(TimePoint& time) const override;
50 void setTime(const TimePoint& time);
51protected:
52 TimePoint time_{};
53};
54
57AST_NAMESPACE_END
显式事件时间
定义 EventTimeExplicit.hpp:37
事件时间
定义 EventTime.hpp:44
virtual errc_t getTime(TimePoint &tp) const =0
获取时间点
virtual std::string getRepresentation() const
获取对象的表示
定义 Object.cpp:61
共享指针
定义 SharedPtr.hpp:33
绝对时间点
定义 TimePoint.hpp:106
时间
定义 Time.hpp:53