Vuo  2.3.2
VuoCompilerPortClass.cc
Go to the documentation of this file.
1 
10 #include "VuoCompilerPortClass.hh"
11 #include "VuoStringUtilities.hh"
12 
17  VuoCompilerNodeArgumentClass(name, portType)
18 {
19  details = NULL;
20 }
21 
26 {
27  json_object_put(details);
28 }
29 
41 {
42  this->details = details;
43 }
44 
49 {
50  return details;
51 }
52 
57 {
58  VuoPortClass *portClass = getBase();
59 
60  // Look for a name stored within the details of the port class.
61  if (details)
62  {
63  json_object *nameValue = NULL;
64  if (json_object_object_get_ex(details, "name", &nameValue))
65  return json_object_get_string(nameValue);
66  }
67 
68  // Failing that, attempt to format the port's C identifier.
69  string name = portClass->getName();
70 
72 }