1 // File: RWStepFEA_RWFeaCurveSectionGeometricRelationship.cxx
2 // Created: Wed Jan 22 17:31:43 2003
3 // Author: data exchange team
4 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
5 // Copyright: Open CASCADE 2002
7 #include <RWStepFEA_RWFeaCurveSectionGeometricRelationship.ixx>
9 //=======================================================================
10 //function : RWStepFEA_RWFeaCurveSectionGeometricRelationship
12 //=======================================================================
14 RWStepFEA_RWFeaCurveSectionGeometricRelationship::RWStepFEA_RWFeaCurveSectionGeometricRelationship ()
18 //=======================================================================
21 //=======================================================================
23 void RWStepFEA_RWFeaCurveSectionGeometricRelationship::ReadStep (const Handle(StepData_StepReaderData)& data,
24 const Standard_Integer num,
25 Handle(Interface_Check)& ach,
26 const Handle(StepFEA_FeaCurveSectionGeometricRelationship) &ent) const
28 // Check number of parameters
29 if ( ! data->CheckNbParams(num,2,ach,"fea_curve_section_geometric_relationship") ) return;
31 // Own fields of FeaCurveSectionGeometricRelationship
33 Handle(StepElement_CurveElementSectionDefinition) aSectionRef;
34 data->ReadEntity (num, 1, "section_ref", ach, STANDARD_TYPE(StepElement_CurveElementSectionDefinition), aSectionRef);
36 Handle(StepElement_AnalysisItemWithinRepresentation) aItem;
37 data->ReadEntity (num, 2, "item", ach, STANDARD_TYPE(StepElement_AnalysisItemWithinRepresentation), aItem);
40 ent->Init(aSectionRef,
44 //=======================================================================
45 //function : WriteStep
47 //=======================================================================
49 void RWStepFEA_RWFeaCurveSectionGeometricRelationship::WriteStep (StepData_StepWriter& SW,
50 const Handle(StepFEA_FeaCurveSectionGeometricRelationship) &ent) const
53 // Own fields of FeaCurveSectionGeometricRelationship
55 SW.Send (ent->SectionRef());
57 SW.Send (ent->Item());
60 //=======================================================================
63 //=======================================================================
65 void RWStepFEA_RWFeaCurveSectionGeometricRelationship::Share (const Handle(StepFEA_FeaCurveSectionGeometricRelationship) &ent,
66 Interface_EntityIterator& iter) const
69 // Own fields of FeaCurveSectionGeometricRelationship
71 iter.AddItem (ent->SectionRef());
73 iter.AddItem (ent->Item());