1 // Created on: 2003-01-28
2 // Created by: data exchange team
3 // Copyright (c) 2003-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
18 #include <Standard_Transient.hxx>
19 #include <StepBasic_Product.hxx>
20 #include <StepBasic_ProductDefinition.hxx>
21 #include <StepBasic_ProductDefinitionFormation.hxx>
22 #include <StepBasic_ProductOrFormationOrDefinition.hxx>
24 //=======================================================================
25 //function : StepBasic_ProductOrFormationOrDefinition
27 //=======================================================================
28 StepBasic_ProductOrFormationOrDefinition::StepBasic_ProductOrFormationOrDefinition ()
32 //=======================================================================
35 //=======================================================================
37 Standard_Integer StepBasic_ProductOrFormationOrDefinition::CaseNum (const Handle(Standard_Transient)& ent) const
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;
46 //=======================================================================
49 //=======================================================================
51 Handle(StepBasic_Product) StepBasic_ProductOrFormationOrDefinition::Product () const
53 return Handle(StepBasic_Product)::DownCast(Value());
56 //=======================================================================
57 //function : ProductDefinitionFormation
59 //=======================================================================
61 Handle(StepBasic_ProductDefinitionFormation) StepBasic_ProductOrFormationOrDefinition::ProductDefinitionFormation () const
63 return Handle(StepBasic_ProductDefinitionFormation)::DownCast(Value());
66 //=======================================================================
67 //function : ProductDefinition
69 //=======================================================================
71 Handle(StepBasic_ProductDefinition) StepBasic_ProductOrFormationOrDefinition::ProductDefinition () const
73 return Handle(StepBasic_ProductDefinition)::DownCast(Value());