|
|
| SPKParser (StringView filepath) |
| |
|
errc_t | parse (StringView filepath) |
| |
|
errc_t | parse () |
| |
| errc_t | getPosVelNative (double et, int target, Vector3d &pos, Vector3d &vel) const |
| |
| errc_t | getPosNative (double et, int target, Vector3d &pos) const |
| |
| const SPK_Descriptor * | findSpkDescriptor (int target, double et) const |
| |
| errc_t | getStateNative (double et, int target, Vector3d &pos, Vector3d *vel) const |
| |
|
const std::vector< SPK_Descriptor > & | getDescriptors () const |
| |
|
| DAFParser (StringView filepath) |
| |
| errc_t | parse () |
| |
| errc_t | parse (StringView filepath) |
| |
| bool | isValidFile () const |
| |
| size_t | readRecord (int recordIndex, void *buffer, size_t size) const |
| |
| size_t | readFileRecord (void *buffer, size_t size) const |
| |
| errc_t | getFileRecord (Record &fileRecord) const |
| |
| errc_t | getSummaryRecords (std::vector< Record > &summaryRecords) const |
| |
| errc_t | getFileRecord (int &nd, int &ni, int &fward, int &bward, int &free) const |
| |
| errc_t | getComment (std::string &comment) const |
| |
| errc_t | getComment (std::vector< std::string > &comments) const |
| |
| void | printComment (std::FILE *fp=stdout) const |
| |
| void | open (StringView filepath) |
| |
|
| BaseParser (StringView filepath) |
| |
| void | open (StringView filepath) |
| |
| bool | isOpen () const |
| |
| void | close () |
| |
| void | seek (std::streamoff pos, std::ios::seekdir dir) |
| |
| std::streamoff | tell () |
| |
| bool | eof () const |
| |
| size_t | read (void *buffer, size_t size, size_t pos) const |
| |
| StringView | getLineWithNewline () |
| |
| StringView | getLine () |
| |
| StringView | getLineTrim () |
| |
| StringView | getLineSkipHashComment () |
| |
| int | getLineNumber () |
| |
| std::string | getFilePath () const |
| |
| void | setBorrowedFile (FILE *file) |
| |
| void | setOwnedFile (FILE *file) |
| |
|
FILE * | getFile () const |
| |
SPICE二进制SPK内核文件解析器(parser for SPICE SPK kernel file)
- 参见
- cspice库里的文档 doc/html/req/spk.html
用于解析SPICE二进制SPK内核文件(.bsp),提供获取目标在指定时刻的原始位置和速度的功能。 “原始”意味着直接返回SPK文件中存储的相对于相应参考系的位置和速度,不进行任何额外的坐标转换。 使用前需通过 SpiceDAFParser::parse() 等方法打开并解析SPK文件
- 警告
- 该类型的单个实例暂不支持多线程并发访问
- 待办事项
- 处理不同类型的SPK数据,目前仅支持类型2