Vuo
2.3.2
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);
22
23
if
(type)
24
{
25
VuoCompilerInputDataClass
*dataClass =
new
VuoCompilerInputDataClass
(
""
);
26
dataClass->
setVuoType
(type);
27
portClass->
setDataClass
(dataClass);
28
}
29
30
return
static_cast<
VuoCompilerInputEventPort
*
>
( portClass->
newPort
() );
31
}
32
36
VuoCompilerInputEventPort::VuoCompilerInputEventPort
(
VuoPort
* basePort)
37
:
VuoCompilerEventPort
(basePort)
38
{
39
}
40
44
VuoCompilerInputData
*
VuoCompilerInputEventPort::getData
(
void
)
45
{
46
return
static_cast<
VuoCompilerInputData
*
>
(
data
);
47
}
Generated on Sat Jun 19 2021 10:17:42 for Vuo by
1.9.1