aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--typesystem.cpp33
-rw-r--r--typesystem.h2
2 files changed, 35 insertions, 0 deletions
diff --git a/typesystem.cpp b/typesystem.cpp
index fa9329a3e..837a0e0d0 100644
--- a/typesystem.cpp
+++ b/typesystem.cpp
@@ -2206,6 +2206,39 @@ QString VariantTypeEntry::targetLangPackage() const
return QString();
}
+QString ContainerTypeEntry::typeName() const
+{
+ switch(m_type) {
+ case LinkedListContainer:
+ return "linked-list";
+ case ListContainer:
+ return "list";
+ case StringListContainer:
+ return "string-list";
+ case VectorContainer:
+ return "vector";
+ case StackContainer:
+ return "stack";
+ case QueueContainer:
+ return "queue";
+ case SetContainer:
+ return "set";
+ case MapContainer:
+ return "map";
+ case MultiMapContainer:
+ return "multi-map";
+ case HashContainer:
+ return "hash";
+ case MultiHashContainer:
+ return "multi-hash";
+ case PairContainer:
+ return "pair";
+ case NoContainer:
+ default:
+ return "?";
+ }
+}
+
/*
static void injectCode(ComplexTypeEntry *e,
const char *signature,
diff --git a/typesystem.h b/typesystem.h
index 201b747bd..be2852bd9 100644
--- a/typesystem.h
+++ b/typesystem.h
@@ -1577,6 +1577,8 @@ public:
{
return m_type;
}
+
+ QString typeName() const;
QString targetLangName() const;
QString targetLangPackage() const;
QString qualifiedCppName() const;