7fd59977 |
1 | // File: StepAP203_ContractedItem.cxx |
2 | // Created: Fri Nov 26 16:26:27 1999 |
3 | // Author: Andrey BETENEV |
4 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0 |
5 | // Copyright: Matra Datavision 1999 |
6 | |
7 | #include <StepAP203_ContractedItem.ixx> |
8 | |
9 | //======================================================================= |
10 | //function : StepAP203_ContractedItem |
11 | //purpose : |
12 | //======================================================================= |
13 | |
14 | StepAP203_ContractedItem::StepAP203_ContractedItem () |
15 | { |
16 | } |
17 | |
18 | //======================================================================= |
19 | //function : CaseNum |
20 | //purpose : |
21 | //======================================================================= |
22 | |
23 | Standard_Integer StepAP203_ContractedItem::CaseNum (const Handle(Standard_Transient)& ent) const |
24 | { |
25 | if (ent.IsNull()) return 0; |
26 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionFormation))) return 1; |
27 | return 0; |
28 | } |
29 | |
30 | //======================================================================= |
31 | //function : ProductDefinitionFormation |
32 | //purpose : |
33 | //======================================================================= |
34 | |
35 | Handle(StepBasic_ProductDefinitionFormation) StepAP203_ContractedItem::ProductDefinitionFormation () const |
36 | { |
37 | return Handle(StepBasic_ProductDefinitionFormation)::DownCast(Value()); |
38 | } |