🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ReportWriter.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "ReportStyle.hpp"
25#include "AstCore/TimeInterval.hpp"
26
27#include <cstdio>
28
29AST_NAMESPACE_BEGIN
30
31// 前置声明
32class Object;
33
40{
41public:
42 bool useObjectInterval_{true};
43 TimeInterval interval_{};
44};
45
51AST_REPORT_API errc_t aWriteReport(const ReportStyle& report, const Object* object, FILE* file, const ReportGenerateOptions& options = ReportGenerateOptions{});
52
55AST_NAMESPACE_END
报表样式定义
对象基类,继承自该类的对象可以使用运行时类型信息相关功能,实现强弱引用计数、运行时元信息(属性访问、序列化等)等基础功能
定义 Object.hpp:95
定义 ReportWriter.hpp:40
报表样式
定义 ReportStyle.hpp:44
时间区间
定义 TimeInterval.hpp:60
errc_t aWriteReport(const ReportStyle &report, const Object *object, FILE *file, const ReportGenerateOptions &options)
根据报表模板生成对象的数据报告
定义 ReportWriter.cpp:131