summaryrefslogtreecommitdiff
path: root/src/StepBasic/StepBasic_RoleSelect.cxx
blob: bc62401cbad1a2813366bbe840d9c138d01610c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
// File:	StepBasic_RoleSelect.cxx
// Created:	Wed May 10 15:09:05 2000 
// Author:	Andrey BETENEV
// Generator:	ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
// Copyright:	Matra Datavision 2000

#include <StepBasic_RoleSelect.ixx>

//=======================================================================
//function : StepBasic_RoleSelect
//purpose  : 
//=======================================================================

StepBasic_RoleSelect::StepBasic_RoleSelect ()
{
}

//=======================================================================
//function : CaseNum
//purpose  : 
//=======================================================================

Standard_Integer StepBasic_RoleSelect::CaseNum (const Handle(Standard_Transient)& ent) const
{
  if (ent.IsNull()) return 0;
  if (ent->IsKind(STANDARD_TYPE(StepBasic_ActionAssignment))) return 1;
  if (ent->IsKind(STANDARD_TYPE(StepBasic_ActionRequestAssignment))) return 2;
  if (ent->IsKind(STANDARD_TYPE(StepBasic_ApprovalAssignment))) return 3;
  if (ent->IsKind(STANDARD_TYPE(StepBasic_ApprovalDateTime))) return 4;
  if (ent->IsKind(STANDARD_TYPE(StepBasic_CertificationAssignment))) return 5;
  if (ent->IsKind(STANDARD_TYPE(StepBasic_ContractAssignment))) return 6;
  if (ent->IsKind(STANDARD_TYPE(StepBasic_DocumentReference))) return 7;
  if (ent->IsKind(STANDARD_TYPE(StepBasic_EffectivityAssignment))) return 8;
  if (ent->IsKind(STANDARD_TYPE(StepBasic_GroupAssignment))) return 9;
  if (ent->IsKind(STANDARD_TYPE(StepBasic_NameAssignment))) return 10;
  if (ent->IsKind(STANDARD_TYPE(StepBasic_SecurityClassificationAssignment))) return 11;
  return 0;
}

//=======================================================================
//function : ActionAssignment
//purpose  : 
//=======================================================================

Handle(StepBasic_ActionAssignment) StepBasic_RoleSelect::ActionAssignment () const
{
  return Handle(StepBasic_ActionAssignment)::DownCast(Value());
}

//=======================================================================
//function : ActionRequestAssignment
//purpose  : 
//=======================================================================

Handle(StepBasic_ActionRequestAssignment) StepBasic_RoleSelect::ActionRequestAssignment () const
{
  return Handle(StepBasic_ActionRequestAssignment)::DownCast(Value());
}

//=======================================================================
//function : ApprovalAssignment
//purpose  : 
//=======================================================================

Handle(StepBasic_ApprovalAssignment) StepBasic_RoleSelect::ApprovalAssignment () const
{
  return Handle(StepBasic_ApprovalAssignment)::DownCast(Value());
}

//=======================================================================
//function : ApprovalDateTime
//purpose  : 
//=======================================================================

Handle(StepBasic_ApprovalDateTime) StepBasic_RoleSelect::ApprovalDateTime () const
{
  return Handle(StepBasic_ApprovalDateTime)::DownCast(Value());
}

//=======================================================================
//function : CertificationAssignment
//purpose  : 
//=======================================================================

Handle(StepBasic_CertificationAssignment) StepBasic_RoleSelect::CertificationAssignment () const
{
  return Handle(StepBasic_CertificationAssignment)::DownCast(Value());
}

//=======================================================================
//function : ContractAssignment
//purpose  : 
//=======================================================================

Handle(StepBasic_ContractAssignment) StepBasic_RoleSelect::ContractAssignment () const
{
  return Handle(StepBasic_ContractAssignment)::DownCast(Value());
}

//=======================================================================
//function : DocumentReference
//purpose  : 
//=======================================================================

Handle(StepBasic_DocumentReference) StepBasic_RoleSelect::DocumentReference () const
{
  return Handle(StepBasic_DocumentReference)::DownCast(Value());
}

//=======================================================================
//function : EffectivityAssignment
//purpose  : 
//=======================================================================

Handle(StepBasic_EffectivityAssignment) StepBasic_RoleSelect::EffectivityAssignment () const
{
  return Handle(StepBasic_EffectivityAssignment)::DownCast(Value());
}

//=======================================================================
//function : GroupAssignment
//purpose  : 
//=======================================================================

Handle(StepBasic_GroupAssignment) StepBasic_RoleSelect::GroupAssignment () const
{
  return Handle(StepBasic_GroupAssignment)::DownCast(Value());
}

//=======================================================================
//function : NameAssignment
//purpose  : 
//=======================================================================

Handle(StepBasic_NameAssignment) StepBasic_RoleSelect::NameAssignment () const
{
  return Handle(StepBasic_NameAssignment)::DownCast(Value());
}

//=======================================================================
//function : SecurityClassificationAssignment
//purpose  : 
//=======================================================================

Handle(StepBasic_SecurityClassificationAssignment) StepBasic_RoleSelect::SecurityClassificationAssignment () const
{
  return Handle(StepBasic_SecurityClassificationAssignment)::DownCast(Value());
}