0022627: Change OCCT memory management defaults
[occt.git] / src / RWStepBasic / RWStepBasic_RWDateTimeRole.cxx
1
2 #include <RWStepBasic_RWDateTimeRole.ixx>
3
4
5 RWStepBasic_RWDateTimeRole::RWStepBasic_RWDateTimeRole () {}
6
7 void RWStepBasic_RWDateTimeRole::ReadStep
8         (const Handle(StepData_StepReaderData)& data,
9          const Standard_Integer num,
10          Handle(Interface_Check)& ach,
11          const Handle(StepBasic_DateTimeRole)& ent) const
12 {
13
14
15         // --- Number of Parameter Control ---
16
17         if (!data->CheckNbParams(num,1,ach,"date_time_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
32 void RWStepBasic_RWDateTimeRole::WriteStep
33         (StepData_StepWriter& SW,
34          const Handle(StepBasic_DateTimeRole)& ent) const
35 {
36
37         // --- own field : name ---
38
39         SW.Send(ent->Name());
40 }