Part:: Geometry container extend hasExtension to type and name

This commit is contained in:
Abdullah Tahiri
2019-02-11 16:21:40 +01:00
committed by wmayer
parent 4d9d3b0c83
commit d8e99c1923
4 changed files with 68 additions and 0 deletions

View File

@@ -276,6 +276,16 @@ bool Geometry::hasExtension(Base::Type type) const
return false;
}
bool Geometry::hasExtension(std::string name) const
{
for( auto ext : extensions) {
if(ext->getName() == name)
return true;
}
return false;
}
const std::weak_ptr<GeometryExtension> Geometry::getExtension(Base::Type type) const
{
for( auto ext : extensions) {