Warnings on vc14 were eliminated
[occt.git] / src / RWStepShape / RWStepShape_RWLimitsAndFits.cxx
CommitLineData
973c2be1 1// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 2//
973c2be1 3// This file is part of Open CASCADE Technology software library.
b311480e 4//
d5f74e42 5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
b311480e 10//
973c2be1 11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
b311480e 13
7fd59977 14
42cf5bc1 15#include <Interface_Check.hxx>
16#include <RWStepShape_RWLimitsAndFits.hxx>
17#include <StepData_StepReaderData.hxx>
18#include <StepData_StepWriter.hxx>
19#include <StepShape_LimitsAndFits.hxx>
7fd59977 20
21RWStepShape_RWLimitsAndFits::RWStepShape_RWLimitsAndFits () {}
22
23void RWStepShape_RWLimitsAndFits::ReadStep
24 (const Handle(StepData_StepReaderData)& data,
25 const Standard_Integer num,
26 Handle(Interface_Check)& ach,
27 const Handle(StepShape_LimitsAndFits)& ent) const
28{
29
30
31 // --- Number of Parameter Control ---
32
33 if (!data->CheckNbParams(num,4,ach,"limits_and_fits")) return;
34
35 // --- own field : form_variance ---
36
37 Handle(TCollection_HAsciiString) fv;
38 data->ReadString (num,1,"form_variance",ach,fv);
39
40 // --- own field : form_variance ---
41
42 Handle(TCollection_HAsciiString) zv;
43 data->ReadString (num,2,"zone_variance",ach,zv);
44
45 // --- own field : grade ---
46
47 Handle(TCollection_HAsciiString) gr;
48 data->ReadString (num,3,"grade",ach,gr);
49
50 // --- own field : source ---
51
52 Handle(TCollection_HAsciiString) sou;
53 data->ReadString (num,4,"source",ach,sou);
54
55 //--- Initialisation of the read entity ---
56
57 ent->Init(fv,zv,gr,sou);
58}
59
60
61void RWStepShape_RWLimitsAndFits::WriteStep
62 (StepData_StepWriter& SW,
63 const Handle(StepShape_LimitsAndFits)& ent) const
64{
65 SW.Send(ent->FormVariance());
66 SW.Send(ent->ZoneVariance());
67 SW.Send(ent->Grade());
68 SW.Send(ent->Source());
69}
70