🛰️航天仿真算法库 SpaceAST 0.3.1
载入中...
搜索中...
未找到
AstLoader

详细描述

类

class  ast::TimelinePrefs
 

函数

errc_t ast::aLoadTimeLinePrefs (StringView filepath, TimelinePrefs &prefs)
 
errc_t ast::aLoadTimeLinePrefs (XMLNode &root, TimelinePrefs &prefs)
 
errc_t ast::aLoadReportStyle (StringView filepath, ReportStyle &report)
 
errc_t ast::aLoadReportStyle (BKVParser &parser, ReportStyle &report)
 

函数说明

◆ aLoadReportStyle() [1/2]

AST_LOADER_API errc_t ast::aLoadReportStyle ( BKVParser & parser,
ReportStyle & report )

从已打开的 BKVParser 加载报表样式

参数
parser已定位到 ReportStyle 块内部的 BKVParser
report[out] 报表样式数据
返回
错误码

◆ aLoadReportStyle() [2/2]

AST_LOADER_API errc_t ast::aLoadReportStyle ( StringView filepath,
ReportStyle & report )

从文件路径加载报表样式

从文件加载报表样式

参数
filepath文件路径(.rst 或 .rsg 文件)
report[out] 报表样式数据
返回
错误码

◆ aLoadTimeLinePrefs() [1/2]

AST_LOADER_API errc_t ast::aLoadTimeLinePrefs ( StringView filepath,
TimelinePrefs & prefs )

从文件路径或场景路径加载时间线视图偏好

从 XML 文件加载时间线视图偏好

入参有两种形式:

  • 直接给出 TimelinePrefs.xml,则解析该文件;
  • 给出场景文件(.sc)或场景目录,则先定位到场景文件,再按约定取其同名的 *TimelinePrefs.xml(Scenario1.sc -> Scenario1TimelinePrefs.xml)。
参数
filepath文件路径(*TimelinePrefs.xml)
[out]prefs时间线偏好数据
返回
错误码

◆ aLoadTimeLinePrefs() [2/2]

AST_LOADER_API errc_t ast::aLoadTimeLinePrefs ( XMLNode & root,
TimelinePrefs & prefs )

从已解析的 XML 根节点加载时间线视图偏好

参数
root已解析的 XML 根节点(应为 TimelineLine_Prefs 元素)
[out]prefs时间线偏好数据
返回
错误码