7fd59977 |
1 | // File: RWStepBasic_RWGroupAssignment.cxx |
2 | // Created: Wed May 10 15:09:07 2000 |
3 | // Author: Andrey BETENEV |
4 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1 |
5 | // Copyright: Matra Datavision 2000 |
6 | |
7 | #include <RWStepBasic_RWGroupAssignment.ixx> |
8 | |
9 | //======================================================================= |
10 | //function : RWStepBasic_RWGroupAssignment |
11 | //purpose : |
12 | //======================================================================= |
13 | |
14 | RWStepBasic_RWGroupAssignment::RWStepBasic_RWGroupAssignment () |
15 | { |
16 | } |
17 | |
18 | //======================================================================= |
19 | //function : ReadStep |
20 | //purpose : |
21 | //======================================================================= |
22 | |
23 | void RWStepBasic_RWGroupAssignment::ReadStep (const Handle(StepData_StepReaderData)& data, |
24 | const Standard_Integer num, |
25 | Handle(Interface_Check)& ach, |
26 | const Handle(StepBasic_GroupAssignment) &ent) const |
27 | { |
28 | // Check number of parameters |
29 | if ( ! data->CheckNbParams(num,1,ach,"group_assignment") ) return; |
30 | |
31 | // Own fields of GroupAssignment |
32 | |
33 | Handle(StepBasic_Group) aAssignedGroup; |
34 | data->ReadEntity (num, 1, "assigned_group", ach, STANDARD_TYPE(StepBasic_Group), aAssignedGroup); |
35 | |
36 | // Initialize entity |
37 | ent->Init(aAssignedGroup); |
38 | } |
39 | |
40 | //======================================================================= |
41 | //function : WriteStep |
42 | //purpose : |
43 | //======================================================================= |
44 | |
45 | void RWStepBasic_RWGroupAssignment::WriteStep (StepData_StepWriter& SW, |
46 | const Handle(StepBasic_GroupAssignment) &ent) const |
47 | { |
48 | |
49 | // Own fields of GroupAssignment |
50 | |
51 | SW.Send (ent->AssignedGroup()); |
52 | } |
53 | |
54 | //======================================================================= |
55 | //function : Share |
56 | //purpose : |
57 | //======================================================================= |
58 | |
59 | void RWStepBasic_RWGroupAssignment::Share (const Handle(StepBasic_GroupAssignment) &ent, |
60 | Interface_EntityIterator& iter) const |
61 | { |
62 | |
63 | // Own fields of GroupAssignment |
64 | |
65 | iter.AddItem (ent->AssignedGroup()); |
66 | } |