Part: Extend Geometry Extension to have a name

This commit is contained in:
Abdullah Tahiri
2019-02-10 17:22:42 +01:00
committed by wmayer
parent a4cb781d81
commit aaea1285d4
8 changed files with 72 additions and 11 deletions

View File

@@ -35,7 +35,14 @@ std::string GeometryIntExtensionPy::representation(void) const
{
std::stringstream str;
long id = getGeometryIntExtensionPtr()->getValue();
str << "<GeometryIntExtension (" << id << ") >";
str << "<GeometryIntExtension (" ;
if(getGeometryIntExtensionPtr()->getName().size()>0)
str << "\'" << getGeometryIntExtensionPtr()->getName() << "\', ";
str << id << ") >";
return str.str();
}