1 #include <Interface_ReportEntity.ixx>
4 //=======================================================================
5 //function : Interface_ReportEntity
7 //=======================================================================
9 Interface_ReportEntity::Interface_ReportEntity
10 (const Handle(Standard_Transient)& unknown)
12 theconcerned = unknown;
17 //=======================================================================
18 //function : Interface_ReportEntity
20 //=======================================================================
22 Interface_ReportEntity::Interface_ReportEntity
23 (const Handle(Interface_Check)& acheck,
24 const Handle(Standard_Transient)& concerned)
27 theconcerned = concerned;
28 thecheck->SetEntity(concerned);
32 //=======================================================================
33 //function : SetContent
35 //=======================================================================
37 void Interface_ReportEntity::SetContent(const Handle(Standard_Transient)& content)
42 // .... CONSULTATION ....
45 //=======================================================================
48 //=======================================================================
50 const Handle(Interface_Check)& Interface_ReportEntity::Check () const
56 //=======================================================================
59 //=======================================================================
61 Handle(Interface_Check)& Interface_ReportEntity::CCheck ()
67 //=======================================================================
68 //function : Concerned
70 //=======================================================================
72 Handle(Standard_Transient) Interface_ReportEntity::Concerned () const
78 //=======================================================================
79 //function : HasContent
81 //=======================================================================
83 Standard_Boolean Interface_ReportEntity::HasContent () const
85 return (!thecontent.IsNull());
89 //=======================================================================
90 //function : HasNewContent
92 //=======================================================================
94 Standard_Boolean Interface_ReportEntity::HasNewContent () const
96 return (!thecontent.IsNull() && thecontent != theconcerned);
100 //=======================================================================
103 //=======================================================================
105 Handle(Standard_Transient) Interface_ReportEntity::Content () const
111 //=======================================================================
114 //=======================================================================
116 Standard_Boolean Interface_ReportEntity::IsError () const
118 return (thecheck->NbFails() > 0);
122 //=======================================================================
123 //function : IsUnknown
125 //=======================================================================
127 Standard_Boolean Interface_ReportEntity::IsUnknown () const
129 return ((thecheck->NbFails() == 0) && (thecheck->NbWarnings() == 0)
130 && (theconcerned == thecontent));