Vuo
2.2.1
base
VuoType.cc
Go to the documentation of this file.
1
10
#include "
VuoType.hh
"
11
#include "
VuoStringUtilities.hh
"
12
13
15
const
string
VuoType::listTypeNamePrefix
=
"VuoList_"
;
16
18
const
string
VuoType::dictionaryTypeNamePrefix
=
"VuoDictionary_"
;
19
20
26
VuoType::VuoType
(
string
typeName)
27
:
VuoBase
<
VuoCompilerType
,void>(
"VuoType"
),
28
VuoModule
(typeName)
29
{
30
}
31
32
VuoType::~VuoType
(
void
)
33
{
34
}
35
39
bool
VuoType::isListTypeName
(
string
typeName)
40
{
41
return
VuoStringUtilities::beginsWith
(typeName,
listTypeNamePrefix
);
42
}
43
47
bool
VuoType::isDictionaryTypeName
(
string
typeName)
48
{
49
return
VuoStringUtilities::beginsWith
(typeName,
dictionaryTypeNamePrefix
);
50
}
51
56
string
VuoType::extractInnermostTypeName
(
string
typeName)
57
{
58
while
(
VuoStringUtilities::beginsWith
(typeName,
listTypeNamePrefix
))
59
typeName =
VuoStringUtilities::substrAfter
(typeName,
listTypeNamePrefix
);
60
61
return
typeName;
62
}
Generated on Wed Dec 30 2020 12:21:24 for Vuo by
1.8.20