Add missing is_a(PVStructurePtr) implementations

This commit is contained in:
Dave Hickin
2016-04-12 03:19:42 +01:00
parent 8794d5b6c0
commit ff4b88754f
16 changed files with 79 additions and 0 deletions

View File

@@ -116,6 +116,11 @@ bool NTUnion::is_a(StructureConstPtr const & structure)
return NTUtils::is_a(structure->getID(), URI);
}
bool NTUnion::is_a(PVStructurePtr const & pvStructure)
{
return is_a(pvStructure->getStructure());
}
bool NTUnion::isCompatible(StructureConstPtr const &structure)
{
if (structure.get() == 0) return false;