7fd59977 |
1 | |
2 | #include <RWStepVisual_RWDraughtingPreDefinedCurveFont.ixx> |
3 | |
4 | |
5 | RWStepVisual_RWDraughtingPreDefinedCurveFont::RWStepVisual_RWDraughtingPreDefinedCurveFont () {} |
6 | |
7 | void RWStepVisual_RWDraughtingPreDefinedCurveFont::ReadStep |
8 | (const Handle(StepData_StepReaderData)& data, |
9 | const Standard_Integer num, |
10 | Handle(Interface_Check)& ach, |
11 | const Handle(StepVisual_DraughtingPreDefinedCurveFont)& ent) const |
12 | { |
13 | |
14 | |
15 | // --- Number of Parameter Control --- |
16 | |
17 | if (!data->CheckNbParams(num,1,ach,"draughting_pre_defined_curve_font has not 1 parameter(s)")) 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 | //--- Initialisation of the read entity --- |
26 | |
27 | |
28 | ent->Init(aName); |
29 | } |
30 | |
31 | |
32 | void RWStepVisual_RWDraughtingPreDefinedCurveFont::WriteStep |
33 | (StepData_StepWriter& SW, |
34 | const Handle(StepVisual_DraughtingPreDefinedCurveFont)& ent) const |
35 | { |
36 | |
37 | // --- inherited field name --- |
38 | |
39 | SW.Send(ent->Name()); |
40 | } |