973c2be1 |
1 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
2 | // |
973c2be1 |
3 | // This file is part of Open CASCADE Technology software library. |
b311480e |
4 | // |
d5f74e42 |
5 | // This library is free software; you can redistribute it and/or modify it under |
6 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
7 | // by the Free Software Foundation, with special exception defined in the file |
8 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
9 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
10 | // |
973c2be1 |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
b311480e |
13 | |
42cf5bc1 |
14 | |
7fd59977 |
15 | #include <Interface_Macros.hxx> |
42cf5bc1 |
16 | #include <Standard_Transient.hxx> |
ec357c5c |
17 | #include <StepAP214_AppliedOrganizationAssignment.hxx> |
d658f275 |
18 | #include <StepAP214_AppliedSecurityClassificationAssignment.hxx> |
42cf5bc1 |
19 | #include <StepAP214_OrganizationItem.hxx> |
ec357c5c |
20 | #include <StepBasic_Approval.hxx> |
ec357c5c |
21 | #include <StepBasic_DocumentFile.hxx> |
ec357c5c |
22 | #include <StepBasic_Product.hxx> |
23 | #include <StepBasic_ProductDefinition.hxx> |
24 | #include <StepBasic_ProductDefinitionFormation.hxx> |
25 | #include <StepBasic_ProductDefinitionRelationship.hxx> |
42cf5bc1 |
26 | #include <StepBasic_SecurityClassification.hxx> |
27 | #include <StepRepr_AssemblyComponentUsageSubstitute.hxx> |
28 | #include <StepRepr_MaterialDesignation.hxx> |
ec357c5c |
29 | #include <StepRepr_PropertyDefinition.hxx> |
30 | #include <StepShape_ShapeRepresentation.hxx> |
42cf5bc1 |
31 | #include <StepVisual_MechanicalDesignGeometricPresentationRepresentation.hxx> |
32 | #include <StepVisual_PresentationArea.hxx> |
7fd59977 |
33 | |
34 | StepAP214_OrganizationItem::StepAP214_OrganizationItem () { } |
35 | |
36 | Standard_Integer StepAP214_OrganizationItem::CaseNum (const Handle(Standard_Transient)& ent) const |
37 | { |
38 | if (ent.IsNull()) return 0; |
39 | if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedOrganizationAssignment))) return 1; |
40 | if (ent->IsKind(STANDARD_TYPE(StepBasic_Approval))) return 2; |
41 | if (ent->IsKind(STANDARD_TYPE(StepRepr_AssemblyComponentUsageSubstitute))) return 3; |
42 | if (ent->IsKind(STANDARD_TYPE(StepBasic_DocumentFile))) return 4; |
43 | if (ent->IsKind(STANDARD_TYPE(StepRepr_MaterialDesignation))) return 5; |
44 | if (ent->IsKind(STANDARD_TYPE(StepVisual_MechanicalDesignGeometricPresentationRepresentation))) return 6; |
45 | if (ent->IsKind(STANDARD_TYPE(StepVisual_PresentationArea))) return 7; |
46 | if (ent->IsKind(STANDARD_TYPE(StepBasic_Product))) return 8; |
47 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 9; |
48 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionFormation))) return 10; |
49 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionRelationship))) return 11; |
50 | if (ent->IsKind(STANDARD_TYPE(StepRepr_PropertyDefinition))) return 12; |
51 | if (ent->IsKind(STANDARD_TYPE(StepShape_ShapeRepresentation))) return 13; |
52 | if (ent->IsKind(STANDARD_TYPE(StepBasic_SecurityClassification))) return 14; |
d658f275 |
53 | if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedSecurityClassificationAssignment))) return 15; |
7fd59977 |
54 | return 0; |
55 | } |
56 | |
57 | Handle(StepAP214_AppliedOrganizationAssignment) StepAP214_OrganizationItem::AppliedOrganizationAssignment() const |
58 | { return GetCasted(StepAP214_AppliedOrganizationAssignment,Value()); } |
59 | |
60 | Handle(StepBasic_Approval) StepAP214_OrganizationItem::Approval() const |
61 | { return GetCasted(StepBasic_Approval,Value()); } |
d658f275 |
62 | |
63 | Handle(StepAP214_AppliedSecurityClassificationAssignment) StepAP214_OrganizationItem::AppliedSecurityClassificationAssignment() const |
64 | { return GetCasted(StepAP214_AppliedSecurityClassificationAssignment,Value()); } |