b311480e |
1 | // Created on: 2003-01-28 |
2 | // Created by: data exchange team |
973c2be1 |
3 | // Copyright (c) 2003-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
b311480e |
15 | |
7fd59977 |
16 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2 |
7fd59977 |
17 | |
42cf5bc1 |
18 | #include <Standard_Transient.hxx> |
ec357c5c |
19 | #include <StepBasic_Product.hxx> |
ec357c5c |
20 | #include <StepBasic_ProductDefinition.hxx> |
42cf5bc1 |
21 | #include <StepBasic_ProductDefinitionFormation.hxx> |
22 | #include <StepBasic_ProductOrFormationOrDefinition.hxx> |
7fd59977 |
23 | |
24 | //======================================================================= |
25 | //function : StepBasic_ProductOrFormationOrDefinition |
26 | //purpose : |
27 | //======================================================================= |
7fd59977 |
28 | StepBasic_ProductOrFormationOrDefinition::StepBasic_ProductOrFormationOrDefinition () |
29 | { |
30 | } |
31 | |
32 | //======================================================================= |
33 | //function : CaseNum |
34 | //purpose : |
35 | //======================================================================= |
36 | |
37 | Standard_Integer StepBasic_ProductOrFormationOrDefinition::CaseNum (const Handle(Standard_Transient)& ent) const |
38 | { |
39 | if (ent.IsNull()) return 0; |
40 | if (ent->IsKind(STANDARD_TYPE(StepBasic_Product))) return 1; |
41 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionFormation))) return 2; |
42 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 3; |
43 | return 0; |
44 | } |
45 | |
46 | //======================================================================= |
47 | //function : Product |
48 | //purpose : |
49 | //======================================================================= |
50 | |
51 | Handle(StepBasic_Product) StepBasic_ProductOrFormationOrDefinition::Product () const |
52 | { |
53 | return Handle(StepBasic_Product)::DownCast(Value()); |
54 | } |
55 | |
56 | //======================================================================= |
57 | //function : ProductDefinitionFormation |
58 | //purpose : |
59 | //======================================================================= |
60 | |
61 | Handle(StepBasic_ProductDefinitionFormation) StepBasic_ProductOrFormationOrDefinition::ProductDefinitionFormation () const |
62 | { |
63 | return Handle(StepBasic_ProductDefinitionFormation)::DownCast(Value()); |
64 | } |
65 | |
66 | //======================================================================= |
67 | //function : ProductDefinition |
68 | //purpose : |
69 | //======================================================================= |
70 | |
71 | Handle(StepBasic_ProductDefinition) StepBasic_ProductOrFormationOrDefinition::ProductDefinition () const |
72 | { |
73 | return Handle(StepBasic_ProductDefinition)::DownCast(Value()); |
74 | } |