#include #include #include #include #include #include RWStepBasic_RWApprovalPersonOrganization::RWStepBasic_RWApprovalPersonOrganization () {} void RWStepBasic_RWApprovalPersonOrganization::ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepBasic_ApprovalPersonOrganization)& ent) const { // --- Number of Parameter Control --- if (!data->CheckNbParams(num,3,ach,"approval_person_organization")) return; // --- own field : personOrganization --- StepBasic_PersonOrganizationSelect aPersonOrganization; //szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed data->ReadEntity(num,1,"person_organization",ach,aPersonOrganization); // --- own field : authorizedApproval --- Handle(StepBasic_Approval) aAuthorizedApproval; //szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed data->ReadEntity(num, 2,"authorized_approval", ach, STANDARD_TYPE(StepBasic_Approval), aAuthorizedApproval); // --- own field : role --- Handle(StepBasic_ApprovalRole) aRole; //szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed data->ReadEntity(num, 3,"role", ach, STANDARD_TYPE(StepBasic_ApprovalRole), aRole); //--- Initialisation of the read entity --- ent->Init(aPersonOrganization, aAuthorizedApproval, aRole); } void RWStepBasic_RWApprovalPersonOrganization::WriteStep (StepData_StepWriter& SW, const Handle(StepBasic_ApprovalPersonOrganization)& ent) const { // --- own field : personOrganization --- SW.Send(ent->PersonOrganization().Value()); // --- own field : authorizedApproval --- SW.Send(ent->AuthorizedApproval()); // --- own field : role --- SW.Send(ent->Role()); } void RWStepBasic_RWApprovalPersonOrganization::Share(const Handle(StepBasic_ApprovalPersonOrganization)& ent, Interface_EntityIterator& iter) const { iter.GetOneItem(ent->PersonOrganization().Value()); iter.GetOneItem(ent->AuthorizedApproval()); iter.GetOneItem(ent->Role()); }