First steps towards a PyQt4 application

This commit is contained in:
Thomas Krijnen
2016-04-17 15:27:05 +02:00
parent 9fedbbff6d
commit 1d1fb6d27a
6 changed files with 480 additions and 93 deletions
+11
View File
@@ -220,4 +220,15 @@ namespace IfcUtil {
const char* const version() {
return IFCOPENSHELL_VERSION;
}
std::string get_supertype(std::string n) {
boost::to_upper(n);
/// @todo: Redo without copy once Parent() function from performance_improvements branch is in.
IfcSchema::Type::Enum t = IfcSchema::Type::FromString(n);
if (IfcSchema::Type::Parent(t) != -1) {
return IfcSchema::Type::ToString(IfcSchema::Type::Parent(t));
} else {
return "";
}
}
%}