Vuo
2.0.0
compiler
VuoCompilerInputEventPort.cc
Go to the documentation of this file.
1
10
#include "
VuoCompilerInputEventPort.hh
"
11
#include "
VuoCompilerInputEventPortClass.hh
"
12
#include "
VuoCompilerInputDataClass.hh
"
13
#include "
VuoCompilerType.hh
"
14
#include "
VuoType.hh
"
15
19
VuoCompilerInputEventPort
*
VuoCompilerInputEventPort::newPort
(
string
name,
VuoType
*type)
20
{
21
VuoCompilerInputEventPortClass
*portClass =
new
VuoCompilerInputEventPortClass
(name,
nullptr
);
22
23
if
(type)
24
{
25
Type *secondType =
nullptr
;
26
type->
getCompiler
()->
getFunctionParameterType
(&secondType);
27
VuoCompilerInputDataClass
*dataClass =
new
VuoCompilerInputDataClass
(
""
,
nullptr
, secondType);
28
dataClass->
setVuoType
(type);
29
portClass->
setDataClass
(dataClass);
30
}
31
32
return
static_cast<VuoCompilerInputEventPort *>( portClass->
newPort
() );
33
}
34
38
VuoCompilerInputEventPort::VuoCompilerInputEventPort
(
VuoPort
* basePort)
39
:
VuoCompilerEventPort
(basePort)
40
{
41
}
42
46
VuoCompilerInputData
*
VuoCompilerInputEventPort::getData
(
void
)
47
{
48
return
static_cast<VuoCompilerInputData *>(
data
);
49
}
Generated on Tue Oct 22 2019 18:07:47 for Vuo by
1.8.16