b311480e |
1 | // Created on: 2002-12-15 |
2 | // Created by: data exchange team |
3 | // Copyright (c) 2002-2012 OPEN CASCADE SAS |
4 | // |
5 | // The content of this file is subject to the Open CASCADE Technology Public |
6 | // License Version 6.5 (the "License"). You may not use the content of this file |
7 | // except in compliance with the License. Please obtain a copy of the License |
8 | // at http://www.opencascade.org and read it completely before using this file. |
9 | // |
10 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
11 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
12 | // |
13 | // The Original Code and all software distributed under the License is |
14 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
15 | // Initial Developer hereby disclaims all such warranties, including without |
16 | // limitation, any warranties of merchantability, fitness for a particular |
17 | // purpose or non-infringement. Please see the License for the specific terms |
18 | // and conditions governing the rights and limitations under the License. |
19 | |
7fd59977 |
20 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2 |
7fd59977 |
21 | |
22 | #include <RWStepRepr_RWStructuralResponseProperty.ixx> |
23 | |
24 | //#include <StepRepr_RepresentedDefinition.hxx> |
25 | |
26 | //======================================================================= |
27 | //function : RWStepRepr_RWStructuralResponseProperty |
28 | //purpose : |
29 | //======================================================================= |
30 | |
31 | RWStepRepr_RWStructuralResponseProperty::RWStepRepr_RWStructuralResponseProperty () |
32 | { |
33 | } |
34 | |
35 | //======================================================================= |
36 | //function : ReadStep |
37 | //purpose : |
38 | //======================================================================= |
39 | |
40 | void RWStepRepr_RWStructuralResponseProperty::ReadStep (const Handle(StepData_StepReaderData)& data, |
41 | const Standard_Integer num, |
42 | Handle(Interface_Check)& ach, |
43 | const Handle(StepRepr_StructuralResponseProperty) &ent) const |
44 | { |
45 | // Check number of parameters |
46 | if ( ! data->CheckNbParams(num,3,ach,"structural_response_property") ) return; |
47 | |
48 | // Inherited fields of PropertyDefinition |
49 | |
50 | Handle(TCollection_HAsciiString) aPropertyDefinition_Name; |
51 | data->ReadString (num, 1, "property_definition.name", ach, aPropertyDefinition_Name); |
52 | |
53 | Handle(TCollection_HAsciiString) aPropertyDefinition_Description; |
54 | data->ReadString (num, 2, "property_definition.description", ach, aPropertyDefinition_Description); |
55 | |
56 | StepRepr_CharacterizedDefinition aPropertyDefinition_Definition; |
57 | data->ReadEntity (num, 3, "property_definition.definition", ach, aPropertyDefinition_Definition); |
58 | |
59 | // Initialize entity |
60 | ent->Init(aPropertyDefinition_Name, Standard_True, |
61 | aPropertyDefinition_Description, |
62 | aPropertyDefinition_Definition); |
63 | } |
64 | |
65 | //======================================================================= |
66 | //function : WriteStep |
67 | //purpose : |
68 | //======================================================================= |
69 | |
70 | void RWStepRepr_RWStructuralResponseProperty::WriteStep (StepData_StepWriter& SW, |
71 | const Handle(StepRepr_StructuralResponseProperty) &ent) const |
72 | { |
73 | |
74 | // Inherited fields of PropertyDefinition |
75 | |
76 | SW.Send (ent->StepRepr_PropertyDefinition::Name()); |
77 | |
78 | SW.Send (ent->StepRepr_PropertyDefinition::Description()); |
79 | |
80 | SW.Send (ent->StepRepr_PropertyDefinition::Definition().Value()); |
81 | } |
82 | |
83 | //======================================================================= |
84 | //function : Share |
85 | //purpose : |
86 | //======================================================================= |
87 | |
88 | void RWStepRepr_RWStructuralResponseProperty::Share (const Handle(StepRepr_StructuralResponseProperty) &ent, |
89 | Interface_EntityIterator& iter) const |
90 | { |
91 | |
92 | // Inherited fields of PropertyDefinition |
93 | |
94 | iter.AddItem (ent->StepRepr_PropertyDefinition::Definition().Value()); |
95 | } |