Vuo  2.2.1
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 
29 {
30  return name;
31 }
32 
36 void VuoPortClass::setName(string name)
37 {
38  this->name = name;
39 }
40 
45 {
46  return portType;
47 }
48 
53 {
54  return eventBlocking;
55 }
56 
61 {
62  this->eventBlocking = eventBlocking;
63 }
64 
70 {
71  return portAction;
72 }
73 
77 void VuoPortClass::setPortAction(bool portAction)
78 {
79  this->portAction = portAction;
80 }
81 
87 {
88  return defaultEventThrottling;
89 }
90 
96 {
97  this->defaultEventThrottling = eventThrottling;
98 }
99 
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 }