Vuo
2.3.2
compiler
VuoCompilerPortClass.cc
Go to the documentation of this file.
1
10
#include "
VuoCompilerPortClass.hh
"
11
#include "
VuoStringUtilities.hh
"
12
16
VuoCompilerPortClass::VuoCompilerPortClass
(
string
name,
VuoPortClass::PortType
portType) :
17
VuoCompilerNodeArgumentClass
(name, portType)
18
{
19
details
= NULL;
20
}
21
25
VuoCompilerPortClass::~VuoCompilerPortClass
(
void
)
26
{
27
json_object_put(
details
);
28
}
29
40
void
VuoCompilerPortClass::setDetails
(
struct
json_object
*details)
41
{
42
this->details =
details
;
43
}
44
48
json_object
*
VuoCompilerPortClass::getDetails
(
void
)
49
{
50
return
details
;
51
}
52
56
string
VuoCompilerPortClass::getDisplayName
(
void
)
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
71
return
VuoStringUtilities::expandCamelCase
(name);
72
}
Generated on Sat Jun 19 2021 10:17:42 for Vuo by
1.9.1