🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
CommandAPI.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include <vector>
25#include <string>
26
27AST_NAMESPACE_BEGIN
28
35// class CommandResult: public std::vector<std::string>{};
36class CommandResult: public std::vector<std::string>
37{
38public:
39 using Parent = std::vector<std::string>;
40 using Parent::Parent;
41 using Parent::operator=;
42
43 AST_CMD_API void debugPrint() const;
44};
45
49AST_CMD_API errc_t aExecuteCommand(StringView cmd);
50
55AST_CMD_API errc_t aExecuteCommand(StringView cmd, CommandResult& result);
56
57
60AST_NAMESPACE_END
61
定义 CommandAPI.hpp:37
errc_t aExecuteCommand(StringView cmd)
执行命令
定义 CommandAPI.cpp:40