1 // Created on: 2000-05-10
2 // Created by: Andrey BETENEV
3 // Copyright (c) 2000-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 #ifndef _StepBasic_RoleSelect_HeaderFile
17 #define _StepBasic_RoleSelect_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_DefineAlloc.hxx>
21 #include <Standard_Handle.hxx>
23 #include <StepData_SelectType.hxx>
24 #include <Standard_Integer.hxx>
25 class Standard_Transient;
26 class StepBasic_ActionAssignment;
27 class StepBasic_ActionRequestAssignment;
28 class StepBasic_ApprovalAssignment;
29 class StepBasic_ApprovalDateTime;
30 class StepBasic_CertificationAssignment;
31 class StepBasic_ContractAssignment;
32 class StepBasic_DocumentReference;
33 class StepBasic_EffectivityAssignment;
34 class StepBasic_GroupAssignment;
35 class StepBasic_NameAssignment;
36 class StepBasic_SecurityClassificationAssignment;
39 //! Representation of STEP SELECT type RoleSelect
40 class StepBasic_RoleSelect : public StepData_SelectType
48 Standard_EXPORT StepBasic_RoleSelect();
50 //! Recognizes a kind of RoleSelect select type
51 //! 1 -> ActionAssignment from StepBasic
52 //! 2 -> ActionRequestAssignment from StepBasic
53 //! 3 -> ApprovalAssignment from StepBasic
54 //! 4 -> ApprovalDateTime from StepBasic
55 //! 5 -> CertificationAssignment from StepBasic
56 //! 6 -> ContractAssignment from StepBasic
57 //! 7 -> DocumentReference from StepBasic
58 //! 8 -> EffectivityAssignment from StepBasic
59 //! 9 -> GroupAssignment from StepBasic
60 //! 10 -> NameAssignment from StepBasic
61 //! 11 -> SecurityClassificationAssignment from StepBasic
63 Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const;
65 //! Returns Value as ActionAssignment (or Null if another type)
66 Standard_EXPORT Handle(StepBasic_ActionAssignment) ActionAssignment() const;
68 //! Returns Value as ActionRequestAssignment (or Null if another type)
69 Standard_EXPORT Handle(StepBasic_ActionRequestAssignment) ActionRequestAssignment() const;
71 //! Returns Value as ApprovalAssignment (or Null if another type)
72 Standard_EXPORT Handle(StepBasic_ApprovalAssignment) ApprovalAssignment() const;
74 //! Returns Value as ApprovalDateTime (or Null if another type)
75 Standard_EXPORT Handle(StepBasic_ApprovalDateTime) ApprovalDateTime() const;
77 //! Returns Value as CertificationAssignment (or Null if another type)
78 Standard_EXPORT Handle(StepBasic_CertificationAssignment) CertificationAssignment() const;
80 //! Returns Value as ContractAssignment (or Null if another type)
81 Standard_EXPORT Handle(StepBasic_ContractAssignment) ContractAssignment() const;
83 //! Returns Value as DocumentReference (or Null if another type)
84 Standard_EXPORT Handle(StepBasic_DocumentReference) DocumentReference() const;
86 //! Returns Value as EffectivityAssignment (or Null if another type)
87 Standard_EXPORT Handle(StepBasic_EffectivityAssignment) EffectivityAssignment() const;
89 //! Returns Value as GroupAssignment (or Null if another type)
90 Standard_EXPORT Handle(StepBasic_GroupAssignment) GroupAssignment() const;
92 //! Returns Value as NameAssignment (or Null if another type)
93 Standard_EXPORT Handle(StepBasic_NameAssignment) NameAssignment() const;
95 //! Returns Value as SecurityClassificationAssignment (or Null if another type)
96 Standard_EXPORT Handle(StepBasic_SecurityClassificationAssignment) SecurityClassificationAssignment() const;
121 #endif // _StepBasic_RoleSelect_HeaderFile