Integration of OCCT 6.5.0 from SVN
[occt.git] / src / RWStepRepr / RWStepRepr_RWDescriptiveRepresentationItem.cxx
CommitLineData
7fd59977 1
2#include <RWStepRepr_RWDescriptiveRepresentationItem.ixx>
3
4
5RWStepRepr_RWDescriptiveRepresentationItem::RWStepRepr_RWDescriptiveRepresentationItem () {}
6
7void RWStepRepr_RWDescriptiveRepresentationItem::ReadStep
8 (const Handle(StepData_StepReaderData)& data,
9 const Standard_Integer num,
10 Handle(Interface_Check)& ach,
11 const Handle(StepRepr_DescriptiveRepresentationItem)& ent) const
12{
13
14
15 // --- Number of Parameter Control ---
16
17 if (!data->CheckNbParams(num,2,ach,"descriptive_representation_item")) return;
18
19 // --- inherited 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 // --- own field : description ---
26
27 Handle(TCollection_HAsciiString) aDescription;
28 //szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
29 data->ReadString (num,2,"description",ach,aDescription);
30
31 //--- Initialisation of the read entity ---
32
33
34 ent->Init(aName, aDescription);
35}
36
37
38void RWStepRepr_RWDescriptiveRepresentationItem::WriteStep
39 (StepData_StepWriter& SW,
40 const Handle(StepRepr_DescriptiveRepresentationItem)& ent) const
41{
42
43 // --- inherited field name ---
44
45 SW.Send(ent->Name());
46
47 // --- own field : description ---
48
49 SW.Send(ent->Description());
50}