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