В документации дан шаблон для создания нода:
Нажмите сюда, чтобы узнать больше
|
Код
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include "stdafx.h"
#include "FlowBaseNode.h"
class CFlowNode_MyName : public CFlowBaseNode
{
public:
CFlowNode_MyName( SActivationInfo * pActInfo )
{
};
virtual void GetConfiguration( SFlowNodeConfig& config )
{
static const SInputPortConfig in_config[] = {
{0}
};
static const SOutputPortConfig out_config[] = {
{0}
};
config.sDescription = _HELP( "A description of this flow node" );
config.pInputPorts = in_config;
config.pOutputPorts = out_config;
config.nFlags = 0;
}
virtual void ProcessEvent( EFlowEvent event, SActivationInfo * pActInfo )
{
switch (event)
{
};
}
};
|
и показано как сделать выход:
Нажмите сюда, чтобы узнать больше
|
Код
|
1
2
3
4
|
static const SOutputPortConfig out_config[] = {
OutputPortConfig<int>("alertness", _HELP("useful help text")),
{0}
};
|
если я правильно понял, чтобы сделать несколько выходов, нужно сделать так?!
Нажмите сюда, чтобы узнать больше
|
Код
|
1
2
3
4
5
6
|
static const SOutputPortConfig out_config[] = {
OutputPortConfig<int>("alertness", _HELP("useful help text")),
OutputPortConfig<int>("output_2", _HELP("useful help text")),
OutputPortConfig<int>("output_3", _HELP("useful help text")),
{0}
};
|
И что означает {0} ?
И ещё столкнулся с тем, что при подключении #include "FlowBaseNode.h" его нет!
Как быть?