summaryrefslogtreecommitdiff
path: root/src/RWStepShape/RWStepShape_RWLimitsAndFits.cxx
blob: f31a52bd3c48795eaee3b76941da4d7b4110625d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <RWStepShape_RWLimitsAndFits.ixx>


RWStepShape_RWLimitsAndFits::RWStepShape_RWLimitsAndFits () {}

void RWStepShape_RWLimitsAndFits::ReadStep
	(const Handle(StepData_StepReaderData)& data,
	 const Standard_Integer num,
	 Handle(Interface_Check)& ach,
	 const Handle(StepShape_LimitsAndFits)& ent) const
{


	// --- Number of Parameter Control ---

	if (!data->CheckNbParams(num,4,ach,"limits_and_fits")) return;

	// --- own field : form_variance ---

	Handle(TCollection_HAsciiString) fv;
	data->ReadString (num,1,"form_variance",ach,fv);

	// --- own field : form_variance ---

	Handle(TCollection_HAsciiString) zv;
	data->ReadString (num,2,"zone_variance",ach,zv);

	// --- own field : grade ---

	Handle(TCollection_HAsciiString) gr;
	data->ReadString (num,3,"grade",ach,gr);

	// --- own field : source ---

	Handle(TCollection_HAsciiString) sou;
	data->ReadString (num,4,"source",ach,sou);

	//--- Initialisation of the read entity ---

	ent->Init(fv,zv,gr,sou);
}


void RWStepShape_RWLimitsAndFits::WriteStep
	(StepData_StepWriter& SW,
	 const Handle(StepShape_LimitsAndFits)& ent) const
{
	SW.Send(ent->FormVariance());
	SW.Send(ent->ZoneVariance());
	SW.Send(ent->Grade());
	SW.Send(ent->Source());
}