AuboStudio SDK  0.6.3
function.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_FUNCTION_H
2#define AUBO_SCOPE_FUNCTION_H
3
4#include <vector>
6
7namespace arcs {
8namespace aubo_scope {
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 */
26{
27public:
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
70private:
71 friend class DataSwitch;
73 void *d_{ nullptr };
74};
75
76} // namespace aubo_scope
77} // namespace arcs
78
79#endif // AUBO_SCOPE_FUNCTION_H
#define ARCS_ABI_EXPORT
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
\chinese 函数接口 表示在表达式编辑器中显示的函数。
std::vector< std::string > getArguments()
\chinese 获取函数参数列表
std::string getName()
\chinese 获取函数名称
AuboCapInfoPtr getContributorInfo()
\chinese 获取将此函数添加/贡献到AuboScope的AuboCap信息。