2 #include <RWStepBasic_RWApproval.ixx>
3 #include <StepBasic_ApprovalStatus.hxx>
6 #include <Interface_EntityIterator.hxx>
9 #include <StepBasic_Approval.hxx>
12 RWStepBasic_RWApproval::RWStepBasic_RWApproval () {}
14 void RWStepBasic_RWApproval::ReadStep
15 (const Handle(StepData_StepReaderData)& data,
16 const Standard_Integer num,
17 Handle(Interface_Check)& ach,
18 const Handle(StepBasic_Approval)& ent) const
22 // --- Number of Parameter Control ---
24 if (!data->CheckNbParams(num,2,ach,"approval")) return;
26 // --- own field : status ---
28 Handle(StepBasic_ApprovalStatus) aStatus;
29 //szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
30 data->ReadEntity(num, 1,"status", ach, STANDARD_TYPE(StepBasic_ApprovalStatus), aStatus);
32 // --- own field : level ---
34 Handle(TCollection_HAsciiString) aLevel;
35 //szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
36 data->ReadString (num,2,"level",ach,aLevel);
38 //--- Initialisation of the read entity ---
41 ent->Init(aStatus, aLevel);
45 void RWStepBasic_RWApproval::WriteStep
46 (StepData_StepWriter& SW,
47 const Handle(StepBasic_Approval)& ent) const
50 // --- own field : status ---
52 SW.Send(ent->Status());
54 // --- own field : level ---
56 SW.Send(ent->Level());
60 void RWStepBasic_RWApproval::Share(const Handle(StepBasic_Approval)& ent, Interface_EntityIterator& iter) const
63 iter.GetOneItem(ent->Status());