summaryrefslogtreecommitdiff
path: root/src/IFSelect/IFSelect_SignAncestor.cxx
blob: 64ceec9c2df41c5e1902b5abd1b87d5e108be6c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// File:	IFSelect_SignAncestor.cxx
// Created:	Wed Feb 17 17:22:38 1999
// Author:	Pavel DURANDIN
//		<pdn@friendox.nnov.matra-dtv.fr>


#include <IFSelect_SignAncestor.ixx>
#include <Standard_Type.hxx>
#include <Interface_Macros.hxx>

IFSelect_SignAncestor::IFSelect_SignAncestor (const Standard_Boolean nopk) 
     : IFSelect_SignType (nopk) {  }
     
Standard_Boolean IFSelect_SignAncestor::Matches(const Handle(Standard_Transient)& ent,
						const Handle(Interface_InterfaceModel)& model,
						const TCollection_AsciiString& text,
						const Standard_Boolean exact) const
{
  if (ent.IsNull()) return Standard_False;
  DeclareAndCast(Standard_Type,atype,ent);
  if (atype.IsNull()) atype = ent->DynamicType();
  return atype->SubType(text.ToCString());
}