7fd59977 |
1 | |
2 | #include <RWStepRepr_RWDescriptiveRepresentationItem.ixx> |
3 | |
4 | |
5 | RWStepRepr_RWDescriptiveRepresentationItem::RWStepRepr_RWDescriptiveRepresentationItem () {} |
6 | |
7 | void 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 | |
38 | void 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 | } |