0024947: Redesign OCCT legacy type system -- automatic
[occt.git] / src / RWStepFEA / RWStepFEA_RWAlignedSurface3dElementCoordinateSystem.cxx
CommitLineData
b311480e 1// Created on: 2002-12-26
2// Created by: data exchange team
973c2be1 3// Copyright (c) 2002-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 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
973c2be1 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.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
b311480e 15
7fd59977 16// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
7fd59977 17
18#include <RWStepFEA_RWAlignedSurface3dElementCoordinateSystem.ixx>
ec357c5c 19#include <StepFEA_FeaAxis2Placement3d.hxx>
7fd59977 20
21//=======================================================================
22//function : RWStepFEA_RWAlignedSurface3dElementCoordinateSystem
23//purpose :
24//=======================================================================
25
26RWStepFEA_RWAlignedSurface3dElementCoordinateSystem::RWStepFEA_RWAlignedSurface3dElementCoordinateSystem ()
27{
28}
29
30//=======================================================================
31//function : ReadStep
32//purpose :
33//=======================================================================
34
35void RWStepFEA_RWAlignedSurface3dElementCoordinateSystem::ReadStep (const Handle(StepData_StepReaderData)& data,
36 const Standard_Integer num,
37 Handle(Interface_Check)& ach,
38 const Handle(StepFEA_AlignedSurface3dElementCoordinateSystem) &ent) const
39{
40 // Check number of parameters
41 if ( ! data->CheckNbParams(num,2,ach,"aligned_surface3d_element_coordinate_system") ) return;
42
43 // Inherited fields of RepresentationItem
44
45 Handle(TCollection_HAsciiString) aRepresentationItem_Name;
46 data->ReadString (num, 1, "representation_item.name", ach, aRepresentationItem_Name);
47
48 // Own fields of AlignedSurface3dElementCoordinateSystem
49
50 Handle(StepFEA_FeaAxis2Placement3d) aCoordinateSystem;
51 data->ReadEntity (num, 2, "coordinate_system", ach, STANDARD_TYPE(StepFEA_FeaAxis2Placement3d), aCoordinateSystem);
52
53 // Initialize entity
54 ent->Init(aRepresentationItem_Name,
55 aCoordinateSystem);
56}
57
58//=======================================================================
59//function : WriteStep
60//purpose :
61//=======================================================================
62
63void RWStepFEA_RWAlignedSurface3dElementCoordinateSystem::WriteStep (StepData_StepWriter& SW,
64 const Handle(StepFEA_AlignedSurface3dElementCoordinateSystem) &ent) const
65{
66
67 // Inherited fields of RepresentationItem
68
69 SW.Send (ent->StepRepr_RepresentationItem::Name());
70
71 // Own fields of AlignedSurface3dElementCoordinateSystem
72
73 SW.Send (ent->CoordinateSystem());
74}
75
76//=======================================================================
77//function : Share
78//purpose :
79//=======================================================================
80
81void RWStepFEA_RWAlignedSurface3dElementCoordinateSystem::Share (const Handle(StepFEA_AlignedSurface3dElementCoordinateSystem) &ent,
82 Interface_EntityIterator& iter) const
83{
84
85 // Inherited fields of RepresentationItem
86
87 // Own fields of AlignedSurface3dElementCoordinateSystem
88
89 iter.AddItem (ent->CoordinateSystem());
90}