🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ast::PilotCommander类 参考

#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 线程和内嵌控制台共用。

  • 从主线程调用 → 直接执行
  • 从其他线程调用 → marshal 到主线程

构造及析构函数说明

◆ PilotCommander()

ast::PilotCommander::PilotCommander ( PilotSession * session,
PilotRecorder * recorder,
QObject * parent = nullptr )
explicit

构造函数

参数
sessionLLM 对话会话
recorder录制器(可为 nullptr)
parent父对象

成员函数说明

◆ execute()

std::string ast::PilotCommander::execute ( const std::string & line)

执行命令字符串(线程安全)

参数
line命令文本
返回
执行结果输出

该类的文档由以下文件生成: