|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <PCKParser.hpp>
类 ast::PCKParser 继承关系图:Public 成员函数 | |
| PCKParser (StringView filepath) | |
| errc_t | getNext (BKVItemView &item) |
| errc_t | readData (KernelPool &kernelPool) |
Public 成员函数 继承自 ast::BaseParser | |
| 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 |
Protected 属性 | |
| std::vector< char > | keyBuffer_ |
| std::string | valueBuffer_ |
| bool | inDataBlock_ {false} |
Protected 属性 继承自 ast::BaseParser | |
| FILE * | file_ {nullptr} |
| bool | fileBorrowed_ {false} |
| std::vector< char > | lineBuffer_ |
SPICE文本内核文件解析器(parser for SPICE text kernel file)
| errc_t ast::PCKParser::getNext | ( | BKVItemView & | item | ) |
获取下一个键值对项
| item | 输出参数,用于存储获取到的键值对项 |
| errc_t ast::PCKParser::readData | ( | KernelPool & | kernelPool | ) |
读取SPICE内核文件数据
| kernelPool | 输出参数,用于存储读取到的SPICE内核数据 |