summaryrefslogtreecommitdiff
path: root/inc/STEPConstruct_AP203Context.hxx
blob: a6cfa22ec58a2274ab93d54dda9bb6959e47fa5a (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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _STEPConstruct_AP203Context_HeaderFile
#define _STEPConstruct_AP203Context_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _Handle_StepBasic_Approval_HeaderFile
#include <Handle_StepBasic_Approval.hxx>
#endif
#ifndef _Handle_StepBasic_DateAndTime_HeaderFile
#include <Handle_StepBasic_DateAndTime.hxx>
#endif
#ifndef _Handle_StepBasic_PersonAndOrganization_HeaderFile
#include <Handle_StepBasic_PersonAndOrganization.hxx>
#endif
#ifndef _Handle_StepBasic_SecurityClassificationLevel_HeaderFile
#include <Handle_StepBasic_SecurityClassificationLevel.hxx>
#endif
#ifndef _Handle_StepBasic_PersonAndOrganizationRole_HeaderFile
#include <Handle_StepBasic_PersonAndOrganizationRole.hxx>
#endif
#ifndef _Handle_StepBasic_DateTimeRole_HeaderFile
#include <Handle_StepBasic_DateTimeRole.hxx>
#endif
#ifndef _Handle_StepBasic_ApprovalRole_HeaderFile
#include <Handle_StepBasic_ApprovalRole.hxx>
#endif
#ifndef _Handle_StepAP203_CcDesignPersonAndOrganizationAssignment_HeaderFile
#include <Handle_StepAP203_CcDesignPersonAndOrganizationAssignment.hxx>
#endif
#ifndef _Handle_StepAP203_CcDesignSecurityClassification_HeaderFile
#include <Handle_StepAP203_CcDesignSecurityClassification.hxx>
#endif
#ifndef _Handle_StepAP203_CcDesignDateAndTimeAssignment_HeaderFile
#include <Handle_StepAP203_CcDesignDateAndTimeAssignment.hxx>
#endif
#ifndef _Handle_StepAP203_CcDesignApproval_HeaderFile
#include <Handle_StepAP203_CcDesignApproval.hxx>
#endif
#ifndef _Handle_StepBasic_ApprovalPersonOrganization_HeaderFile
#include <Handle_StepBasic_ApprovalPersonOrganization.hxx>
#endif
#ifndef _Handle_StepBasic_ApprovalDateTime_HeaderFile
#include <Handle_StepBasic_ApprovalDateTime.hxx>
#endif
#ifndef _Handle_StepBasic_ProductCategoryRelationship_HeaderFile
#include <Handle_StepBasic_ProductCategoryRelationship.hxx>
#endif
#ifndef _Handle_StepShape_ShapeDefinitionRepresentation_HeaderFile
#include <Handle_StepShape_ShapeDefinitionRepresentation.hxx>
#endif
#ifndef _Handle_StepRepr_NextAssemblyUsageOccurrence_HeaderFile
#include <Handle_StepRepr_NextAssemblyUsageOccurrence.hxx>
#endif
class StepBasic_Approval;
class StepBasic_DateAndTime;
class StepBasic_PersonAndOrganization;
class StepBasic_SecurityClassificationLevel;
class StepBasic_PersonAndOrganizationRole;
class StepBasic_DateTimeRole;
class StepBasic_ApprovalRole;
class StepAP203_CcDesignPersonAndOrganizationAssignment;
class StepAP203_CcDesignSecurityClassification;
class StepAP203_CcDesignDateAndTimeAssignment;
class StepAP203_CcDesignApproval;
class StepBasic_ApprovalPersonOrganization;
class StepBasic_ApprovalDateTime;
class StepBasic_ProductCategoryRelationship;
class StepShape_ShapeDefinitionRepresentation;
class STEPConstruct_Part;
class StepRepr_NextAssemblyUsageOccurrence;


//! Maintains context specific for AP203 (required data and <br>
//!          management information such as persons, dates, approvals etc.) <br>
//!          It contains static entities (which can be shared), default <br>
//!          values for person and organisation, and also provides <br>
//!          tool for creating management entities around specific part (SDR). <br>
class STEPConstruct_AP203Context  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  //! Creates tool and fills constant fields <br>
  Standard_EXPORT   STEPConstruct_AP203Context();
  //! Returns default approval entity which <br>
//!          is used when no other data are available <br>
  Standard_EXPORT     Handle_StepBasic_Approval DefaultApproval() ;
  //! Sets default approval <br>
  Standard_EXPORT     void SetDefaultApproval(const Handle(StepBasic_Approval)& app) ;
  //! Returns default date_and_time entity which <br>
//!          is used when no other data are available <br>
  Standard_EXPORT     Handle_StepBasic_DateAndTime DefaultDateAndTime() ;
  //! Sets default date_and_time entity <br>
  Standard_EXPORT     void SetDefaultDateAndTime(const Handle(StepBasic_DateAndTime)& dt) ;
  //! Returns default person_and_organization entity which <br>
//!          is used when no other data are available <br>
  Standard_EXPORT     Handle_StepBasic_PersonAndOrganization DefaultPersonAndOrganization() ;
  //! Sets default person_and_organization entity <br>
  Standard_EXPORT     void SetDefaultPersonAndOrganization(const Handle(StepBasic_PersonAndOrganization)& po) ;
  //! Returns default security_classification_level entity which <br>
//!          is used when no other data are available <br>
  Standard_EXPORT     Handle_StepBasic_SecurityClassificationLevel DefaultSecurityClassificationLevel() ;
  //! Sets default security_classification_level <br>
  Standard_EXPORT     void SetDefaultSecurityClassificationLevel(const Handle(StepBasic_SecurityClassificationLevel)& sc) ;
  
  Standard_EXPORT     Handle_StepBasic_PersonAndOrganizationRole RoleCreator() const;
  
  Standard_EXPORT     Handle_StepBasic_PersonAndOrganizationRole RoleDesignOwner() const;
  
  Standard_EXPORT     Handle_StepBasic_PersonAndOrganizationRole RoleDesignSupplier() const;
  
  Standard_EXPORT     Handle_StepBasic_PersonAndOrganizationRole RoleClassificationOfficer() const;
  
  Standard_EXPORT     Handle_StepBasic_DateTimeRole RoleCreationDate() const;
  
  Standard_EXPORT     Handle_StepBasic_DateTimeRole RoleClassificationDate() const;
  //! Return predefined PersonAndOrganizationRole and DateTimeRole <br>
//!          entities named 'creator', 'design owner', 'design supplier', <br>
//!          'classification officer', 'creation date', 'classification date', <br>
//!          'approver' <br>
  Standard_EXPORT     Handle_StepBasic_ApprovalRole RoleApprover() const;
  //! Takes SDR (part) which brings all standard data around part <br>
//!          (common for AP203 and AP214) and creates all the additional <br>
//!          entities required for AP203 <br>
  Standard_EXPORT     void Init(const Handle(StepShape_ShapeDefinitionRepresentation)& sdr) ;
  //! Takes tool which describes standard data around part <br>
//!          (common for AP203 and AP214) and creates all the additional <br>
//!          entities required for AP203 <br>
  Standard_EXPORT     void Init(const STEPConstruct_Part& SDRTool) ;
  //! Takes NAUO which describes assembly link to component <br>
//!          and creates the security_classification entity associated to <br>
//!          it as required by the AP203 <br>
//! <br>
//!          Instantiated (or existing previously) entities concerned <br>
//!          can be obtained by calls to methods <br>
//!          GetClassificationOfficer(), GetSecurity(), <br>
//!          GetClassificationDate(), GetApproval(), <br>
//!          GetApprover(), GetApprovalDateTime() <br>//! Takes tool which describes standard data around part <br>
//!          (common for AP203 and AP214) and takes from model (or creates <br>
//!          if missing) all the additional entities required by AP203 <br>
  Standard_EXPORT     void Init(const Handle(StepRepr_NextAssemblyUsageOccurrence)& nauo) ;
  
  Standard_EXPORT     Handle_StepAP203_CcDesignPersonAndOrganizationAssignment GetCreator() const;
  
  Standard_EXPORT     Handle_StepAP203_CcDesignPersonAndOrganizationAssignment GetDesignOwner() const;
  
  Standard_EXPORT     Handle_StepAP203_CcDesignPersonAndOrganizationAssignment GetDesignSupplier() const;
  
  Standard_EXPORT     Handle_StepAP203_CcDesignPersonAndOrganizationAssignment GetClassificationOfficer() const;
  
  Standard_EXPORT     Handle_StepAP203_CcDesignSecurityClassification GetSecurity() const;
  
  Standard_EXPORT     Handle_StepAP203_CcDesignDateAndTimeAssignment GetCreationDate() const;
  
  Standard_EXPORT     Handle_StepAP203_CcDesignDateAndTimeAssignment GetClassificationDate() const;
  
  Standard_EXPORT     Handle_StepAP203_CcDesignApproval GetApproval() const;
  
  Standard_EXPORT     Handle_StepBasic_ApprovalPersonOrganization GetApprover() const;
  
  Standard_EXPORT     Handle_StepBasic_ApprovalDateTime GetApprovalDateTime() const;
  //! Return entities (roots) instantiated for the part by method Init <br>
  Standard_EXPORT     Handle_StepBasic_ProductCategoryRelationship GetProductCategoryRelationship() const;
  //! Clears all fields describing entities specific to each part <br>
  Standard_EXPORT     void Clear() ;
  //! Initializes constant fields (shared entities) <br>
  Standard_EXPORT     void InitRoles() ;
  //! Initializes all missing data which are required for assembly <br>
  Standard_EXPORT     void InitAssembly(const Handle(StepRepr_NextAssemblyUsageOccurrence)& nauo) ;
  //! Initializes ClassificationOfficer and ClassificationDate <br>
//!          entities according to Security entity <br>
  Standard_EXPORT     void InitSecurityRequisites() ;
  //! Initializes Approver and ApprovalDateTime <br>
//!          entities according to Approval entity <br>
  Standard_EXPORT     void InitApprovalRequisites() ;





protected:





private:

  //! Initializes all missing data which are required for part <br>
  Standard_EXPORT     void InitPart(const STEPConstruct_Part& SDRTool) ;


Handle_StepBasic_Approval defApproval;
Handle_StepBasic_DateAndTime defDateAndTime;
Handle_StepBasic_PersonAndOrganization defPersonAndOrganization;
Handle_StepBasic_SecurityClassificationLevel defSecurityClassificationLevel;
Handle_StepBasic_PersonAndOrganizationRole roleCreator;
Handle_StepBasic_PersonAndOrganizationRole roleDesignOwner;
Handle_StepBasic_PersonAndOrganizationRole roleDesignSupplier;
Handle_StepBasic_PersonAndOrganizationRole roleClassificationOfficer;
Handle_StepBasic_DateTimeRole roleCreationDate;
Handle_StepBasic_DateTimeRole roleClassificationDate;
Handle_StepBasic_ApprovalRole roleApprover;
Handle_StepAP203_CcDesignPersonAndOrganizationAssignment myCreator;
Handle_StepAP203_CcDesignPersonAndOrganizationAssignment myDesignOwner;
Handle_StepAP203_CcDesignPersonAndOrganizationAssignment myDesignSupplier;
Handle_StepAP203_CcDesignPersonAndOrganizationAssignment myClassificationOfficer;
Handle_StepAP203_CcDesignSecurityClassification mySecurity;
Handle_StepAP203_CcDesignDateAndTimeAssignment myCreationDate;
Handle_StepAP203_CcDesignDateAndTimeAssignment myClassificationDate;
Handle_StepAP203_CcDesignApproval myApproval;
Handle_StepBasic_ApprovalPersonOrganization myApprover;
Handle_StepBasic_ApprovalDateTime myApprovalDateTime;
Handle_StepBasic_ProductCategoryRelationship myProductCategoryRelationship;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif