🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
CommandAPI.hpp
浏览该文件的文档.
1
20
21
#pragma once
22
23
#include "AstGlobal.h"
24
#include <vector>
25
#include <string>
26
27
AST_NAMESPACE_BEGIN
28
35
// class CommandResult: public std::vector<std::string>{};
36
class
CommandResult
:
public
std::vector<std::string>
37
{
38
public
:
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
49
AST_CMD_API errc_t
aExecuteCommand
(
StringView
cmd);
50
55
AST_CMD_API errc_t
aExecuteCommand
(
StringView
cmd,
CommandResult
& result);
56
57
60
AST_NAMESPACE_END
61
ast::CommandResult
定义
CommandAPI.hpp:37
ast::StringViewBasic< char >
ast::aExecuteCommand
errc_t aExecuteCommand(StringView cmd)
执行命令
定义
CommandAPI.cpp:40
src
AstCmd
CommandAPI.hpp
制作者
1.12.0