🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ObjectProtocol.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AstUtil/StringView.hpp"
25#include <string>
26
27AST_NAMESPACE_BEGIN
28
34#define _AST_OBJ_CALL static
35
36
38class AST_UTIL_API ObjectProtocol
39{
40public:
46 _AST_OBJ_CALL errc_t setAttrString(ObjectId id, StringView name, StringView value);
47
53 _AST_OBJ_CALL errc_t getAttrString(ObjectId id, StringView name, std::string& value);
54
58 _AST_OBJ_CALL ObjectId newObject(StringView typeName);
59};
60
63AST_NAMESPACE_END
64
65
对象协议
定义 ObjectProtocol.hpp:39