1 // Created on: 2002-12-15
2 // Created by: data exchange team
3 // Copyright (c) 2002-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
18 #include <RWStepFEA_RWFeaModelDefinition.ixx>
19 #include <StepRepr_ProductDefinitionShape.hxx>
21 //=======================================================================
22 //function : RWStepFEA_RWFeaModelDefinition
24 //=======================================================================
26 RWStepFEA_RWFeaModelDefinition::RWStepFEA_RWFeaModelDefinition ()
30 //=======================================================================
33 //=======================================================================
35 void RWStepFEA_RWFeaModelDefinition::ReadStep (const Handle(StepData_StepReaderData)& data,
36 const Standard_Integer num,
37 Handle(Interface_Check)& ach,
38 const Handle(StepFEA_FeaModelDefinition) &ent) const
40 // Check number of parameters
41 if ( ! data->CheckNbParams(num,4,ach,"fea_model_definition") ) return;
43 // Inherited fields of ShapeAspect
45 Handle(TCollection_HAsciiString) aShapeAspect_Name;
46 data->ReadString (num, 1, "shape_aspect.name", ach, aShapeAspect_Name);
48 Handle(TCollection_HAsciiString) aShapeAspect_Description;
49 data->ReadString (num, 2, "shape_aspect.description", ach, aShapeAspect_Description);
51 Handle(StepRepr_ProductDefinitionShape) aShapeAspect_OfShape;
52 data->ReadEntity (num, 3, "shape_aspect.of_shape", ach, STANDARD_TYPE(StepRepr_ProductDefinitionShape), aShapeAspect_OfShape);
54 StepData_Logical aShapeAspect_ProductDefinitional;
55 data->ReadLogical (num, 4, "shape_aspect.product_definitional", ach, aShapeAspect_ProductDefinitional);
58 ent->Init(aShapeAspect_Name,
59 aShapeAspect_Description,
61 aShapeAspect_ProductDefinitional);
64 //=======================================================================
65 //function : WriteStep
67 //=======================================================================
69 void RWStepFEA_RWFeaModelDefinition::WriteStep (StepData_StepWriter& SW,
70 const Handle(StepFEA_FeaModelDefinition) &ent) const
73 // Inherited fields of ShapeAspect
75 SW.Send (ent->StepRepr_ShapeAspect::Name());
77 SW.Send (ent->StepRepr_ShapeAspect::Description());
79 SW.Send (ent->StepRepr_ShapeAspect::OfShape());
81 SW.SendLogical (ent->StepRepr_ShapeAspect::ProductDefinitional());
84 //=======================================================================
87 //=======================================================================
89 void RWStepFEA_RWFeaModelDefinition::Share (const Handle(StepFEA_FeaModelDefinition) &ent,
90 Interface_EntityIterator& iter) const
93 // Inherited fields of ShapeAspect
95 iter.AddItem (ent->StepRepr_ShapeAspect::OfShape());