0022627: Change OCCT memory management defaults
[occt.git] / src / RWStepBasic / RWStepBasic_RWActionAssignment.cxx
CommitLineData
7fd59977 1// File: RWStepBasic_RWActionAssignment.cxx
2// Created: Fri Nov 26 16:26:29 1999
3// Author: Andrey BETENEV
4// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
5// Copyright: Matra Datavision 1999
6
7#include <RWStepBasic_RWActionAssignment.ixx>
8
9//=======================================================================
10//function : RWStepBasic_RWActionAssignment
11//purpose :
12//=======================================================================
13
14RWStepBasic_RWActionAssignment::RWStepBasic_RWActionAssignment ()
15{
16}
17
18//=======================================================================
19//function : ReadStep
20//purpose :
21//=======================================================================
22
23void RWStepBasic_RWActionAssignment::ReadStep (const Handle(StepData_StepReaderData)& data,
24 const Standard_Integer num,
25 Handle(Interface_Check)& ach,
26 const Handle(StepBasic_ActionAssignment) &ent) const
27{
28 // Check number of parameters
29 if ( ! data->CheckNbParams(num,1,ach,"action_assignment") ) return;
30
31 // Own fields of ActionAssignment
32
33 Handle(StepBasic_Action) aAssignedAction;
34 data->ReadEntity (num, 1, "assigned_action", ach, STANDARD_TYPE(StepBasic_Action), aAssignedAction);
35
36 // Initialize entity
37 ent->Init(aAssignedAction);
38}
39
40//=======================================================================
41//function : WriteStep
42//purpose :
43//=======================================================================
44
45void RWStepBasic_RWActionAssignment::WriteStep (StepData_StepWriter& SW,
46 const Handle(StepBasic_ActionAssignment) &ent) const
47{
48
49 // Own fields of ActionAssignment
50
51 SW.Send (ent->AssignedAction());
52}
53
54//=======================================================================
55//function : Share
56//purpose :
57//=======================================================================
58
59void RWStepBasic_RWActionAssignment::Share (const Handle(StepBasic_ActionAssignment) &ent,
60 Interface_EntityIterator& iter) const
61{
62
63 // Own fields of ActionAssignment
64
65 iter.AddItem (ent->AssignedAction());
66}