Vuo
2.2.1
base
VuoPortClass.cc
Go to the documentation of this file.
1
10
#include "
VuoPortClass.hh
"
11
15
VuoPortClass::VuoPortClass
(
string
name,
PortType
portType)
16
:
VuoBase
<
VuoCompilerNodeArgumentClass
,void>(
"VuoPortClass"
)
17
{
18
this->name = name;
19
this->portType = portType;
20
this->eventBlocking =
EventBlocking_None
;
21
this->defaultEventThrottling =
EventThrottling_Enqueue
;
22
this->portAction =
false
;
23
}
24
28
string
VuoPortClass::getName
(
void
)
29
{
30
return
name;
31
}
32
36
void
VuoPortClass::setName
(
string
name)
37
{
38
this->name = name;
39
}
40
44
VuoPortClass::PortType
VuoPortClass::getPortType
(
void
)
45
{
46
return
portType;
47
}
48
52
VuoPortClass::EventBlocking
VuoPortClass::getEventBlocking
(
void
)
53
{
54
return
eventBlocking;
55
}
56
60
void
VuoPortClass::setEventBlocking
(
VuoPortClass::EventBlocking
eventBlocking)
61
{
62
this->eventBlocking = eventBlocking;
63
}
64
69
bool
VuoPortClass::hasPortAction
(
void
)
70
{
71
return
portAction;
72
}
73
77
void
VuoPortClass::setPortAction
(
bool
portAction)
78
{
79
this->portAction = portAction;
80
}
81
86
VuoPortClass::EventThrottling
VuoPortClass::getDefaultEventThrottling
(
void
)
87
{
88
return
defaultEventThrottling;
89
}
90
95
void
VuoPortClass::setDefaultEventThrottling
(
VuoPortClass::EventThrottling
eventThrottling)
96
{
97
this->defaultEventThrottling = eventThrottling;
98
}
99
103
void
VuoPortClass::print
(
void
)
104
{
105
printf(
"VuoPortClass(%p,\"%s\")"
,
this
,
getName
().c_str());
106
if
(
hasCompiler
())
107
printf(
" VuoCompilerPortClass(%p)"
,
getCompiler
());
108
if
(
hasRenderer
())
109
printf(
" VuoRendererPortClass(%p)"
,
getRenderer
());
110
printf(
"\n"
);
111
}
Generated on Wed Dec 30 2020 12:21:24 for Vuo by
1.8.20