AuboStudio SDK
0.6.3
function.h
浏览该文件的文档.
1
#ifndef AUBO_SCOPE_FUNCTION_H
2
#define AUBO_SCOPE_FUNCTION_H
3
4
#include <vector>
5
#include <
aubo_caps/domain/extension_info.h
>
6
7
namespace
arcs
{
8
namespace
aubo_scope
{
9
ARCS_CLASS_FORWARD
(
Function
);
10
11
/**
12
* \chinese
13
* 函数接口
14
* 表示在表达式编辑器中显示的函数。
15
*
16
* 另请参见 {@link FunctionModel}。
17
* \endchinese
18
* \english
19
* Function
20
* Represents a function shown in the Expression Editor.
21
*
22
* See also {@link FunctionModel}.
23
* \endenglish
24
*/
25
class
ARCS_ABI_EXPORT
Function
26
{
27
public
:
28
Function
(
Function
&f);
29
Function
(
Function
&&f);
30
~Function
();
31
32
/**
33
* \chinese
34
* 获取函数名称
35
* @return 函数名称。
36
* \endchinese
37
* \english
38
* Returns the name of the function.
39
* @return The name of the function.
40
* \endenglish
41
*/
42
std::string
getName
();
43
44
/**
45
* \chinese
46
* 获取函数参数列表
47
* @return 函数参数列表。
48
* \endchinese
49
* \english
50
* Returns a list of the arguments of the function.
51
* @return A list of the arguments of the function.
52
* \endenglish
53
*/
54
std::vector<std::string>
getArguments
();
55
56
/**
57
* \chinese
58
* 获取将此函数添加/贡献到AuboScope的AuboCap信息。
59
* @return 此函数的AuboCap信息。
60
* \endchinese
61
* \english
62
* Get information about the AuboCap that added/contributed this function
63
* to AuboScope.
64
*
65
* @return AuboCap information for this function.
66
* \endenglish
67
*/
68
AuboCapInfoPtr
getContributorInfo
();
69
70
private
:
71
friend
class
DataSwitch
;
72
Function
();
73
void
*
d_
{
nullptr
};
74
};
75
76
}
// namespace aubo_scope
77
}
// namespace arcs
78
79
#endif
// AUBO_SCOPE_FUNCTION_H
ARCS_ABI_EXPORT
#define ARCS_ABI_EXPORT
定义
class_forward.h:16
ARCS_CLASS_FORWARD
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
定义
class_forward.h:68
arcs::aubo_scope::Function
\chinese 函数接口 表示在表达式编辑器中显示的函数。
定义
function.h:26
arcs::aubo_scope::Function::Function
Function(Function &&f)
arcs::aubo_scope::Function::getArguments
std::vector< std::string > getArguments()
\chinese 获取函数参数列表
arcs::aubo_scope::Function::Function
Function(Function &f)
arcs::aubo_scope::Function::DataSwitch
friend class DataSwitch
定义
function.h:71
arcs::aubo_scope::Function::d_
void * d_
定义
function.h:73
arcs::aubo_scope::Function::Function
Function()
arcs::aubo_scope::Function::~Function
~Function()
arcs::aubo_scope::Function::getName
std::string getName()
\chinese 获取函数名称
arcs::aubo_scope::Function::getContributorInfo
AuboCapInfoPtr getContributorInfo()
\chinese 获取将此函数添加/贡献到AuboScope的AuboCap信息。
extension_info.h
arcs::aubo_scope
定义
contribution_provider.h:8
arcs
定义
contribution_provider.h:7
include
aubo_caps
domain
function
function.h
制作者
1.16.1