Vuo 2.4.4
Loading...
Searching...
No Matches
VuoCompilerPortClass.cc
Go to the documentation of this file.
1
11#include "VuoStringUtilities.hh"
12
21
26{
27 json_object_put(details);
28}
29
40void VuoCompilerPortClass::setDetails(struct json_object *details)
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}