7fd59977 |
1 | // File: IFSelect_SignAncestor.cxx |
2 | // Created: Wed Feb 17 17:22:38 1999 |
3 | // Author: Pavel DURANDIN |
4 | // <pdn@friendox.nnov.matra-dtv.fr> |
5 | |
6 | |
7 | #include <IFSelect_SignAncestor.ixx> |
8 | #include <Standard_Type.hxx> |
9 | #include <Interface_Macros.hxx> |
10 | |
11 | IFSelect_SignAncestor::IFSelect_SignAncestor (const Standard_Boolean nopk) |
12 | : IFSelect_SignType (nopk) { } |
13 | |
14 | Standard_Boolean IFSelect_SignAncestor::Matches(const Handle(Standard_Transient)& ent, |
15 | const Handle(Interface_InterfaceModel)& model, |
16 | const TCollection_AsciiString& text, |
17 | const Standard_Boolean exact) const |
18 | { |
19 | if (ent.IsNull()) return Standard_False; |
20 | DeclareAndCast(Standard_Type,atype,ent); |
21 | if (atype.IsNull()) atype = ent->DynamicType(); |
22 | return atype->SubType(text.ToCString()); |
23 | } |
24 | |