|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <PilotCommander.hpp>
类 ast::PilotCommander 继承关系图:信号 | |
| void | outputReady (const QString &text) |
| void | quitRequested () |
Public 成员函数 | |
| PilotCommander (PilotSession *session, PilotRecorder *recorder, QObject *parent=nullptr) | |
| ~PilotCommander () override | |
| std::string | execute (const std::string &line) |
| void | executeAsync (const std::string &line) |
| void | startStdinLoop () |
| void | stop () |
| bool | isRunning () const |
| void | setOutputCallback (std::function< void(const std::string &)> cb) |
静态 Public 成员函数 | |
| static const char * | helpText () |
命令调度器
提供线程安全的命令执行接口,供 stdin 线程和内嵌控制台共用。
|
explicit |
构造函数
| session | LLM 对话会话 |
| recorder | 录制器(可为 nullptr) |
| parent | 父对象 |
| std::string ast::PilotCommander::execute | ( | const std::string & | line | ) |
执行命令字符串(线程安全)
| line | 命令文本 |