0022627: Change OCCT memory management defaults
[occt.git] / src / RWStepBasic / RWStepBasic_RWPersonAndOrganizationRole.cxx
CommitLineData
7fd59977 1
2#include <RWStepBasic_RWPersonAndOrganizationRole.ixx>
3
4
5RWStepBasic_RWPersonAndOrganizationRole::RWStepBasic_RWPersonAndOrganizationRole () {}
6
7void RWStepBasic_RWPersonAndOrganizationRole::ReadStep
8 (const Handle(StepData_StepReaderData)& data,
9 const Standard_Integer num,
10 Handle(Interface_Check)& ach,
11 const Handle(StepBasic_PersonAndOrganizationRole)& ent) const
12{
13
14
15 // --- Number of Parameter Control ---
16
17 if (!data->CheckNbParams(num,1,ach,"person_and_organization_role")) return;
18
19 // --- own field : name ---
20
21 Handle(TCollection_HAsciiString) aName;
22 //szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
23 data->ReadString (num,1,"name",ach,aName);
24
25 //--- Initialisation of the read entity ---
26
27
28 ent->Init(aName);
29}
30
31
32void RWStepBasic_RWPersonAndOrganizationRole::WriteStep
33 (StepData_StepWriter& SW,
34 const Handle(StepBasic_PersonAndOrganizationRole)& ent) const
35{
36
37 // --- own field : name ---
38
39 SW.Send(ent->Name());
40}