🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ast::Scenario类 参考

#include <Scenario.hpp>

+ 类 ast::Scenario 继承关系图:

Public 成员函数

SharedPtr< EventTime > & getEpochHandle ()
 
errc_t getEpoch (TimePoint &epoch) const
 
void setEpoch (EventTime *epoch)
 
void setEpoch (const TimePoint &epoch)
 
SharedPtr< EventInterval > & getIntervalHandle ()
 
errc_t getInterval (TimeInterval &interval) const
 
void setInterval (EventInterval *interval)
 
void setInterval (const TimeInterval &interval)
 
void setName (StringView name) override
 
const std::string & getName () const override
 
void setEOPFileName (StringView filename)
 
void setInheritEOPSource (bool inherit)
 
void setPrimaryBody (CelestialBody *body)
 
- Public 成员函数 继承自 ast::Object
 Object (Object *parentScope)
 
 Object (std::nullptr_t)
 
 Object (initial_strong_ref_t)
 
virtual ClassgetType () const
 
virtual std::string getRepresentation () const
 
const std::string & name () const
 
errc_t showEditDialog ()
 
Attribute attr (StringView path)
 
errc_t getAttrBool (StringView path, bool &value) const
 
errc_t getAttrInt (StringView path, int &value) const
 
errc_t getAttrDouble (StringView path, double &value) const
 
errc_t getAttrString (StringView path, std::string &value) const
 
errc_t getAttrObject (StringView path, Object *&value) const
 
double getAttrDouble (StringView path) const
 
int getAttrInt (StringView path) const
 
bool getAttrBool (StringView path) const
 
std::string getAttrString (StringView path) const
 
ObjectgetAttrObject (StringView path) const
 
errc_t setAttrBool (StringView path, bool value)
 
errc_t setAttrInt (StringView path, int value)
 
errc_t setAttrDouble (StringView path, double value)
 
errc_t setAttrString (StringView path, StringView value)
 
errc_t setAttrObject (StringView path, Object *value)
 
Classtype () const
 
const std::string & typeName () const
 
PropertygetProperty (StringView fieldName) const
 
ObjectId getID () const
 
errc_t setParentScope (Object *parentScope)
 
ObjectgetParentScope () const
 
bool isOfType (const Class *type) const
 
bool isOfType (StringView typeName) const
 
template<typename T >
bool isOfType () const
 
uint32_t refCount () const
 
uint32_t weakRefCount () const
 
bool isDestructed () const
 
void destruct ()
 
uint32_t incWeakRef ()
 
uint32_t decWeakRef ()
 
uint32_t incRef ()
 
uint32_t decRef ()
 
uint32_t decRefNoDelete ()
 
template<typename Func >
void addDelayedLink (Func &&link)
 
template<typename Func >
void addDelayedLinkIfFailed (Func &&link)
 
void resolveLinks ()
 

Protected 属性

std::string name_
 
SharedPtr< EventTimeepoch_
 
SharedPtr< EventIntervalinterval_
 
std::string eopFileName_
 
bool inheritEOPSource_ {}
 
SharedPtr< CelestialBodyprimaryBody_
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 ast::Object
static ObjectResolve (StringView value)
 
static void ClassInit (Class *cls)
 
static ClassStaticType ()
 
- 静态 Public 属性 继承自 ast::Object
static Class staticType
 
- Protected 成员函数 继承自 ast::Object
 Object (const Object &obj)
 
Objectoperator= (const Object &)
 

详细描述

场景类

场景类用于定义模拟中的场景,包括场景的初始化、运行和结束。

成员函数说明

◆ getEpoch()

errc_t ast::Scenario::getEpoch ( TimePoint & epoch) const

获取场景历元时间

参数
epoch场景历元时间
返回
errc_t 错误码

◆ getEpochHandle()

SharedPtr< EventTime > & ast::Scenario::getEpochHandle ( )
inline

获取场景历元时间

返回
SharedPtr<EventTime>& 场景历元时间句柄

◆ getInterval()

errc_t ast::Scenario::getInterval ( TimeInterval & interval) const

获取场景时间间隔

参数
interval场景时间间隔
返回
errc_t 错误码

◆ getIntervalHandle()

SharedPtr< EventInterval > & ast::Scenario::getIntervalHandle ( )

获取场景时间间隔

返回
SharedPtr<EventInterval>& 场景时间间隔句柄

◆ getName()

const std::string & ast::Scenario::getName ( ) const
inlineoverridevirtual

获取对象的名称

重载 ast::Object .

◆ setEpoch() [1/2]

void ast::Scenario::setEpoch ( const TimePoint & epoch)

设置场景历元时间

参数
epoch场景历元时间

◆ setEpoch() [2/2]

void ast::Scenario::setEpoch ( EventTime * epoch)

设置场景历元时间

参数
epoch场景历元时间

◆ setInterval() [1/2]

void ast::Scenario::setInterval ( const TimeInterval & interval)

设置场景时间间隔

参数
interval场景时间间隔

◆ setInterval() [2/2]

void ast::Scenario::setInterval ( EventInterval * interval)

设置场景时间间隔

参数
interval场景时间间隔

◆ setName()

void ast::Scenario::setName ( StringView name)
inlineoverridevirtual

设置对象的名称

参数
name对象名称

实现了 ast::Object.


该类的文档由以下文件生成: