1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
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
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.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
15 #include <Interface_Macros.hxx>
16 #include <Standard_Transient.hxx>
17 #include <StepAP214_AutoDesignDateAndPersonItem.hxx>
18 #include <StepAP214_AutoDesignDocumentReference.hxx>
19 #include <StepAP214_AutoDesignOrganizationAssignment.hxx>
20 #include <StepBasic_Product.hxx>
21 #include <StepBasic_ProductDefinitionFormation.hxx>
22 #include <StepBasic_ProductDefinitionRelationship.hxx>
23 #include <StepBasic_ProductDefinitionWithAssociatedDocuments.hxx>
24 #include <StepRepr_ExternallyDefinedRepresentation.hxx>
25 #include <StepRepr_Representation.hxx>
27 StepAP214_AutoDesignDateAndPersonItem::StepAP214_AutoDesignDateAndPersonItem () { }
29 Standard_Integer StepAP214_AutoDesignDateAndPersonItem::CaseNum(const Handle(Standard_Transient)& ent) const
31 if (ent.IsNull()) return 0;
32 if (ent->IsKind(STANDARD_TYPE(StepAP214_AutoDesignOrganizationAssignment))) return 1;
33 if (ent->IsKind(STANDARD_TYPE(StepBasic_Product))) return 2;
34 if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 3;
35 if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionFormation))) return 4;
36 if (ent->IsKind(STANDARD_TYPE(StepRepr_Representation))) return 5;
37 if (ent->IsKind(STANDARD_TYPE(StepAP214_AutoDesignDocumentReference))) return 6;
38 if (ent->IsKind(STANDARD_TYPE(StepRepr_ExternallyDefinedRepresentation))) return 7;
39 if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionRelationship))) return 8;
40 if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionWithAssociatedDocuments))) return 9;
44 Handle(StepAP214_AutoDesignOrganizationAssignment) StepAP214_AutoDesignDateAndPersonItem::AutoDesignOrganizationAssignment () const
45 { return GetCasted(StepAP214_AutoDesignOrganizationAssignment,Value()); }
47 Handle(StepBasic_Product) StepAP214_AutoDesignDateAndPersonItem::Product () const
48 { return GetCasted(StepBasic_Product,Value()); }
50 Handle(StepBasic_ProductDefinition) StepAP214_AutoDesignDateAndPersonItem::ProductDefinition () const
51 { return GetCasted(StepBasic_ProductDefinition,Value()); }
53 Handle(StepBasic_ProductDefinitionFormation) StepAP214_AutoDesignDateAndPersonItem::ProductDefinitionFormation () const
54 { return GetCasted(StepBasic_ProductDefinitionFormation,Value()); }
56 Handle(StepRepr_Representation) StepAP214_AutoDesignDateAndPersonItem::Representation () const
57 { return GetCasted(StepRepr_Representation,Value()); }
59 Handle(StepAP214_AutoDesignDocumentReference) StepAP214_AutoDesignDateAndPersonItem::AutoDesignDocumentReference () const
60 { return GetCasted(StepAP214_AutoDesignDocumentReference,Value()); }
62 Handle(StepRepr_ExternallyDefinedRepresentation) StepAP214_AutoDesignDateAndPersonItem::ExternallyDefinedRepresentation () const
63 { return GetCasted(StepRepr_ExternallyDefinedRepresentation,Value()); }
65 Handle(StepBasic_ProductDefinitionRelationship) StepAP214_AutoDesignDateAndPersonItem::ProductDefinitionRelationship () const
66 { return GetCasted(StepBasic_ProductDefinitionRelationship,Value()); }
68 Handle(StepBasic_ProductDefinitionWithAssociatedDocuments) StepAP214_AutoDesignDateAndPersonItem::ProductDefinitionWithAssociatedDocuments () const
69 { return GetCasted(StepBasic_ProductDefinitionWithAssociatedDocuments,Value()); }