Vuo  2.0.0
VuoCompilerInputEventPort.cc
Go to the documentation of this file.
1 
13 #include "VuoCompilerType.hh"
14 #include "VuoType.hh"
15 
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 
39  : VuoCompilerEventPort(basePort)
40 {
41 }
42 
47 {
48  return static_cast<VuoCompilerInputData *>(data);
49 }