Integration of OCCT 6.5.0 from SVN
[occt.git] / src / RWStepFEA / RWStepFEA_RWFeaCurveSectionGeometricRelationship.cxx
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
6
7 #include <RWStepFEA_RWFeaCurveSectionGeometricRelationship.ixx>
8
9 //=======================================================================
10 //function : RWStepFEA_RWFeaCurveSectionGeometricRelationship
11 //purpose  : 
12 //=======================================================================
13
14 RWStepFEA_RWFeaCurveSectionGeometricRelationship::RWStepFEA_RWFeaCurveSectionGeometricRelationship ()
15 {
16 }
17
18 //=======================================================================
19 //function : ReadStep
20 //purpose  : 
21 //=======================================================================
22
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
27 {
28   // Check number of parameters
29   if ( ! data->CheckNbParams(num,2,ach,"fea_curve_section_geometric_relationship") ) return;
30
31   // Own fields of FeaCurveSectionGeometricRelationship
32
33   Handle(StepElement_CurveElementSectionDefinition) aSectionRef;
34   data->ReadEntity (num, 1, "section_ref", ach, STANDARD_TYPE(StepElement_CurveElementSectionDefinition), aSectionRef);
35
36   Handle(StepElement_AnalysisItemWithinRepresentation) aItem;
37   data->ReadEntity (num, 2, "item", ach, STANDARD_TYPE(StepElement_AnalysisItemWithinRepresentation), aItem);
38
39   // Initialize entity
40   ent->Init(aSectionRef,
41             aItem);
42 }
43
44 //=======================================================================
45 //function : WriteStep
46 //purpose  : 
47 //=======================================================================
48
49 void RWStepFEA_RWFeaCurveSectionGeometricRelationship::WriteStep (StepData_StepWriter& SW,
50                                                                   const Handle(StepFEA_FeaCurveSectionGeometricRelationship) &ent) const
51 {
52
53   // Own fields of FeaCurveSectionGeometricRelationship
54
55   SW.Send (ent->SectionRef());
56
57   SW.Send (ent->Item());
58 }
59
60 //=======================================================================
61 //function : Share
62 //purpose  : 
63 //=======================================================================
64
65 void RWStepFEA_RWFeaCurveSectionGeometricRelationship::Share (const Handle(StepFEA_FeaCurveSectionGeometricRelationship) &ent,
66                                                               Interface_EntityIterator& iter) const
67 {
68
69   // Own fields of FeaCurveSectionGeometricRelationship
70
71   iter.AddItem (ent->SectionRef());
72
73   iter.AddItem (ent->Item());
74 }