b311480e |
1 | // Created on: 2000-05-10 |
2 | // Created by: Andrey BETENEV |
973c2be1 |
3 | // Copyright (c) 2000-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.1 |
7fd59977 |
17 | |
42cf5bc1 |
18 | #include <Standard_Transient.hxx> |
ec357c5c |
19 | #include <StepBasic_ActionAssignment.hxx> |
20 | #include <StepBasic_ActionRequestAssignment.hxx> |
21 | #include <StepBasic_ApprovalAssignment.hxx> |
22 | #include <StepBasic_ApprovalDateTime.hxx> |
23 | #include <StepBasic_CertificationAssignment.hxx> |
24 | #include <StepBasic_ContractAssignment.hxx> |
25 | #include <StepBasic_DocumentReference.hxx> |
26 | #include <StepBasic_EffectivityAssignment.hxx> |
27 | #include <StepBasic_GroupAssignment.hxx> |
28 | #include <StepBasic_NameAssignment.hxx> |
42cf5bc1 |
29 | #include <StepBasic_RoleSelect.hxx> |
ec357c5c |
30 | #include <StepBasic_SecurityClassificationAssignment.hxx> |
7fd59977 |
31 | |
32 | //======================================================================= |
33 | //function : StepBasic_RoleSelect |
34 | //purpose : |
35 | //======================================================================= |
7fd59977 |
36 | StepBasic_RoleSelect::StepBasic_RoleSelect () |
37 | { |
38 | } |
39 | |
40 | //======================================================================= |
41 | //function : CaseNum |
42 | //purpose : |
43 | //======================================================================= |
44 | |
45 | Standard_Integer StepBasic_RoleSelect::CaseNum (const Handle(Standard_Transient)& ent) const |
46 | { |
47 | if (ent.IsNull()) return 0; |
48 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ActionAssignment))) return 1; |
49 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ActionRequestAssignment))) return 2; |
50 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ApprovalAssignment))) return 3; |
51 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ApprovalDateTime))) return 4; |
52 | if (ent->IsKind(STANDARD_TYPE(StepBasic_CertificationAssignment))) return 5; |
53 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ContractAssignment))) return 6; |
54 | if (ent->IsKind(STANDARD_TYPE(StepBasic_DocumentReference))) return 7; |
55 | if (ent->IsKind(STANDARD_TYPE(StepBasic_EffectivityAssignment))) return 8; |
56 | if (ent->IsKind(STANDARD_TYPE(StepBasic_GroupAssignment))) return 9; |
57 | if (ent->IsKind(STANDARD_TYPE(StepBasic_NameAssignment))) return 10; |
58 | if (ent->IsKind(STANDARD_TYPE(StepBasic_SecurityClassificationAssignment))) return 11; |
59 | return 0; |
60 | } |
61 | |
62 | //======================================================================= |
63 | //function : ActionAssignment |
64 | //purpose : |
65 | //======================================================================= |
66 | |
67 | Handle(StepBasic_ActionAssignment) StepBasic_RoleSelect::ActionAssignment () const |
68 | { |
69 | return Handle(StepBasic_ActionAssignment)::DownCast(Value()); |
70 | } |
71 | |
72 | //======================================================================= |
73 | //function : ActionRequestAssignment |
74 | //purpose : |
75 | //======================================================================= |
76 | |
77 | Handle(StepBasic_ActionRequestAssignment) StepBasic_RoleSelect::ActionRequestAssignment () const |
78 | { |
79 | return Handle(StepBasic_ActionRequestAssignment)::DownCast(Value()); |
80 | } |
81 | |
82 | //======================================================================= |
83 | //function : ApprovalAssignment |
84 | //purpose : |
85 | //======================================================================= |
86 | |
87 | Handle(StepBasic_ApprovalAssignment) StepBasic_RoleSelect::ApprovalAssignment () const |
88 | { |
89 | return Handle(StepBasic_ApprovalAssignment)::DownCast(Value()); |
90 | } |
91 | |
92 | //======================================================================= |
93 | //function : ApprovalDateTime |
94 | //purpose : |
95 | //======================================================================= |
96 | |
97 | Handle(StepBasic_ApprovalDateTime) StepBasic_RoleSelect::ApprovalDateTime () const |
98 | { |
99 | return Handle(StepBasic_ApprovalDateTime)::DownCast(Value()); |
100 | } |
101 | |
102 | //======================================================================= |
103 | //function : CertificationAssignment |
104 | //purpose : |
105 | //======================================================================= |
106 | |
107 | Handle(StepBasic_CertificationAssignment) StepBasic_RoleSelect::CertificationAssignment () const |
108 | { |
109 | return Handle(StepBasic_CertificationAssignment)::DownCast(Value()); |
110 | } |
111 | |
112 | //======================================================================= |
113 | //function : ContractAssignment |
114 | //purpose : |
115 | //======================================================================= |
116 | |
117 | Handle(StepBasic_ContractAssignment) StepBasic_RoleSelect::ContractAssignment () const |
118 | { |
119 | return Handle(StepBasic_ContractAssignment)::DownCast(Value()); |
120 | } |
121 | |
122 | //======================================================================= |
123 | //function : DocumentReference |
124 | //purpose : |
125 | //======================================================================= |
126 | |
127 | Handle(StepBasic_DocumentReference) StepBasic_RoleSelect::DocumentReference () const |
128 | { |
129 | return Handle(StepBasic_DocumentReference)::DownCast(Value()); |
130 | } |
131 | |
132 | //======================================================================= |
133 | //function : EffectivityAssignment |
134 | //purpose : |
135 | //======================================================================= |
136 | |
137 | Handle(StepBasic_EffectivityAssignment) StepBasic_RoleSelect::EffectivityAssignment () const |
138 | { |
139 | return Handle(StepBasic_EffectivityAssignment)::DownCast(Value()); |
140 | } |
141 | |
142 | //======================================================================= |
143 | //function : GroupAssignment |
144 | //purpose : |
145 | //======================================================================= |
146 | |
147 | Handle(StepBasic_GroupAssignment) StepBasic_RoleSelect::GroupAssignment () const |
148 | { |
149 | return Handle(StepBasic_GroupAssignment)::DownCast(Value()); |
150 | } |
151 | |
152 | //======================================================================= |
153 | //function : NameAssignment |
154 | //purpose : |
155 | //======================================================================= |
156 | |
157 | Handle(StepBasic_NameAssignment) StepBasic_RoleSelect::NameAssignment () const |
158 | { |
159 | return Handle(StepBasic_NameAssignment)::DownCast(Value()); |
160 | } |
161 | |
162 | //======================================================================= |
163 | //function : SecurityClassificationAssignment |
164 | //purpose : |
165 | //======================================================================= |
166 | |
167 | Handle(StepBasic_SecurityClassificationAssignment) StepBasic_RoleSelect::SecurityClassificationAssignment () const |
168 | { |
169 | return Handle(StepBasic_SecurityClassificationAssignment)::DownCast(Value()); |
170 | } |