1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

Integration of OCCT 6.5.0 from SVN

This commit is contained in:
bugmaster
2011-03-16 07:30:28 +00:00
committed by bugmaster
parent 4903637061
commit 7fd59977df
16375 changed files with 3882564 additions and 0 deletions

93
src/RWStepRepr/RWStepRepr.cdl Executable file
View File

@@ -0,0 +1,93 @@
-- File: RWStepRepr.cdl
-- Created: Mon Dec 4 12:02:22 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
package RWStepRepr
uses
StepData, Interface, TCollection, TColStd, StepRepr
is
--class ReadWriteModule;
--class GeneralModule;
class RWDefinitionalRepresentation;
class RWDescriptiveRepresentationItem;
class RWFunctionallyDefinedTransformation;
class RWGlobalUncertaintyAssignedContext;
class RWGlobalUnitAssignedContext;
class RWItemDefinedTransformation;
--moved to StepBasic: class RWGroup;
--moved to StepBasic: class RWGroupRelationship;
class RWMappedItem;
class RWParametricRepresentationContext;
class RWProductDefinitionShape;
class RWPropertyDefinition;
class RWPropertyDefinitionRepresentation;
--moved to StepAP214: class RWRepItemGroup;
class RWRepresentation;
class RWRepresentationContext;
class RWRepresentationItem;
class RWRepresentationMap;
class RWRepresentationRelationship;
class RWShapeAspect;
class RWShapeAspectRelationship;
class RWShapeAspectTransition;
-- class RWShapeDefinitionRepresentation; moved to StepShape
-- Added from AP214 CC1 to CC2
class RWMakeFromUsageOption;
class RWAssemblyComponentUsage;
class RWQuantifiedAssemblyComponentUsage;
class RWSpecifiedHigherUsageOccurrence;
class RWAssemblyComponentUsageSubstitute;
class RWRepresentationRelationshipWithTransformation;
class RWShapeRepresentationRelationshipWithTransformation;
class RWMaterialDesignation;
-- ABV added for CAX TRJ 2 validation properties
class RWMeasureRepresentationItem;
-- Added for AP203
class RWConfigurationDesign;
class RWConfigurationEffectivity;
class RWConfigurationItem;
class RWProductConcept;
-- Added for Dimensional Tolerancing (CKY 25 APR 2001 for TR7J)
class RWCompoundRepresentationItem;
---Package Method ---
--- added for AP209
class RWDataEnvironment;
class RWMaterialPropertyRepresentation;
class RWPropertyDefinitionRelationship;
class RWMaterialProperty;
class RWStructuralResponseProperty;
class RWStructuralResponsePropertyDefinitionRepresentation;
--- added for TR12J (GD&T)
class RWCompositeShapeAspect;
class RWDerivedShapeAspect;
class RWExtension;
class RWShapeAspectDerivingRelationship;
class RWReprItemAndLengthMeasureWithUnit;
-- Init;
---Purpose: enforced the initialisation of the libraries
end RWStepRepr;

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWAssemblyComponentUsage.cdl
-- Created: Mon Jul 3 19:47:50 2000
-- Author: Andrey BETENEV
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
-- Copyright: Matra Datavision 2000
class RWAssemblyComponentUsage from RWStepRepr
---Purpose: Read & Write tool for AssemblyComponentUsage
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
AssemblyComponentUsage from StepRepr
is
Create returns RWAssemblyComponentUsage from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : AssemblyComponentUsage from StepRepr);
---Purpose: Reads AssemblyComponentUsage
WriteStep (me; SW: in out StepWriter from StepData;
ent: AssemblyComponentUsage from StepRepr);
---Purpose: Writes AssemblyComponentUsage
Share (me; ent : AssemblyComponentUsage from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWAssemblyComponentUsage;

View File

@@ -0,0 +1,124 @@
// File: RWStepRepr_RWAssemblyComponentUsage.cxx
// Created: Mon Jul 3 19:47:50 2000
// Author: Andrey BETENEV
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
// Copyright: Matra Datavision 2000
#include <RWStepRepr_RWAssemblyComponentUsage.ixx>
//=======================================================================
//function : RWStepRepr_RWAssemblyComponentUsage
//purpose :
//=======================================================================
RWStepRepr_RWAssemblyComponentUsage::RWStepRepr_RWAssemblyComponentUsage ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWAssemblyComponentUsage::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_AssemblyComponentUsage) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,6,ach,"assembly_component_usage") ) return;
// Inherited fields of ProductDefinitionRelationship
Handle(TCollection_HAsciiString) aProductDefinitionRelationship_Id;
data->ReadString (num, 1, "product_definition_relationship.id", ach, aProductDefinitionRelationship_Id);
Handle(TCollection_HAsciiString) aProductDefinitionRelationship_Name;
data->ReadString (num, 2, "product_definition_relationship.name", ach, aProductDefinitionRelationship_Name);
Handle(TCollection_HAsciiString) aProductDefinitionRelationship_Description;
Standard_Boolean hasProductDefinitionRelationship_Description = Standard_True;
if ( data->IsParamDefined (num,3) ) {
data->ReadString (num, 3, "product_definition_relationship.description", ach, aProductDefinitionRelationship_Description);
}
else {
hasProductDefinitionRelationship_Description = Standard_False;
}
Handle(StepBasic_ProductDefinition) aProductDefinitionRelationship_RelatingProductDefinition;
data->ReadEntity (num, 4, "product_definition_relationship.relating_product_definition", ach, STANDARD_TYPE(StepBasic_ProductDefinition), aProductDefinitionRelationship_RelatingProductDefinition);
Handle(StepBasic_ProductDefinition) aProductDefinitionRelationship_RelatedProductDefinition;
data->ReadEntity (num, 5, "product_definition_relationship.related_product_definition", ach, STANDARD_TYPE(StepBasic_ProductDefinition), aProductDefinitionRelationship_RelatedProductDefinition);
// Own fields of AssemblyComponentUsage
Handle(TCollection_HAsciiString) aReferenceDesignator;
Standard_Boolean hasReferenceDesignator = Standard_True;
if ( data->IsParamDefined (num,6) ) {
data->ReadString (num, 6, "reference_designator", ach, aReferenceDesignator);
}
else {
hasReferenceDesignator = Standard_False;
}
// Initialize entity
ent->Init(aProductDefinitionRelationship_Id,
aProductDefinitionRelationship_Name,
hasProductDefinitionRelationship_Description,
aProductDefinitionRelationship_Description,
aProductDefinitionRelationship_RelatingProductDefinition,
aProductDefinitionRelationship_RelatedProductDefinition,
hasReferenceDesignator,
aReferenceDesignator);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWAssemblyComponentUsage::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_AssemblyComponentUsage) &ent) const
{
// Inherited fields of ProductDefinitionRelationship
SW.Send (ent->StepBasic_ProductDefinitionRelationship::Id());
SW.Send (ent->StepBasic_ProductDefinitionRelationship::Name());
if ( ent->StepBasic_ProductDefinitionRelationship::HasDescription() ) {
SW.Send (ent->StepBasic_ProductDefinitionRelationship::Description());
}
else SW.SendUndef();
SW.Send (ent->StepBasic_ProductDefinitionRelationship::RelatingProductDefinition());
SW.Send (ent->StepBasic_ProductDefinitionRelationship::RelatedProductDefinition());
// Own fields of AssemblyComponentUsage
if ( ent->HasReferenceDesignator() ) {
SW.Send (ent->ReferenceDesignator());
}
else SW.SendUndef();
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWAssemblyComponentUsage::Share (const Handle(StepRepr_AssemblyComponentUsage) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of ProductDefinitionRelationship
iter.AddItem (ent->StepBasic_ProductDefinitionRelationship::RelatingProductDefinition());
iter.AddItem (ent->StepBasic_ProductDefinitionRelationship::RelatedProductDefinition());
// Own fields of AssemblyComponentUsage
}

View File

@@ -0,0 +1,30 @@
-- File: AssemblyComponentUsageSubstitute.cdl
-- Created: Mon Dec 4 12:02:27 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWAssemblyComponentUsageSubstitute from RWStepRepr
---Purpose : Read & Write Module for AssemblyComponentUsageSubstitute
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
AssemblyComponentUsageSubstitute from StepRepr,
EntityIterator from Interface
is
Create returns RWAssemblyComponentUsageSubstitute;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable AssemblyComponentUsageSubstitute from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : AssemblyComponentUsageSubstitute from StepRepr);
Share(me; ent : AssemblyComponentUsageSubstitute from StepRepr; iter : in out EntityIterator);
end RWAssemblyComponentUsageSubstitute;

View File

@@ -0,0 +1,77 @@
//gka 05.03.99 S4134 upgrade from CD to DIS
#include <RWStepRepr_RWAssemblyComponentUsageSubstitute.ixx>
#include <StepRepr_AssemblyComponentUsage.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepRepr_AssemblyComponentUsageSubstitute.hxx>
RWStepRepr_RWAssemblyComponentUsageSubstitute::RWStepRepr_RWAssemblyComponentUsageSubstitute () {}
void RWStepRepr_RWAssemblyComponentUsageSubstitute::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_AssemblyComponentUsageSubstitute)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,4,ach,"assembly_component_usage_substitute")) return;
// --- inherited field : name ---
Handle(TCollection_HAsciiString) aName;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"name",ach,aName);
// --- inherited field : definition ---
Handle(TCollection_HAsciiString) aDef;
if (data->IsParamDefined (num,2)) { //gka 05.03.99 S4134 upgrade from CD to DIS
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
data->ReadString (num,2,"definition",ach,aDef);
}
// --- own field : base ---
Handle(StepRepr_AssemblyComponentUsage) aBase;
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
data->ReadEntity(num, 3,"base", ach, STANDARD_TYPE(StepRepr_AssemblyComponentUsage), aBase);
// --- own field : substitute ---
Handle(StepRepr_AssemblyComponentUsage) aSubs;
//szv#4:S4163:12Mar99 `Standard_Boolean stat4 =` not needed
data->ReadEntity(num, 4,"substitute", ach, STANDARD_TYPE(StepRepr_AssemblyComponentUsage), aSubs);
//--- Initialisation of the read entity ---
ent->Init(aName, aDef, aBase, aSubs);
}
void RWStepRepr_RWAssemblyComponentUsageSubstitute::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_AssemblyComponentUsageSubstitute)& ent) const
{
SW.Send(ent->Name());
SW.Send(ent->Definition());
SW.Send(ent->Base());
SW.Send(ent->Substitute());
}
void RWStepRepr_RWAssemblyComponentUsageSubstitute::Share(const Handle(StepRepr_AssemblyComponentUsageSubstitute)& ent, Interface_EntityIterator& iter) const
{
iter.GetOneItem(ent->Base());
iter.GetOneItem(ent->Substitute());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWCompositeShapeAspect.cdl
-- Created: Wed Jun 4 14:17:23 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWCompositeShapeAspect from RWStepRepr
---Purpose: Read & Write tool for CompositeShapeAspect
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
CompositeShapeAspect from StepRepr
is
Create returns RWCompositeShapeAspect from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : CompositeShapeAspect from StepRepr);
---Purpose: Reads CompositeShapeAspect
WriteStep (me; SW: in out StepWriter from StepData;
ent: CompositeShapeAspect from StepRepr);
---Purpose: Writes CompositeShapeAspect
Share (me; ent : CompositeShapeAspect from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWCompositeShapeAspect;

View File

@@ -0,0 +1,90 @@
// File: RWStepRepr_RWCompositeShapeAspect.cxx
// Created: Wed Jun 4 14:17:23 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepRepr_RWCompositeShapeAspect.ixx>
//=======================================================================
//function : RWStepRepr_RWCompositeShapeAspect
//purpose :
//=======================================================================
RWStepRepr_RWCompositeShapeAspect::RWStepRepr_RWCompositeShapeAspect ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWCompositeShapeAspect::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_CompositeShapeAspect) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"composite_shape_aspect") ) return;
// Inherited fields of ShapeAspect
Handle(TCollection_HAsciiString) aShapeAspect_Name;
data->ReadString (num, 1, "shape_aspect.name", ach, aShapeAspect_Name);
Handle(TCollection_HAsciiString) aShapeAspect_Description;
Standard_Boolean hasShapeAspect_Description = Standard_True;
if ( data->IsParamDefined (num,2) ) {
data->ReadString (num, 2, "shape_aspect.description", ach, aShapeAspect_Description);
}
else {
hasShapeAspect_Description = Standard_False;
}
Handle(StepRepr_ProductDefinitionShape) aShapeAspect_OfShape;
data->ReadEntity (num, 3, "shape_aspect.of_shape", ach, STANDARD_TYPE(StepRepr_ProductDefinitionShape), aShapeAspect_OfShape);
StepData_Logical aShapeAspect_ProductDefinitional;
data->ReadLogical (num, 4, "shape_aspect.product_definitional", ach, aShapeAspect_ProductDefinitional);
// Initialize entity
ent->Init(aShapeAspect_Name,
aShapeAspect_Description,
aShapeAspect_OfShape,
aShapeAspect_ProductDefinitional);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWCompositeShapeAspect::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_CompositeShapeAspect) &ent) const
{
// Inherited fields of ShapeAspect
SW.Send (ent->StepRepr_ShapeAspect::Name());
SW.Send (ent->StepRepr_ShapeAspect::Description());
SW.Send (ent->StepRepr_ShapeAspect::OfShape());
SW.SendLogical (ent->StepRepr_ShapeAspect::ProductDefinitional());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWCompositeShapeAspect::Share (const Handle(StepRepr_CompositeShapeAspect) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of ShapeAspect
iter.AddItem (ent->StepRepr_ShapeAspect::OfShape());
}

View File

@@ -0,0 +1,32 @@
-- File: CompoundRepresentationItem.cdl
-- Created: Mon Dec 4 12:02:31 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWCompoundRepresentationItem from RWStepRepr
---Purpose : Read & Write Module for CompoundRepresentationItem
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
EntityIterator from Interface,
CompoundRepresentationItem from StepRepr
is
Create returns RWCompoundRepresentationItem;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable CompoundRepresentationItem from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : CompoundRepresentationItem from StepRepr);
Share (me; ent : CompoundRepresentationItem from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWCompoundRepresentationItem;

View File

@@ -0,0 +1,65 @@
#include <RWStepRepr_RWCompoundRepresentationItem.ixx>
#include <TCollection_HAsciiString.hxx>
#include <StepRepr_HArray1OfRepresentationItem.hxx>
#include <StepRepr_RepresentationItem.hxx>
RWStepRepr_RWCompoundRepresentationItem::RWStepRepr_RWCompoundRepresentationItem () { }
void RWStepRepr_RWCompoundRepresentationItem::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_CompoundRepresentationItem)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,2,ach,"compound_representation_item")) return;
// --- inherited field : name ---
Handle(TCollection_HAsciiString) aName;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"name",ach,aName);
// --- own field : item_element
Handle(StepRepr_HArray1OfRepresentationItem) aItems;
Handle(StepRepr_RepresentationItem) anent2;
Standard_Integer nsub2;
if (data->ReadSubList (num,2,"item_element",ach,nsub2)) {
Standard_Integer nb2 = data->NbParams(nsub2);
aItems = new StepRepr_HArray1OfRepresentationItem (1, nb2);
for (Standard_Integer i2 = 1; i2 <= nb2; i2 ++) {
if (data->ReadEntity(nsub2, i2,"representation_item", ach,
STANDARD_TYPE(StepRepr_RepresentationItem), anent2))
aItems->SetValue(i2, anent2);
}
}
ent->Init (aName,aItems);
}
void RWStepRepr_RWCompoundRepresentationItem::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_CompoundRepresentationItem)& ent) const
{
// --- inherited field : name ---
SW.Send(ent->Name());
// --- own field : items ---
SW.OpenSub();
for (Standard_Integer i2 = 1; i2 <= ent->NbItemElement(); i2 ++) {
SW.Send(ent->ItemElementValue(i2));
}
SW.CloseSub();
}
void RWStepRepr_RWCompoundRepresentationItem::Share
(const Handle(StepRepr_CompoundRepresentationItem)& ent,
Interface_EntityIterator& iter) const
{
Standard_Integer i, nb = ent->NbItemElement();
for (i = 1; i <= nb; i ++) iter.AddItem (ent->ItemElementValue(i));
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWConfigurationDesign.cdl
-- Created: Fri Nov 26 16:26:36 1999
-- Author: Andrey BETENEV
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
-- Copyright: Matra Datavision 1999
class RWConfigurationDesign from RWStepRepr
---Purpose: Read & Write tool for ConfigurationDesign
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
ConfigurationDesign from StepRepr
is
Create returns RWConfigurationDesign from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : ConfigurationDesign from StepRepr);
---Purpose: Reads ConfigurationDesign
WriteStep (me; SW: in out StepWriter from StepData;
ent: ConfigurationDesign from StepRepr);
---Purpose: Writes ConfigurationDesign
Share (me; ent : ConfigurationDesign from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWConfigurationDesign;

View File

@@ -0,0 +1,74 @@
// File: RWStepRepr_RWConfigurationDesign.cxx
// Created: Fri Nov 26 16:26:36 1999
// Author: Andrey BETENEV
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
// Copyright: Matra Datavision 1999
#include <RWStepRepr_RWConfigurationDesign.ixx>
//=======================================================================
//function : RWStepRepr_RWConfigurationDesign
//purpose :
//=======================================================================
RWStepRepr_RWConfigurationDesign::RWStepRepr_RWConfigurationDesign ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWConfigurationDesign::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_ConfigurationDesign) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,2,ach,"configuration_design") ) return;
// Own fields of ConfigurationDesign
Handle(StepRepr_ConfigurationItem) aConfiguration;
data->ReadEntity (num, 1, "configuration", ach, STANDARD_TYPE(StepRepr_ConfigurationItem), aConfiguration);
StepRepr_ConfigurationDesignItem aDesign;
data->ReadEntity (num, 2, "design", ach, aDesign);
// Initialize entity
ent->Init(aConfiguration,
aDesign);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWConfigurationDesign::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_ConfigurationDesign) &ent) const
{
// Own fields of ConfigurationDesign
SW.Send (ent->Configuration());
SW.Send (ent->Design().Value());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWConfigurationDesign::Share (const Handle(StepRepr_ConfigurationDesign) &ent,
Interface_EntityIterator& iter) const
{
// Own fields of ConfigurationDesign
iter.AddItem (ent->Configuration());
iter.AddItem (ent->Design().Value());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWConfigurationEffectivity.cdl
-- Created: Fri Nov 26 16:26:36 1999
-- Author: Andrey BETENEV
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
-- Copyright: Matra Datavision 1999
class RWConfigurationEffectivity from RWStepRepr
---Purpose: Read & Write tool for ConfigurationEffectivity
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
ConfigurationEffectivity from StepRepr
is
Create returns RWConfigurationEffectivity from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : ConfigurationEffectivity from StepRepr);
---Purpose: Reads ConfigurationEffectivity
WriteStep (me; SW: in out StepWriter from StepData;
ent: ConfigurationEffectivity from StepRepr);
---Purpose: Writes ConfigurationEffectivity
Share (me; ent : ConfigurationEffectivity from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWConfigurationEffectivity;

View File

@@ -0,0 +1,92 @@
// File: RWStepRepr_RWConfigurationEffectivity.cxx
// Created: Fri Nov 26 16:26:36 1999
// Author: Andrey BETENEV
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
// Copyright: Matra Datavision 1999
#include <RWStepRepr_RWConfigurationEffectivity.ixx>
//=======================================================================
//function : RWStepRepr_RWConfigurationEffectivity
//purpose :
//=======================================================================
RWStepRepr_RWConfigurationEffectivity::RWStepRepr_RWConfigurationEffectivity ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWConfigurationEffectivity::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_ConfigurationEffectivity) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,3,ach,"configuration_effectivity") ) return;
// Inherited fields of Effectivity
Handle(TCollection_HAsciiString) aEffectivity_Id;
data->ReadString (num, 1, "effectivity.id", ach, aEffectivity_Id);
// Inherited fields of ProductDefinitionEffectivity
Handle(StepBasic_ProductDefinitionRelationship) aProductDefinitionEffectivity_Usage;
data->ReadEntity (num, 2, "product_definition_effectivity.usage", ach, STANDARD_TYPE(StepBasic_ProductDefinitionRelationship), aProductDefinitionEffectivity_Usage);
// Own fields of ConfigurationEffectivity
Handle(StepRepr_ConfigurationDesign) aConfiguration;
data->ReadEntity (num, 3, "configuration", ach, STANDARD_TYPE(StepRepr_ConfigurationDesign), aConfiguration);
// Initialize entity
ent->Init(aEffectivity_Id,
aProductDefinitionEffectivity_Usage,
aConfiguration);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWConfigurationEffectivity::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_ConfigurationEffectivity) &ent) const
{
// Inherited fields of Effectivity
SW.Send (ent->StepBasic_Effectivity::Id());
// Inherited fields of ProductDefinitionEffectivity
SW.Send (ent->StepBasic_ProductDefinitionEffectivity::Usage());
// Own fields of ConfigurationEffectivity
SW.Send (ent->Configuration());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWConfigurationEffectivity::Share (const Handle(StepRepr_ConfigurationEffectivity) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of Effectivity
// Inherited fields of ProductDefinitionEffectivity
iter.AddItem (ent->StepBasic_ProductDefinitionEffectivity::Usage());
// Own fields of ConfigurationEffectivity
iter.AddItem (ent->Configuration());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWConfigurationItem.cdl
-- Created: Fri Nov 26 16:26:37 1999
-- Author: Andrey BETENEV
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
-- Copyright: Matra Datavision 1999
class RWConfigurationItem from RWStepRepr
---Purpose: Read & Write tool for ConfigurationItem
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
ConfigurationItem from StepRepr
is
Create returns RWConfigurationItem from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : ConfigurationItem from StepRepr);
---Purpose: Reads ConfigurationItem
WriteStep (me; SW: in out StepWriter from StepData;
ent: ConfigurationItem from StepRepr);
---Purpose: Writes ConfigurationItem
Share (me; ent : ConfigurationItem from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWConfigurationItem;

View File

@@ -0,0 +1,110 @@
// File: RWStepRepr_RWConfigurationItem.cxx
// Created: Fri Nov 26 16:26:37 1999
// Author: Andrey BETENEV
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
// Copyright: Matra Datavision 1999
#include <RWStepRepr_RWConfigurationItem.ixx>
//=======================================================================
//function : RWStepRepr_RWConfigurationItem
//purpose :
//=======================================================================
RWStepRepr_RWConfigurationItem::RWStepRepr_RWConfigurationItem ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWConfigurationItem::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_ConfigurationItem) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,5,ach,"configuration_item") ) return;
// Own fields of ConfigurationItem
Handle(TCollection_HAsciiString) aId;
data->ReadString (num, 1, "id", ach, aId);
Handle(TCollection_HAsciiString) aName;
data->ReadString (num, 2, "name", ach, aName);
Handle(TCollection_HAsciiString) aDescription;
Standard_Boolean hasDescription = Standard_True;
if ( data->IsParamDefined (num,3) ) {
data->ReadString (num, 3, "description", ach, aDescription);
}
else {
hasDescription = Standard_False;
}
Handle(StepRepr_ProductConcept) aItemConcept;
data->ReadEntity (num, 4, "item_concept", ach, STANDARD_TYPE(StepRepr_ProductConcept), aItemConcept);
Handle(TCollection_HAsciiString) aPurpose;
Standard_Boolean hasPurpose = Standard_True;
if ( data->IsParamDefined (num,5) ) {
data->ReadString (num, 5, "purpose", ach, aPurpose);
}
else {
hasPurpose = Standard_False;
}
// Initialize entity
ent->Init(aId,
aName,
hasDescription,
aDescription,
aItemConcept,
hasPurpose,
aPurpose);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWConfigurationItem::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_ConfigurationItem) &ent) const
{
// Own fields of ConfigurationItem
SW.Send (ent->Id());
SW.Send (ent->Name());
if ( ent->HasDescription() ) {
SW.Send (ent->Description());
}
else SW.SendUndef();
SW.Send (ent->ItemConcept());
if ( ent->HasPurpose() ) {
SW.Send (ent->Purpose());
}
else SW.SendUndef();
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWConfigurationItem::Share (const Handle(StepRepr_ConfigurationItem) &ent,
Interface_EntityIterator& iter) const
{
// Own fields of ConfigurationItem
iter.AddItem (ent->ItemConcept());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWDataEnvironment.cdl
-- Created: Thu Dec 12 17:15:59 2002
-- Author: data exchange team
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWDataEnvironment from RWStepRepr
---Purpose: Read & Write tool for DataEnvironment
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
DataEnvironment from StepRepr
is
Create returns RWDataEnvironment from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : DataEnvironment from StepRepr);
---Purpose: Reads DataEnvironment
WriteStep (me; SW: in out StepWriter from StepData;
ent: DataEnvironment from StepRepr);
---Purpose: Writes DataEnvironment
Share (me; ent : DataEnvironment from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWDataEnvironment;

View File

@@ -0,0 +1,98 @@
// File: RWStepRepr_RWDataEnvironment.cxx
// Created: Thu Dec 12 17:15:59 2002
// Author: data exchange team
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepRepr_RWDataEnvironment.ixx>
#include <StepRepr_HArray1OfPropertyDefinitionRepresentation.hxx>
#include <StepRepr_PropertyDefinitionRepresentation.hxx>
//=======================================================================
//function : RWStepRepr_RWDataEnvironment
//purpose :
//=======================================================================
RWStepRepr_RWDataEnvironment::RWStepRepr_RWDataEnvironment ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWDataEnvironment::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_DataEnvironment) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,3,ach,"data_environment") ) return;
// Own fields of DataEnvironment
Handle(TCollection_HAsciiString) aName;
data->ReadString (num, 1, "name", ach, aName);
Handle(TCollection_HAsciiString) aDescription;
data->ReadString (num, 2, "description", ach, aDescription);
Handle(StepRepr_HArray1OfPropertyDefinitionRepresentation) aElements;
Standard_Integer sub3 = 0;
if ( data->ReadSubList (num, 3, "elements", ach, sub3) ) {
Standard_Integer nb0 = data->NbParams(sub3);
aElements = new StepRepr_HArray1OfPropertyDefinitionRepresentation (1, nb0);
Standard_Integer num2 = sub3;
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
Handle(StepRepr_PropertyDefinitionRepresentation) anIt0;
data->ReadEntity (num2, i0, "property_definition_representation", ach, STANDARD_TYPE(StepRepr_PropertyDefinitionRepresentation), anIt0);
aElements->SetValue(i0, anIt0);
}
}
// Initialize entity
ent->Init(aName,
aDescription,
aElements);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWDataEnvironment::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_DataEnvironment) &ent) const
{
// Own fields of DataEnvironment
SW.Send (ent->Name());
SW.Send (ent->Description());
SW.OpenSub();
for (Standard_Integer i2=1; i2 <= ent->Elements()->Length(); i2++ ) {
Handle(StepRepr_PropertyDefinitionRepresentation) Var0 = ent->Elements()->Value(i2);
SW.Send (Var0);
}
SW.CloseSub();
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWDataEnvironment::Share (const Handle(StepRepr_DataEnvironment) &ent,
Interface_EntityIterator& iter) const
{
// Own fields of DataEnvironment
for (Standard_Integer i1=1; i1 <= ent->Elements()->Length(); i1++ ) {
Handle(StepRepr_PropertyDefinitionRepresentation) Var0 = ent->Elements()->Value(i1);
iter.AddItem (Var0);
}
}

View File

@@ -0,0 +1,30 @@
-- File: DefinitionalRepresentation.cdl
-- Created: Mon Dec 4 12:02:25 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWDefinitionalRepresentation from RWStepRepr
---Purpose : Read & Write Module for DefinitionalRepresentation
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
DefinitionalRepresentation from StepRepr,
EntityIterator from Interface
is
Create returns RWDefinitionalRepresentation;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable DefinitionalRepresentation from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : DefinitionalRepresentation from StepRepr);
Share(me; ent : DefinitionalRepresentation from StepRepr; iter : in out EntityIterator);
end RWDefinitionalRepresentation;

View File

@@ -0,0 +1,97 @@
#include <RWStepRepr_RWDefinitionalRepresentation.ixx>
#include <StepRepr_HArray1OfRepresentationItem.hxx>
#include <StepRepr_RepresentationItem.hxx>
#include <StepRepr_RepresentationContext.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepRepr_DefinitionalRepresentation.hxx>
RWStepRepr_RWDefinitionalRepresentation::RWStepRepr_RWDefinitionalRepresentation () {}
void RWStepRepr_RWDefinitionalRepresentation::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_DefinitionalRepresentation)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,3,ach,"definitional_representation")) return;
// --- inherited field : name ---
Handle(TCollection_HAsciiString) aName;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"name",ach,aName);
// --- inherited field : items ---
Handle(StepRepr_HArray1OfRepresentationItem) aItems;
Handle(StepRepr_RepresentationItem) anent2;
Standard_Integer nsub2;
if (data->ReadSubList (num,2,"items",ach,nsub2)) {
Standard_Integer nb2 = data->NbParams(nsub2);
aItems = new StepRepr_HArray1OfRepresentationItem (1, nb2);
for (Standard_Integer i2 = 1; i2 <= nb2; i2 ++) {
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
if (data->ReadEntity (nsub2, i2,"representation_item", ach, STANDARD_TYPE(StepRepr_RepresentationItem), anent2))
aItems->SetValue(i2, anent2);
}
}
// --- inherited field : contextOfItems ---
Handle(StepRepr_RepresentationContext) aContextOfItems;
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
data->ReadEntity(num, 3,"context_of_items", ach, STANDARD_TYPE(StepRepr_RepresentationContext), aContextOfItems);
//--- Initialisation of the read entity ---
ent->Init(aName, aItems, aContextOfItems);
}
void RWStepRepr_RWDefinitionalRepresentation::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_DefinitionalRepresentation)& ent) const
{
// --- inherited field name ---
SW.Send(ent->Name());
// --- inherited field items ---
SW.OpenSub();
for (Standard_Integer i2 = 1; i2 <= ent->NbItems(); i2 ++) {
SW.Send(ent->ItemsValue(i2));
}
SW.CloseSub();
// --- inherited field contextOfItems ---
SW.Send(ent->ContextOfItems());
}
void RWStepRepr_RWDefinitionalRepresentation::Share(const Handle(StepRepr_DefinitionalRepresentation)& ent, Interface_EntityIterator& iter) const
{
Standard_Integer nbElem1 = ent->NbItems();
for (Standard_Integer is1=1; is1<=nbElem1; is1 ++) {
iter.GetOneItem(ent->ItemsValue(is1));
}
iter.GetOneItem(ent->ContextOfItems());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWDerivedShapeAspect.cdl
-- Created: Wed Jun 4 14:17:23 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWDerivedShapeAspect from RWStepRepr
---Purpose: Read & Write tool for DerivedShapeAspect
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
DerivedShapeAspect from StepRepr
is
Create returns RWDerivedShapeAspect from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : DerivedShapeAspect from StepRepr);
---Purpose: Reads DerivedShapeAspect
WriteStep (me; SW: in out StepWriter from StepData;
ent: DerivedShapeAspect from StepRepr);
---Purpose: Writes DerivedShapeAspect
Share (me; ent : DerivedShapeAspect from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWDerivedShapeAspect;

View File

@@ -0,0 +1,90 @@
// File: RWStepRepr_RWDerivedShapeAspect.cxx
// Created: Wed Jun 4 14:17:23 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepRepr_RWDerivedShapeAspect.ixx>
//=======================================================================
//function : RWStepRepr_RWDerivedShapeAspect
//purpose :
//=======================================================================
RWStepRepr_RWDerivedShapeAspect::RWStepRepr_RWDerivedShapeAspect ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWDerivedShapeAspect::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_DerivedShapeAspect) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"derived_shape_aspect") ) return;
// Inherited fields of ShapeAspect
Handle(TCollection_HAsciiString) aShapeAspect_Name;
data->ReadString (num, 1, "shape_aspect.name", ach, aShapeAspect_Name);
Handle(TCollection_HAsciiString) aShapeAspect_Description;
Standard_Boolean hasShapeAspect_Description = Standard_True;
if ( data->IsParamDefined (num,2) ) {
data->ReadString (num, 2, "shape_aspect.description", ach, aShapeAspect_Description);
}
else {
hasShapeAspect_Description = Standard_False;
}
Handle(StepRepr_ProductDefinitionShape) aShapeAspect_OfShape;
data->ReadEntity (num, 3, "shape_aspect.of_shape", ach, STANDARD_TYPE(StepRepr_ProductDefinitionShape), aShapeAspect_OfShape);
StepData_Logical aShapeAspect_ProductDefinitional;
data->ReadLogical (num, 4, "shape_aspect.product_definitional", ach, aShapeAspect_ProductDefinitional);
// Initialize entity
ent->Init(aShapeAspect_Name,
aShapeAspect_Description,
aShapeAspect_OfShape,
aShapeAspect_ProductDefinitional);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWDerivedShapeAspect::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_DerivedShapeAspect) &ent) const
{
// Inherited fields of ShapeAspect
SW.Send (ent->StepRepr_ShapeAspect::Name());
SW.Send (ent->StepRepr_ShapeAspect::Description());
SW.Send (ent->StepRepr_ShapeAspect::OfShape());
SW.SendLogical (ent->StepRepr_ShapeAspect::ProductDefinitional());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWDerivedShapeAspect::Share (const Handle(StepRepr_DerivedShapeAspect) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of ShapeAspect
iter.AddItem (ent->StepRepr_ShapeAspect::OfShape());
}

View File

@@ -0,0 +1,27 @@
-- File: DescriptiveRepresentationItem.cdl
-- Created: Mon Dec 4 12:02:25 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWDescriptiveRepresentationItem from RWStepRepr
---Purpose : Read & Write Module for DescriptiveRepresentationItem
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
DescriptiveRepresentationItem from StepRepr
is
Create returns RWDescriptiveRepresentationItem;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable DescriptiveRepresentationItem from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : DescriptiveRepresentationItem from StepRepr);
end RWDescriptiveRepresentationItem;

View File

@@ -0,0 +1,50 @@
#include <RWStepRepr_RWDescriptiveRepresentationItem.ixx>
RWStepRepr_RWDescriptiveRepresentationItem::RWStepRepr_RWDescriptiveRepresentationItem () {}
void RWStepRepr_RWDescriptiveRepresentationItem::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_DescriptiveRepresentationItem)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,2,ach,"descriptive_representation_item")) return;
// --- inherited field : name ---
Handle(TCollection_HAsciiString) aName;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"name",ach,aName);
// --- own field : description ---
Handle(TCollection_HAsciiString) aDescription;
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
data->ReadString (num,2,"description",ach,aDescription);
//--- Initialisation of the read entity ---
ent->Init(aName, aDescription);
}
void RWStepRepr_RWDescriptiveRepresentationItem::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_DescriptiveRepresentationItem)& ent) const
{
// --- inherited field name ---
SW.Send(ent->Name());
// --- own field : description ---
SW.Send(ent->Description());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWExtension.cdl
-- Created: Wed Jun 4 14:17:23 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWExtension from RWStepRepr
---Purpose: Read & Write tool for Extension
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
Extension from StepRepr
is
Create returns RWExtension from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : Extension from StepRepr);
---Purpose: Reads Extension
WriteStep (me; SW: in out StepWriter from StepData;
ent: Extension from StepRepr);
---Purpose: Writes Extension
Share (me; ent : Extension from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWExtension;

View File

@@ -0,0 +1,90 @@
// File: RWStepRepr_RWExtension.cxx
// Created: Wed Jun 4 14:17:23 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepRepr_RWExtension.ixx>
//=======================================================================
//function : RWStepRepr_RWExtension
//purpose :
//=======================================================================
RWStepRepr_RWExtension::RWStepRepr_RWExtension ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWExtension::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_Extension) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"extension") ) return;
// Inherited fields of ShapeAspect
Handle(TCollection_HAsciiString) aShapeAspect_Name;
data->ReadString (num, 1, "shape_aspect.name", ach, aShapeAspect_Name);
Handle(TCollection_HAsciiString) aShapeAspect_Description;
Standard_Boolean hasShapeAspect_Description = Standard_True;
if ( data->IsParamDefined (num,2) ) {
data->ReadString (num, 2, "shape_aspect.description", ach, aShapeAspect_Description);
}
else {
hasShapeAspect_Description = Standard_False;
}
Handle(StepRepr_ProductDefinitionShape) aShapeAspect_OfShape;
data->ReadEntity (num, 3, "shape_aspect.of_shape", ach, STANDARD_TYPE(StepRepr_ProductDefinitionShape), aShapeAspect_OfShape);
StepData_Logical aShapeAspect_ProductDefinitional;
data->ReadLogical (num, 4, "shape_aspect.product_definitional", ach, aShapeAspect_ProductDefinitional);
// Initialize entity
ent->Init(aShapeAspect_Name,
aShapeAspect_Description,
aShapeAspect_OfShape,
aShapeAspect_ProductDefinitional);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWExtension::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_Extension) &ent) const
{
// Inherited fields of ShapeAspect
SW.Send (ent->StepRepr_ShapeAspect::Name());
SW.Send (ent->StepRepr_ShapeAspect::Description());
SW.Send (ent->StepRepr_ShapeAspect::OfShape());
SW.SendLogical (ent->StepRepr_ShapeAspect::ProductDefinitional());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWExtension::Share (const Handle(StepRepr_Extension) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of ShapeAspect
iter.AddItem (ent->StepRepr_ShapeAspect::OfShape());
}

View File

@@ -0,0 +1,27 @@
-- File: FunctionallyDefinedTransformation.cdl
-- Created: Mon Dec 4 12:02:27 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWFunctionallyDefinedTransformation from RWStepRepr
---Purpose : Read & Write Module for FunctionallyDefinedTransformation
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
FunctionallyDefinedTransformation from StepRepr
is
Create returns RWFunctionallyDefinedTransformation;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable FunctionallyDefinedTransformation from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : FunctionallyDefinedTransformation from StepRepr);
end RWFunctionallyDefinedTransformation;

View File

@@ -0,0 +1,51 @@
//gka 05.03.99 S4134 upgrade from CD to DIS
#include <RWStepRepr_RWFunctionallyDefinedTransformation.ixx>
RWStepRepr_RWFunctionallyDefinedTransformation::RWStepRepr_RWFunctionallyDefinedTransformation () {}
void RWStepRepr_RWFunctionallyDefinedTransformation::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_FunctionallyDefinedTransformation)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,2,ach,"functionally_defined_transformation")) return;
// --- own field : name ---
Handle(TCollection_HAsciiString) aName;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"name",ach,aName);
// --- own field : description ---
Handle(TCollection_HAsciiString) aDescription;
if (data->IsParamDefined (num,2)) { //gka 05.03.99 S4134 upgrade from CD to DIS
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
data->ReadString (num,2,"description",ach,aDescription);
}
//--- Initialisation of the read entity ---
ent->Init(aName, aDescription);
}
void RWStepRepr_RWFunctionallyDefinedTransformation::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_FunctionallyDefinedTransformation)& ent) const
{
// --- own field : name ---
SW.Send(ent->Name());
// --- own field : description ---
SW.Send(ent->Description());
}

View File

@@ -0,0 +1,30 @@
-- File: GlobalUncertaintyAssignedContext.cdl
-- Created: Mon Dec 4 12:02:27 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWGlobalUncertaintyAssignedContext from RWStepRepr
---Purpose : Read & Write Module for GlobalUncertaintyAssignedContext
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
GlobalUncertaintyAssignedContext from StepRepr,
EntityIterator from Interface
is
Create returns RWGlobalUncertaintyAssignedContext;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable GlobalUncertaintyAssignedContext from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : GlobalUncertaintyAssignedContext from StepRepr);
Share(me; ent : GlobalUncertaintyAssignedContext from StepRepr; iter : in out EntityIterator);
end RWGlobalUncertaintyAssignedContext;

View File

@@ -0,0 +1,94 @@
#include <RWStepRepr_RWGlobalUncertaintyAssignedContext.ixx>
#include <StepBasic_HArray1OfUncertaintyMeasureWithUnit.hxx>
#include <StepBasic_UncertaintyMeasureWithUnit.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepRepr_GlobalUncertaintyAssignedContext.hxx>
RWStepRepr_RWGlobalUncertaintyAssignedContext::RWStepRepr_RWGlobalUncertaintyAssignedContext () {}
void RWStepRepr_RWGlobalUncertaintyAssignedContext::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_GlobalUncertaintyAssignedContext)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,3,ach,"global_uncertainty_assigned_context")) return;
// --- inherited field : contextIdentifier ---
Handle(TCollection_HAsciiString) aContextIdentifier;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"context_identifier",ach,aContextIdentifier);
// --- inherited field : contextType ---
Handle(TCollection_HAsciiString) aContextType;
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
data->ReadString (num,2,"context_type",ach,aContextType);
// --- own field : uncertainty ---
Handle(StepBasic_HArray1OfUncertaintyMeasureWithUnit) aUncertainty;
Handle(StepBasic_UncertaintyMeasureWithUnit) anent3;
Standard_Integer nsub3;
if (data->ReadSubList (num,3,"uncertainty",ach,nsub3)) {
Standard_Integer nb3 = data->NbParams(nsub3);
aUncertainty = new StepBasic_HArray1OfUncertaintyMeasureWithUnit (1, nb3);
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
if (data->ReadEntity (nsub3, i3,"uncertainty_measure_with_unit", ach,
STANDARD_TYPE(StepBasic_UncertaintyMeasureWithUnit), anent3))
aUncertainty->SetValue(i3, anent3);
}
}
//--- Initialisation of the read entity ---
ent->Init(aContextIdentifier, aContextType, aUncertainty);
}
void RWStepRepr_RWGlobalUncertaintyAssignedContext::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_GlobalUncertaintyAssignedContext)& ent) const
{
// --- inherited field contextIdentifier ---
SW.Send(ent->ContextIdentifier());
// --- inherited field contextType ---
SW.Send(ent->ContextType());
// --- own field : uncertainty ---
SW.OpenSub();
for (Standard_Integer i3 = 1; i3 <= ent->NbUncertainty(); i3 ++) {
SW.Send(ent->UncertaintyValue(i3));
}
SW.CloseSub();
}
void RWStepRepr_RWGlobalUncertaintyAssignedContext::Share(const Handle(StepRepr_GlobalUncertaintyAssignedContext)& ent, Interface_EntityIterator& iter) const
{
Standard_Integer nbElem1 = ent->NbUncertainty();
for (Standard_Integer is1=1; is1<=nbElem1; is1 ++) {
iter.GetOneItem(ent->UncertaintyValue(is1));
}
}

View File

@@ -0,0 +1,30 @@
-- File: GlobalUnitAssignedContext.cdl
-- Created: Mon Dec 4 12:02:27 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWGlobalUnitAssignedContext from RWStepRepr
---Purpose : Read & Write Module for GlobalUnitAssignedContext
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
GlobalUnitAssignedContext from StepRepr,
EntityIterator from Interface
is
Create returns RWGlobalUnitAssignedContext;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable GlobalUnitAssignedContext from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : GlobalUnitAssignedContext from StepRepr);
Share(me; ent : GlobalUnitAssignedContext from StepRepr; iter : in out EntityIterator);
end RWGlobalUnitAssignedContext;

View File

@@ -0,0 +1,93 @@
#include <RWStepRepr_RWGlobalUnitAssignedContext.ixx>
#include <StepBasic_HArray1OfNamedUnit.hxx>
#include <StepBasic_NamedUnit.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepRepr_GlobalUnitAssignedContext.hxx>
RWStepRepr_RWGlobalUnitAssignedContext::RWStepRepr_RWGlobalUnitAssignedContext () {}
void RWStepRepr_RWGlobalUnitAssignedContext::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_GlobalUnitAssignedContext)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,3,ach,"global_unit_assigned_context")) return;
// --- inherited field : contextIdentifier ---
Handle(TCollection_HAsciiString) aContextIdentifier;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"context_identifier",ach,aContextIdentifier);
// --- inherited field : contextType ---
Handle(TCollection_HAsciiString) aContextType;
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
data->ReadString (num,2,"context_type",ach,aContextType);
// --- own field : units ---
Handle(StepBasic_HArray1OfNamedUnit) aUnits;
Handle(StepBasic_NamedUnit) anent3;
Standard_Integer nsub3;
if (data->ReadSubList (num,3,"units",ach,nsub3)) {
Standard_Integer nb3 = data->NbParams(nsub3);
aUnits = new StepBasic_HArray1OfNamedUnit (1, nb3);
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
if (data->ReadEntity (nsub3, i3,"unit", ach, STANDARD_TYPE(StepBasic_NamedUnit), anent3))
aUnits->SetValue(i3, anent3);
}
}
//--- Initialisation of the read entity ---
ent->Init(aContextIdentifier, aContextType, aUnits);
}
void RWStepRepr_RWGlobalUnitAssignedContext::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_GlobalUnitAssignedContext)& ent) const
{
// --- inherited field contextIdentifier ---
SW.Send(ent->ContextIdentifier());
// --- inherited field contextType ---
SW.Send(ent->ContextType());
// --- own field : units ---
SW.OpenSub();
for (Standard_Integer i3 = 1; i3 <= ent->NbUnits(); i3 ++) {
SW.Send(ent->UnitsValue(i3));
}
SW.CloseSub();
}
void RWStepRepr_RWGlobalUnitAssignedContext::Share(const Handle(StepRepr_GlobalUnitAssignedContext)& ent, Interface_EntityIterator& iter) const
{
Standard_Integer nbElem1 = ent->NbUnits();
for (Standard_Integer is1=1; is1<=nbElem1; is1 ++) {
iter.GetOneItem(ent->UnitsValue(is1));
}
}

View File

@@ -0,0 +1,30 @@
-- File: ItemDefinedTransformation.cdl
-- Created: Mon Dec 4 12:02:28 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWItemDefinedTransformation from RWStepRepr
---Purpose : Read & Write Module for ItemDefinedTransformation
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
ItemDefinedTransformation from StepRepr,
EntityIterator from Interface
is
Create returns RWItemDefinedTransformation;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable ItemDefinedTransformation from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : ItemDefinedTransformation from StepRepr);
Share(me; ent : ItemDefinedTransformation from StepRepr; iter : in out EntityIterator);
end RWItemDefinedTransformation;

View File

@@ -0,0 +1,65 @@
//gka 05.03.99 S4134 upgrade from CD to DIS
#include <RWStepRepr_RWItemDefinedTransformation.ixx>
#include <TCollection_HAsciiString.hxx>
#include <StepRepr_RepresentationItem.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepRepr_ItemDefinedTransformation.hxx>
RWStepRepr_RWItemDefinedTransformation::RWStepRepr_RWItemDefinedTransformation () {}
void RWStepRepr_RWItemDefinedTransformation::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_ItemDefinedTransformation)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,4,ach,"item_defined_transformation")) return;
// --- own fields
Handle(TCollection_HAsciiString) name,description;
//szv#4:S4163:12Mar99 `Standard_Boolean st =` not needed
data->ReadString (num,1,"name",ach,name);
if (data->IsParamDefined (num,2)) { //gka 05.03.99 S4134 upgrade from CD to DIS
//szv#4:S4163:12Mar99 `st =` not needed
data->ReadString (num,2,"description",ach,description);
}
Handle(StepRepr_RepresentationItem) ti1,ti2;
//szv#4:S4163:12Mar99 `st =` not needed
data->ReadEntity (num,3,"transform_item_1",ach, STANDARD_TYPE(StepRepr_RepresentationItem), ti1);
data->ReadEntity (num,4,"transform_item_2",ach, STANDARD_TYPE(StepRepr_RepresentationItem), ti2);
//--- Initialisation of the read entity ---
ent->Init(name,description,ti1,ti2);
}
void RWStepRepr_RWItemDefinedTransformation::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_ItemDefinedTransformation)& ent) const
{
// --- own field : dimensions ---
SW.Send(ent->Name());
SW.Send(ent->Description());
SW.Send(ent->TransformItem1());
SW.Send(ent->TransformItem2());
}
void RWStepRepr_RWItemDefinedTransformation::Share(const Handle(StepRepr_ItemDefinedTransformation)& ent, Interface_EntityIterator& iter) const
{
iter.AddItem(ent->TransformItem1());
iter.AddItem(ent->TransformItem2());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWMakeFromUsageOption.cdl
-- Created: Mon Jul 3 20:13:36 2000
-- Author: Andrey BETENEV
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
-- Copyright: Matra Datavision 2000
class RWMakeFromUsageOption from RWStepRepr
---Purpose: Read & Write tool for MakeFromUsageOption
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
MakeFromUsageOption from StepRepr
is
Create returns RWMakeFromUsageOption from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : MakeFromUsageOption from StepRepr);
---Purpose: Reads MakeFromUsageOption
WriteStep (me; SW: in out StepWriter from StepData;
ent: MakeFromUsageOption from StepRepr);
---Purpose: Writes MakeFromUsageOption
Share (me; ent : MakeFromUsageOption from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWMakeFromUsageOption;

View File

@@ -0,0 +1,128 @@
// File: RWStepRepr_RWMakeFromUsageOption.cxx
// Created: Mon Jul 3 20:13:36 2000
// Author: Andrey BETENEV
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
// Copyright: Matra Datavision 2000
#include <RWStepRepr_RWMakeFromUsageOption.ixx>
//=======================================================================
//function : RWStepRepr_RWMakeFromUsageOption
//purpose :
//=======================================================================
RWStepRepr_RWMakeFromUsageOption::RWStepRepr_RWMakeFromUsageOption ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWMakeFromUsageOption::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_MakeFromUsageOption) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,8,ach,"make_from_usage_option") ) return;
// Inherited fields of ProductDefinitionRelationship
Handle(TCollection_HAsciiString) aProductDefinitionRelationship_Id;
data->ReadString (num, 1, "product_definition_relationship.id", ach, aProductDefinitionRelationship_Id);
Handle(TCollection_HAsciiString) aProductDefinitionRelationship_Name;
data->ReadString (num, 2, "product_definition_relationship.name", ach, aProductDefinitionRelationship_Name);
Handle(TCollection_HAsciiString) aProductDefinitionRelationship_Description;
Standard_Boolean hasProductDefinitionRelationship_Description = Standard_True;
if ( data->IsParamDefined (num,3) ) {
data->ReadString (num, 3, "product_definition_relationship.description", ach, aProductDefinitionRelationship_Description);
}
else {
hasProductDefinitionRelationship_Description = Standard_False;
}
Handle(StepBasic_ProductDefinition) aProductDefinitionRelationship_RelatingProductDefinition;
data->ReadEntity (num, 4, "product_definition_relationship.relating_product_definition", ach, STANDARD_TYPE(StepBasic_ProductDefinition), aProductDefinitionRelationship_RelatingProductDefinition);
Handle(StepBasic_ProductDefinition) aProductDefinitionRelationship_RelatedProductDefinition;
data->ReadEntity (num, 5, "product_definition_relationship.related_product_definition", ach, STANDARD_TYPE(StepBasic_ProductDefinition), aProductDefinitionRelationship_RelatedProductDefinition);
// Own fields of MakeFromUsageOption
Standard_Integer aRanking;
data->ReadInteger (num, 6, "ranking", ach, aRanking);
Handle(TCollection_HAsciiString) aRankingRationale;
data->ReadString (num, 7, "ranking_rationale", ach, aRankingRationale);
Handle(StepBasic_MeasureWithUnit) aQuantity;
data->ReadEntity (num, 8, "quantity", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aQuantity);
// Initialize entity
ent->Init(aProductDefinitionRelationship_Id,
aProductDefinitionRelationship_Name,
hasProductDefinitionRelationship_Description,
aProductDefinitionRelationship_Description,
aProductDefinitionRelationship_RelatingProductDefinition,
aProductDefinitionRelationship_RelatedProductDefinition,
aRanking,
aRankingRationale,
aQuantity);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWMakeFromUsageOption::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_MakeFromUsageOption) &ent) const
{
// Inherited fields of ProductDefinitionRelationship
SW.Send (ent->StepBasic_ProductDefinitionRelationship::Id());
SW.Send (ent->StepBasic_ProductDefinitionRelationship::Name());
if ( ent->StepBasic_ProductDefinitionRelationship::HasDescription() ) {
SW.Send (ent->StepBasic_ProductDefinitionRelationship::Description());
}
else SW.SendUndef();
SW.Send (ent->StepBasic_ProductDefinitionRelationship::RelatingProductDefinition());
SW.Send (ent->StepBasic_ProductDefinitionRelationship::RelatedProductDefinition());
// Own fields of MakeFromUsageOption
SW.Send (ent->Ranking());
SW.Send (ent->RankingRationale());
SW.Send (ent->Quantity());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWMakeFromUsageOption::Share (const Handle(StepRepr_MakeFromUsageOption) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of ProductDefinitionRelationship
iter.AddItem (ent->StepBasic_ProductDefinitionRelationship::RelatingProductDefinition());
iter.AddItem (ent->StepBasic_ProductDefinitionRelationship::RelatedProductDefinition());
// Own fields of MakeFromUsageOption
iter.AddItem (ent->Quantity());
}

View File

@@ -0,0 +1,30 @@
-- File: MappedItem.cdl
-- Created: Mon Dec 4 12:02:27 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWMappedItem from RWStepRepr
---Purpose : Read & Write Module for MappedItem
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
MappedItem from StepRepr,
EntityIterator from Interface
is
Create returns RWMappedItem;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable MappedItem from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : MappedItem from StepRepr);
Share(me; ent : MappedItem from StepRepr; iter : in out EntityIterator);
end RWMappedItem;

View File

@@ -0,0 +1,79 @@
#include <RWStepRepr_RWMappedItem.ixx>
#include <StepRepr_RepresentationMap.hxx>
#include <StepRepr_RepresentationItem.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepRepr_MappedItem.hxx>
RWStepRepr_RWMappedItem::RWStepRepr_RWMappedItem () {}
void RWStepRepr_RWMappedItem::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_MappedItem)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,3,ach,"mapped_item")) return;
// --- inherited field : name ---
Handle(TCollection_HAsciiString) aName;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"name",ach,aName);
// --- own field : mappingSource ---
Handle(StepRepr_RepresentationMap) aMappingSource;
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
data->ReadEntity(num, 2,"mapping_source", ach, STANDARD_TYPE(StepRepr_RepresentationMap), aMappingSource);
// --- own field : mappingTarget ---
Handle(StepRepr_RepresentationItem) aMappingTarget;
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
data->ReadEntity(num, 3,"mapping_target", ach, STANDARD_TYPE(StepRepr_RepresentationItem), aMappingTarget);
//--- Initialisation of the read entity ---
ent->Init(aName, aMappingSource, aMappingTarget);
}
void RWStepRepr_RWMappedItem::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_MappedItem)& ent) const
{
// --- inherited field name ---
SW.Send(ent->Name());
// --- own field : mappingSource ---
SW.Send(ent->MappingSource());
// --- own field : mappingTarget ---
SW.Send(ent->MappingTarget());
}
void RWStepRepr_RWMappedItem::Share(const Handle(StepRepr_MappedItem)& ent, Interface_EntityIterator& iter) const
{
iter.GetOneItem(ent->MappingSource());
iter.GetOneItem(ent->MappingTarget());
}

View File

@@ -0,0 +1,29 @@
-- File: RWStepRepr_RWMaterialDesignation.cdl
-- Created: Fri Jul 24 15:48:22 1998
-- Author: Christian CAILLET
-- <cky@heliox.paris1.matra-dtv.fr>
---Copyright: Matra Datavision 1998
class RWMaterialDesignation from RWStepRepr
---Purpose : Read & Write Module for MaterialDesignation
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
MaterialDesignation from StepRepr,
EntityIterator from Interface
is
Create returns RWMaterialDesignation;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable MaterialDesignation from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : MaterialDesignation from StepRepr);
Share(me; ent : MaterialDesignation from StepRepr; iter : in out EntityIterator);
end RWMaterialDesignation;

View File

@@ -0,0 +1,62 @@
#include <RWStepRepr_RWMaterialDesignation.ixx>
#include <StepRepr_CharacterizedDefinition.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepRepr_MaterialDesignation.hxx>
RWStepRepr_RWMaterialDesignation::RWStepRepr_RWMaterialDesignation () {}
void RWStepRepr_RWMaterialDesignation::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_MaterialDesignation)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,2,ach,"material_designation")) return;
// --- own field : name ---
Handle(TCollection_HAsciiString) aName;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"name",ach,aName);
StepRepr_CharacterizedDefinition aOfDefinition;
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
data->ReadEntity(num,2,"of_definition",ach, aOfDefinition);
//--- Initialisation of the read entity ---
ent->Init(aName, aOfDefinition);
}
void RWStepRepr_RWMaterialDesignation::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_MaterialDesignation)& ent) const
{
// --- own field : name ---
SW.Send(ent->Name());
// --- own field : of_definition ---
SW.Send(ent->OfDefinition().Value());
}
void RWStepRepr_RWMaterialDesignation::Share(const Handle(StepRepr_MaterialDesignation)& ent, Interface_EntityIterator& iter) const
{
iter.AddItem (ent->OfDefinition().Value());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWMaterialProperty.cdl
-- Created: Sat Dec 14 11:01:41 2002
-- Author: data exchange team
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWMaterialProperty from RWStepRepr
---Purpose: Read & Write tool for MaterialProperty
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
MaterialProperty from StepRepr
is
Create returns RWMaterialProperty from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : MaterialProperty from StepRepr);
---Purpose: Reads MaterialProperty
WriteStep (me; SW: in out StepWriter from StepData;
ent: MaterialProperty from StepRepr);
---Purpose: Writes MaterialProperty
Share (me; ent : MaterialProperty from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWMaterialProperty;

View File

@@ -0,0 +1,88 @@
// File: RWStepRepr_RWMaterialProperty.cxx
// Created: Sat Dec 14 11:01:41 2002
// Author: data exchange team
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepRepr_RWMaterialProperty.ixx>
//=======================================================================
//function : RWStepRepr_RWMaterialProperty
//purpose :
//=======================================================================
RWStepRepr_RWMaterialProperty::RWStepRepr_RWMaterialProperty ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWMaterialProperty::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_MaterialProperty) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,3,ach,"material_property") ) return;
// Inherited fields of PropertyDefinition
Handle(TCollection_HAsciiString) aPropertyDefinition_Name;
data->ReadString (num, 1, "property_definition.name", ach, aPropertyDefinition_Name);
Handle(TCollection_HAsciiString) aPropertyDefinition_Description;
Standard_Boolean hasPropertyDefinition_Description = Standard_True;
if ( data->IsParamDefined (num,2) ) {
data->ReadString (num, 2, "property_definition.description", ach, aPropertyDefinition_Description);
}
else {
hasPropertyDefinition_Description = Standard_False;
}
StepRepr_CharacterizedDefinition aPropertyDefinition_Definition;
data->ReadEntity (num, 3, "property_definition.definition", ach, aPropertyDefinition_Definition);
// Initialize entity
ent->Init(aPropertyDefinition_Name,
hasPropertyDefinition_Description,
aPropertyDefinition_Description,
aPropertyDefinition_Definition);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWMaterialProperty::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_MaterialProperty) &ent) const
{
// Inherited fields of PropertyDefinition
SW.Send (ent->StepRepr_PropertyDefinition::Name());
if ( ent->StepRepr_PropertyDefinition::HasDescription() ) {
SW.Send (ent->StepRepr_PropertyDefinition::Description());
}
else SW.SendUndef();
SW.Send (ent->StepRepr_PropertyDefinition::Definition().Value());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWMaterialProperty::Share (const Handle(StepRepr_MaterialProperty) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of PropertyDefinition
iter.AddItem (ent->StepRepr_PropertyDefinition::Definition().Value());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWMaterialPropertyRepresentation.cdl
-- Created: Thu Dec 12 17:15:59 2002
-- Author: data exchange team
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWMaterialPropertyRepresentation from RWStepRepr
---Purpose: Read & Write tool for MaterialPropertyRepresentation
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
MaterialPropertyRepresentation from StepRepr
is
Create returns RWMaterialPropertyRepresentation from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : MaterialPropertyRepresentation from StepRepr);
---Purpose: Reads MaterialPropertyRepresentation
WriteStep (me; SW: in out StepWriter from StepData;
ent: MaterialPropertyRepresentation from StepRepr);
---Purpose: Writes MaterialPropertyRepresentation
Share (me; ent : MaterialPropertyRepresentation from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWMaterialPropertyRepresentation;

View File

@@ -0,0 +1,88 @@
// File: RWStepRepr_RWMaterialPropertyRepresentation.cxx
// Created: Thu Dec 12 17:15:59 2002
// Author: data exchange team
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepRepr_RWMaterialPropertyRepresentation.ixx>
//=======================================================================
//function : RWStepRepr_RWMaterialPropertyRepresentation
//purpose :
//=======================================================================
RWStepRepr_RWMaterialPropertyRepresentation::RWStepRepr_RWMaterialPropertyRepresentation ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWMaterialPropertyRepresentation::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_MaterialPropertyRepresentation) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,3,ach,"material_property_representation") ) return;
// Inherited fields of PropertyDefinitionRepresentation
StepRepr_RepresentedDefinition aPropertyDefinitionRepresentation_Definition;
data->ReadEntity (num, 1, "property_definition_representation.definition", ach, aPropertyDefinitionRepresentation_Definition);
Handle(StepRepr_Representation) aPropertyDefinitionRepresentation_UsedRepresentation;
data->ReadEntity (num, 2, "property_definition_representation.used_representation", ach, STANDARD_TYPE(StepRepr_Representation), aPropertyDefinitionRepresentation_UsedRepresentation);
// Own fields of MaterialPropertyRepresentation
Handle(StepRepr_DataEnvironment) aDependentEnvironment;
data->ReadEntity (num, 3, "dependent_environment", ach, STANDARD_TYPE(StepRepr_DataEnvironment), aDependentEnvironment);
// Initialize entity
ent->Init(aPropertyDefinitionRepresentation_Definition,
aPropertyDefinitionRepresentation_UsedRepresentation,
aDependentEnvironment);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWMaterialPropertyRepresentation::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_MaterialPropertyRepresentation) &ent) const
{
// Inherited fields of PropertyDefinitionRepresentation
SW.Send (ent->StepRepr_PropertyDefinitionRepresentation::Definition().Value());
SW.Send (ent->StepRepr_PropertyDefinitionRepresentation::UsedRepresentation());
// Own fields of MaterialPropertyRepresentation
SW.Send (ent->DependentEnvironment());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWMaterialPropertyRepresentation::Share (const Handle(StepRepr_MaterialPropertyRepresentation) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of PropertyDefinitionRepresentation
iter.AddItem (ent->StepRepr_PropertyDefinitionRepresentation::Definition().Value());
iter.AddItem (ent->StepRepr_PropertyDefinitionRepresentation::UsedRepresentation());
// Own fields of MaterialPropertyRepresentation
iter.AddItem (ent->DependentEnvironment());
}

View File

@@ -0,0 +1,29 @@
-- File: RWStepRepr_RWMeasureRepresentationItem.cdl
-- Created: Wed Sep 8 11:41:18 1999
-- Author: Andrey BETENEV
-- <abv@doomox.nnov.matra-dtv.fr>
---Copyright: Matra Datavision 1999
class RWMeasureRepresentationItem from RWStepRepr
---Purpose : Read & Write Module for MeasureRepresentationItem
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
MeasureRepresentationItem from StepRepr,
EntityIterator from Interface
is
Create returns RWMeasureRepresentationItem;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable MeasureRepresentationItem from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : MeasureRepresentationItem from StepRepr);
Share(me; ent : MeasureRepresentationItem from StepRepr; iter : in out EntityIterator from Interface);
end RWMeasureRepresentationItem;

View File

@@ -0,0 +1,86 @@
// File: RWStepRepr_RWMeasureRepresentationItem.cxx
// Created: Wed Sep 8 11:41:37 1999
// Author: Andrey BETENEV
// <abv@doomox.nnov.matra-dtv.fr>
#include <RWStepRepr_RWMeasureRepresentationItem.ixx>
#include <StepRepr_MeasureRepresentationItem.hxx>
#include <StepBasic_NamedUnit.hxx>
#include <StepBasic_MeasureValueMember.hxx>
#include <StepBasic_MeasureWithUnit.hxx>
#include <TCollection_AsciiString.hxx>
#include <string.h>
#include <Interface_EntityIterator.hxx>
#include <Interface_FloatWriter.hxx>
#include <Interface_MSG.hxx>
//=======================================================================
//function : RWStepRepr_RWMeasureRepresentationItem
//purpose :
//=======================================================================
RWStepRepr_RWMeasureRepresentationItem::RWStepRepr_RWMeasureRepresentationItem () {}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWMeasureRepresentationItem::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_MeasureRepresentationItem)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,3,ach,"measure_representation_item")) return;
// --- inherited from representation_item : name ---
Handle(TCollection_HAsciiString) aName;
data->ReadString (num,1,"name",ach,aName);
// --- inherited from measure_with_unit : value_component ---
Handle(StepBasic_MeasureValueMember) mvc = new StepBasic_MeasureValueMember;
data->ReadMember (num,2, "value_component", ach, mvc);
// --- inherited from measure_with_unit : unit_component ---
StepBasic_Unit aUnitComponent;
data->ReadEntity(num, 3,"unit_component", ach, aUnitComponent);
//--- Initialisation of the read entity ---
ent->Init(aName, mvc, aUnitComponent);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWMeasureRepresentationItem::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_MeasureRepresentationItem)& ent) const
{
// --- inherited from representation_item : name ---
SW.Send(ent->Name());
// --- inherited from measure_with_unit : value_component ---
SW.Send(ent->Measure()->ValueComponentMember());
// --- inherited from measure_with_unit : unit_component ---
SW.Send(ent->Measure()->UnitComponent().Value());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWMeasureRepresentationItem::Share(const Handle(StepRepr_MeasureRepresentationItem)& ent,
Interface_EntityIterator& iter) const
{
iter.GetOneItem(ent->Measure()->UnitComponent().Value());
}

View File

@@ -0,0 +1,27 @@
-- File: ParametricRepresentationContext.cdl
-- Created: Mon Dec 4 12:02:28 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWParametricRepresentationContext from RWStepRepr
---Purpose : Read & Write Module for ParametricRepresentationContext
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
ParametricRepresentationContext from StepRepr
is
Create returns RWParametricRepresentationContext;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable ParametricRepresentationContext from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : ParametricRepresentationContext from StepRepr);
end RWParametricRepresentationContext;

View File

@@ -0,0 +1,50 @@
#include <RWStepRepr_RWParametricRepresentationContext.ixx>
RWStepRepr_RWParametricRepresentationContext::RWStepRepr_RWParametricRepresentationContext () {}
void RWStepRepr_RWParametricRepresentationContext::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_ParametricRepresentationContext)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,2,ach,"parametric_representation_context")) return;
// --- inherited field : contextIdentifier ---
Handle(TCollection_HAsciiString) aContextIdentifier;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"context_identifier",ach,aContextIdentifier);
// --- inherited field : contextType ---
Handle(TCollection_HAsciiString) aContextType;
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
data->ReadString (num,2,"context_type",ach,aContextType);
//--- Initialisation of the read entity ---
ent->Init(aContextIdentifier, aContextType);
}
void RWStepRepr_RWParametricRepresentationContext::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_ParametricRepresentationContext)& ent) const
{
// --- inherited field contextIdentifier ---
SW.Send(ent->ContextIdentifier());
// --- inherited field contextType ---
SW.Send(ent->ContextType());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWProductConcept.cdl
-- Created: Fri Nov 26 16:26:38 1999
-- Author: Andrey BETENEV
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
-- Copyright: Matra Datavision 1999
class RWProductConcept from RWStepRepr
---Purpose: Read & Write tool for ProductConcept
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
ProductConcept from StepRepr
is
Create returns RWProductConcept from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : ProductConcept from StepRepr);
---Purpose: Reads ProductConcept
WriteStep (me; SW: in out StepWriter from StepData;
ent: ProductConcept from StepRepr);
---Purpose: Writes ProductConcept
Share (me; ent : ProductConcept from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWProductConcept;

View File

@@ -0,0 +1,94 @@
// File: RWStepRepr_RWProductConcept.cxx
// Created: Fri Nov 26 16:26:39 1999
// Author: Andrey BETENEV
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
// Copyright: Matra Datavision 1999
#include <RWStepRepr_RWProductConcept.ixx>
//=======================================================================
//function : RWStepRepr_RWProductConcept
//purpose :
//=======================================================================
RWStepRepr_RWProductConcept::RWStepRepr_RWProductConcept ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWProductConcept::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_ProductConcept) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"product_concept") ) return;
// Own fields of ProductConcept
Handle(TCollection_HAsciiString) aId;
data->ReadString (num, 1, "id", ach, aId);
Handle(TCollection_HAsciiString) aName;
data->ReadString (num, 2, "name", ach, aName);
Handle(TCollection_HAsciiString) aDescription;
Standard_Boolean hasDescription = Standard_True;
if ( data->IsParamDefined (num,3) ) {
data->ReadString (num, 3, "description", ach, aDescription);
}
else {
hasDescription = Standard_False;
}
Handle(StepBasic_ProductConceptContext) aMarketContext;
data->ReadEntity (num, 4, "market_context", ach, STANDARD_TYPE(StepBasic_ProductConceptContext), aMarketContext);
// Initialize entity
ent->Init(aId,
aName,
hasDescription,
aDescription,
aMarketContext);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWProductConcept::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_ProductConcept) &ent) const
{
// Own fields of ProductConcept
SW.Send (ent->Id());
SW.Send (ent->Name());
if ( ent->HasDescription() ) {
SW.Send (ent->Description());
}
else SW.SendUndef();
SW.Send (ent->MarketContext());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWProductConcept::Share (const Handle(StepRepr_ProductConcept) &ent,
Interface_EntityIterator& iter) const
{
// Own fields of ProductConcept
iter.AddItem (ent->MarketContext());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWProductDefinitionShape.cdl
-- Created: Mon Jul 3 16:29:03 2000
-- Author: Andrey BETENEV
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
-- Copyright: Matra Datavision 2000
class RWProductDefinitionShape from RWStepRepr
---Purpose: Read & Write tool for ProductDefinitionShape
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
ProductDefinitionShape from StepRepr
is
Create returns RWProductDefinitionShape from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : ProductDefinitionShape from StepRepr);
---Purpose: Reads ProductDefinitionShape
WriteStep (me; SW: in out StepWriter from StepData;
ent: ProductDefinitionShape from StepRepr);
---Purpose: Writes ProductDefinitionShape
Share (me; ent : ProductDefinitionShape from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWProductDefinitionShape;

View File

@@ -0,0 +1,88 @@
// File: RWStepRepr_RWProductDefinitionShape.cxx
// Created: Mon Jul 3 16:29:03 2000
// Author: Andrey BETENEV
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
// Copyright: Matra Datavision 2000
#include <RWStepRepr_RWProductDefinitionShape.ixx>
//=======================================================================
//function : RWStepRepr_RWProductDefinitionShape
//purpose :
//=======================================================================
RWStepRepr_RWProductDefinitionShape::RWStepRepr_RWProductDefinitionShape ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWProductDefinitionShape::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_ProductDefinitionShape) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,3,ach,"product_definition_shape") ) return;
// Inherited fields of PropertyDefinition
Handle(TCollection_HAsciiString) aPropertyDefinition_Name;
data->ReadString (num, 1, "property_definition.name", ach, aPropertyDefinition_Name);
Handle(TCollection_HAsciiString) aPropertyDefinition_Description;
Standard_Boolean hasPropertyDefinition_Description = Standard_True;
if ( data->IsParamDefined (num,2) ) {
data->ReadString (num, 2, "property_definition.description", ach, aPropertyDefinition_Description);
}
else {
hasPropertyDefinition_Description = Standard_False;
}
StepRepr_CharacterizedDefinition aPropertyDefinition_Definition;
data->ReadEntity (num, 3, "property_definition.definition", ach, aPropertyDefinition_Definition);
// Initialize entity
ent->Init(aPropertyDefinition_Name,
hasPropertyDefinition_Description,
aPropertyDefinition_Description,
aPropertyDefinition_Definition);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWProductDefinitionShape::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_ProductDefinitionShape) &ent) const
{
// Inherited fields of PropertyDefinition
SW.Send (ent->StepRepr_PropertyDefinition::Name());
if ( ent->StepRepr_PropertyDefinition::HasDescription() ) {
SW.Send (ent->StepRepr_PropertyDefinition::Description());
}
else SW.SendUndef();
SW.Send (ent->StepRepr_PropertyDefinition::Definition().Value());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWProductDefinitionShape::Share (const Handle(StepRepr_ProductDefinitionShape) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of PropertyDefinition
iter.AddItem (ent->StepRepr_PropertyDefinition::Definition().Value());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWPropertyDefinition.cdl
-- Created: Mon Jul 3 16:29:03 2000
-- Author: Andrey BETENEV
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
-- Copyright: Matra Datavision 2000
class RWPropertyDefinition from RWStepRepr
---Purpose: Read & Write tool for PropertyDefinition
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
PropertyDefinition from StepRepr
is
Create returns RWPropertyDefinition from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : PropertyDefinition from StepRepr);
---Purpose: Reads PropertyDefinition
WriteStep (me; SW: in out StepWriter from StepData;
ent: PropertyDefinition from StepRepr);
---Purpose: Writes PropertyDefinition
Share (me; ent : PropertyDefinition from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWPropertyDefinition;

View File

@@ -0,0 +1,88 @@
// File: RWStepRepr_RWPropertyDefinition.cxx
// Created: Mon Jul 3 16:29:03 2000
// Author: Andrey BETENEV
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
// Copyright: Matra Datavision 2000
#include <RWStepRepr_RWPropertyDefinition.ixx>
//=======================================================================
//function : RWStepRepr_RWPropertyDefinition
//purpose :
//=======================================================================
RWStepRepr_RWPropertyDefinition::RWStepRepr_RWPropertyDefinition ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWPropertyDefinition::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_PropertyDefinition) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,3,ach,"property_definition") ) return;
// Own fields of PropertyDefinition
Handle(TCollection_HAsciiString) aName;
data->ReadString (num, 1, "name", ach, aName);
Handle(TCollection_HAsciiString) aDescription;
Standard_Boolean hasDescription = Standard_True;
if ( data->IsParamDefined (num,2) ) {
data->ReadString (num, 2, "description", ach, aDescription);
}
else {
hasDescription = Standard_False;
}
StepRepr_CharacterizedDefinition aDefinition;
data->ReadEntity (num, 3, "definition", ach, aDefinition);
// Initialize entity
ent->Init(aName,
hasDescription,
aDescription,
aDefinition);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWPropertyDefinition::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_PropertyDefinition) &ent) const
{
// Own fields of PropertyDefinition
SW.Send (ent->Name());
if ( ent->HasDescription() ) {
SW.Send (ent->Description());
}
else SW.SendUndef();
SW.Send (ent->Definition().Value());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWPropertyDefinition::Share (const Handle(StepRepr_PropertyDefinition) &ent,
Interface_EntityIterator& iter) const
{
// Own fields of PropertyDefinition
iter.AddItem (ent->Definition().Value());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWPropertyDefinitionRelationship.cdl
-- Created: Thu Dec 12 17:15:59 2002
-- Author: data exchange team
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWPropertyDefinitionRelationship from RWStepRepr
---Purpose: Read & Write tool for PropertyDefinitionRelationship
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
PropertyDefinitionRelationship from StepRepr
is
Create returns RWPropertyDefinitionRelationship from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : PropertyDefinitionRelationship from StepRepr);
---Purpose: Reads PropertyDefinitionRelationship
WriteStep (me; SW: in out StepWriter from StepData;
ent: PropertyDefinitionRelationship from StepRepr);
---Purpose: Writes PropertyDefinitionRelationship
Share (me; ent : PropertyDefinitionRelationship from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWPropertyDefinitionRelationship;

View File

@@ -0,0 +1,86 @@
// File: RWStepRepr_RWPropertyDefinitionRelationship.cxx
// Created: Thu Dec 12 17:15:59 2002
// Author: data exchange team
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepRepr_RWPropertyDefinitionRelationship.ixx>
//=======================================================================
//function : RWStepRepr_RWPropertyDefinitionRelationship
//purpose :
//=======================================================================
RWStepRepr_RWPropertyDefinitionRelationship::RWStepRepr_RWPropertyDefinitionRelationship ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWPropertyDefinitionRelationship::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_PropertyDefinitionRelationship) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"property_definition_relationship") ) return;
// Own fields of PropertyDefinitionRelationship
Handle(TCollection_HAsciiString) aName;
data->ReadString (num, 1, "name", ach, aName);
Handle(TCollection_HAsciiString) aDescription;
data->ReadString (num, 2, "description", ach, aDescription);
Handle(StepRepr_PropertyDefinition) aRelatingPropertyDefinition;
data->ReadEntity (num, 3, "relating_property_definition", ach, STANDARD_TYPE(StepRepr_PropertyDefinition), aRelatingPropertyDefinition);
Handle(StepRepr_PropertyDefinition) aRelatedPropertyDefinition;
data->ReadEntity (num, 4, "related_property_definition", ach, STANDARD_TYPE(StepRepr_PropertyDefinition), aRelatedPropertyDefinition);
// Initialize entity
ent->Init(aName,
aDescription,
aRelatingPropertyDefinition,
aRelatedPropertyDefinition);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWPropertyDefinitionRelationship::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_PropertyDefinitionRelationship) &ent) const
{
// Own fields of PropertyDefinitionRelationship
SW.Send (ent->Name());
SW.Send (ent->Description());
SW.Send (ent->RelatingPropertyDefinition());
SW.Send (ent->RelatedPropertyDefinition());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWPropertyDefinitionRelationship::Share (const Handle(StepRepr_PropertyDefinitionRelationship) &ent,
Interface_EntityIterator& iter) const
{
// Own fields of PropertyDefinitionRelationship
iter.AddItem (ent->RelatingPropertyDefinition());
iter.AddItem (ent->RelatedPropertyDefinition());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWPropertyDefinitionRepresentation.cdl
-- Created: Thu Dec 12 17:15:59 2002
-- Author: data exchange team
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWPropertyDefinitionRepresentation from RWStepRepr
---Purpose: Read & Write tool for PropertyDefinitionRepresentation
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
PropertyDefinitionRepresentation from StepRepr
is
Create returns RWPropertyDefinitionRepresentation from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : PropertyDefinitionRepresentation from StepRepr);
---Purpose: Reads PropertyDefinitionRepresentation
WriteStep (me; SW: in out StepWriter from StepData;
ent: PropertyDefinitionRepresentation from StepRepr);
---Purpose: Writes PropertyDefinitionRepresentation
Share (me; ent : PropertyDefinitionRepresentation from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWPropertyDefinitionRepresentation;

View File

@@ -0,0 +1,74 @@
// File: RWStepRepr_RWPropertyDefinitionRepresentation.cxx
// Created: Thu Dec 12 17:15:59 2002
// Author: data exchange team
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepRepr_RWPropertyDefinitionRepresentation.ixx>
//=======================================================================
//function : RWStepRepr_RWPropertyDefinitionRepresentation
//purpose :
//=======================================================================
RWStepRepr_RWPropertyDefinitionRepresentation::RWStepRepr_RWPropertyDefinitionRepresentation ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWPropertyDefinitionRepresentation::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_PropertyDefinitionRepresentation) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,2,ach,"property_definition_representation") ) return;
// Own fields of PropertyDefinitionRepresentation
StepRepr_RepresentedDefinition aDefinition;
data->ReadEntity (num, 1, "definition", ach, aDefinition);
Handle(StepRepr_Representation) aUsedRepresentation;
data->ReadEntity (num, 2, "used_representation", ach, STANDARD_TYPE(StepRepr_Representation), aUsedRepresentation);
// Initialize entity
ent->Init(aDefinition,
aUsedRepresentation);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWPropertyDefinitionRepresentation::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_PropertyDefinitionRepresentation) &ent) const
{
// Own fields of PropertyDefinitionRepresentation
SW.Send (ent->Definition().Value());
SW.Send (ent->UsedRepresentation());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWPropertyDefinitionRepresentation::Share (const Handle(StepRepr_PropertyDefinitionRepresentation) &ent,
Interface_EntityIterator& iter) const
{
// Own fields of PropertyDefinitionRepresentation
iter.AddItem (ent->Definition().Value());
iter.AddItem (ent->UsedRepresentation());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWQuantifiedAssemblyComponentUsage.cdl
-- Created: Mon Jul 3 20:13:37 2000
-- Author: Andrey BETENEV
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
-- Copyright: Matra Datavision 2000
class RWQuantifiedAssemblyComponentUsage from RWStepRepr
---Purpose: Read & Write tool for QuantifiedAssemblyComponentUsage
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
QuantifiedAssemblyComponentUsage from StepRepr
is
Create returns RWQuantifiedAssemblyComponentUsage from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : QuantifiedAssemblyComponentUsage from StepRepr);
---Purpose: Reads QuantifiedAssemblyComponentUsage
WriteStep (me; SW: in out StepWriter from StepData;
ent: QuantifiedAssemblyComponentUsage from StepRepr);
---Purpose: Writes QuantifiedAssemblyComponentUsage
Share (me; ent : QuantifiedAssemblyComponentUsage from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWQuantifiedAssemblyComponentUsage;

View File

@@ -0,0 +1,138 @@
// File: RWStepRepr_RWQuantifiedAssemblyComponentUsage.cxx
// Created: Mon Jul 3 20:13:37 2000
// Author: Andrey BETENEV
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
// Copyright: Matra Datavision 2000
#include <RWStepRepr_RWQuantifiedAssemblyComponentUsage.ixx>
//=======================================================================
//function : RWStepRepr_RWQuantifiedAssemblyComponentUsage
//purpose :
//=======================================================================
RWStepRepr_RWQuantifiedAssemblyComponentUsage::RWStepRepr_RWQuantifiedAssemblyComponentUsage ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWQuantifiedAssemblyComponentUsage::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_QuantifiedAssemblyComponentUsage) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,7,ach,"quantified_assembly_component_usage") ) return;
// Inherited fields of ProductDefinitionRelationship
Handle(TCollection_HAsciiString) aProductDefinitionRelationship_Id;
data->ReadString (num, 1, "product_definition_relationship.id", ach, aProductDefinitionRelationship_Id);
Handle(TCollection_HAsciiString) aProductDefinitionRelationship_Name;
data->ReadString (num, 2, "product_definition_relationship.name", ach, aProductDefinitionRelationship_Name);
Handle(TCollection_HAsciiString) aProductDefinitionRelationship_Description;
Standard_Boolean hasProductDefinitionRelationship_Description = Standard_True;
if ( data->IsParamDefined (num,3) ) {
data->ReadString (num, 3, "product_definition_relationship.description", ach, aProductDefinitionRelationship_Description);
}
else {
hasProductDefinitionRelationship_Description = Standard_False;
}
Handle(StepBasic_ProductDefinition) aProductDefinitionRelationship_RelatingProductDefinition;
data->ReadEntity (num, 4, "product_definition_relationship.relating_product_definition", ach, STANDARD_TYPE(StepBasic_ProductDefinition), aProductDefinitionRelationship_RelatingProductDefinition);
Handle(StepBasic_ProductDefinition) aProductDefinitionRelationship_RelatedProductDefinition;
data->ReadEntity (num, 5, "product_definition_relationship.related_product_definition", ach, STANDARD_TYPE(StepBasic_ProductDefinition), aProductDefinitionRelationship_RelatedProductDefinition);
// Inherited fields of AssemblyComponentUsage
Handle(TCollection_HAsciiString) aAssemblyComponentUsage_ReferenceDesignator;
Standard_Boolean hasAssemblyComponentUsage_ReferenceDesignator = Standard_True;
if ( data->IsParamDefined (num,6) ) {
data->ReadString (num, 6, "assembly_component_usage.reference_designator", ach, aAssemblyComponentUsage_ReferenceDesignator);
}
else {
hasAssemblyComponentUsage_ReferenceDesignator = Standard_False;
}
// Own fields of QuantifiedAssemblyComponentUsage
Handle(StepBasic_MeasureWithUnit) aQuantity;
data->ReadEntity (num, 7, "quantity", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aQuantity);
// Initialize entity
ent->Init(aProductDefinitionRelationship_Id,
aProductDefinitionRelationship_Name,
hasProductDefinitionRelationship_Description,
aProductDefinitionRelationship_Description,
aProductDefinitionRelationship_RelatingProductDefinition,
aProductDefinitionRelationship_RelatedProductDefinition,
hasAssemblyComponentUsage_ReferenceDesignator,
aAssemblyComponentUsage_ReferenceDesignator,
aQuantity);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWQuantifiedAssemblyComponentUsage::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_QuantifiedAssemblyComponentUsage) &ent) const
{
// Inherited fields of ProductDefinitionRelationship
SW.Send (ent->StepBasic_ProductDefinitionRelationship::Id());
SW.Send (ent->StepBasic_ProductDefinitionRelationship::Name());
if ( ent->StepBasic_ProductDefinitionRelationship::HasDescription() ) {
SW.Send (ent->StepBasic_ProductDefinitionRelationship::Description());
}
else SW.SendUndef();
SW.Send (ent->StepBasic_ProductDefinitionRelationship::RelatingProductDefinition());
SW.Send (ent->StepBasic_ProductDefinitionRelationship::RelatedProductDefinition());
// Inherited fields of AssemblyComponentUsage
if ( ent->StepRepr_AssemblyComponentUsage::HasReferenceDesignator() ) {
SW.Send (ent->StepRepr_AssemblyComponentUsage::ReferenceDesignator());
}
else SW.SendUndef();
// Own fields of QuantifiedAssemblyComponentUsage
SW.Send (ent->Quantity());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWQuantifiedAssemblyComponentUsage::Share (const Handle(StepRepr_QuantifiedAssemblyComponentUsage) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of ProductDefinitionRelationship
iter.AddItem (ent->StepBasic_ProductDefinitionRelationship::RelatingProductDefinition());
iter.AddItem (ent->StepBasic_ProductDefinitionRelationship::RelatedProductDefinition());
// Inherited fields of AssemblyComponentUsage
// Own fields of QuantifiedAssemblyComponentUsage
iter.AddItem (ent->Quantity());
}

View File

@@ -0,0 +1,25 @@
-- File: RWStepRepr_RWReprItemAndLengthMeasureWithUnit.cdl
-- Created: Thu Aug 21 11:55:04 2003
-- Author: Sergey KUUL
-- <skl@petrox.nnov.matra-dtv.fr>
---Copyright: Matra Datavision 2003
class RWReprItemAndLengthMeasureWithUnit from RWStepRepr
---Purpose : Read & Write Module for ReprItemAndLengthMeasureWithUni
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
ReprItemAndLengthMeasureWithUnit from StepRepr
is
Create returns RWReprItemAndLengthMeasureWithUnit;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable ReprItemAndLengthMeasureWithUnit from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : ReprItemAndLengthMeasureWithUnit from StepRepr);
end RWReprItemAndLengthMeasureWithUnit;

View File

@@ -0,0 +1,68 @@
#include <RWStepRepr_RWReprItemAndLengthMeasureWithUnit.ixx>
#include <StepBasic_MeasureValueMember.hxx>
#include <StepBasic_Unit.hxx>
#include <StepBasic_MeasureWithUnit.hxx>
//=======================================================================
//function : RWSteprepr_RWReprItemAndLengthMeasureWithUnit
//purpose :
//=======================================================================
RWStepRepr_RWReprItemAndLengthMeasureWithUnit::RWStepRepr_RWReprItemAndLengthMeasureWithUnit() {}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWReprItemAndLengthMeasureWithUnit::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num0,
Handle(Interface_Check)& ach,
const Handle(StepRepr_ReprItemAndLengthMeasureWithUnit)& ent) const
{
Standard_Integer num = 0;//num0;
data->NamedForComplex("MEASURE_WITH_UNIT",num0,num,ach);
if (!data->CheckNbParams(num,2,ach,"measure_with_unit")) return;
// --- own field : valueComponent ---
Handle(StepBasic_MeasureValueMember) mvc = new StepBasic_MeasureValueMember;
data->ReadMember (num,1, "value_component", ach, mvc);
// --- own field : unitComponent ---
StepBasic_Unit aUnitComponent;
data->ReadEntity(num, 2,"unit_component", ach, aUnitComponent);
Handle(StepBasic_MeasureWithUnit) aMeasureWithUnit = new StepBasic_MeasureWithUnit;
aMeasureWithUnit->Init(mvc, aUnitComponent);
data->NamedForComplex("REPRESENTATION_ITEM",num0,num,ach);
if (!data->CheckNbParams(num,1,ach,"representation_item")) return;
// --- own field : name ---
Handle(TCollection_HAsciiString) aName;
data->ReadString (num,1,"name",ach,aName);
Handle(StepRepr_RepresentationItem) aReprItem = new StepRepr_RepresentationItem;
aReprItem->Init(aName);
//--- Initialisation of the read entity ---
ent->Init(aMeasureWithUnit,aReprItem);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWReprItemAndLengthMeasureWithUnit::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_ReprItemAndLengthMeasureWithUnit)& ent) const
{
SW.StartEntity("LENGTH_MEASURE_WITH_UNIT");
SW.StartEntity("MEASURE_REPRESENTATION_ITEM");
SW.StartEntity("MEASURE_WITH_UNIT");
SW.Send(ent->GetMeasureWithUnit()->ValueComponentMember());
SW.Send(ent->GetMeasureWithUnit()->UnitComponent().Value());
SW.StartEntity("REPRESENTATION_ITEM");
SW.Send(ent->Name());
}

View File

@@ -0,0 +1,30 @@
-- File: Representation.cdl
-- Created: Mon Dec 4 12:02:31 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWRepresentation from RWStepRepr
---Purpose : Read & Write Module for Representation
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
Representation from StepRepr,
EntityIterator from Interface
is
Create returns RWRepresentation;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable Representation from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : Representation from StepRepr);
Share(me; ent : Representation from StepRepr; iter : in out EntityIterator);
end RWRepresentation;

View File

@@ -0,0 +1,98 @@
#include <RWStepRepr_RWRepresentation.ixx>
#include <StepRepr_HArray1OfRepresentationItem.hxx>
#include <StepRepr_RepresentationItem.hxx>
#include <StepRepr_RepresentationContext.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepRepr_Representation.hxx>
RWStepRepr_RWRepresentation::RWStepRepr_RWRepresentation () {}
void RWStepRepr_RWRepresentation::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_Representation)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,3,ach,"representation")) return;
// --- own field : name ---
Handle(TCollection_HAsciiString) aName;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"name",ach,aName);
// --- own field : items ---
Handle(StepRepr_HArray1OfRepresentationItem) aItems;
Handle(StepRepr_RepresentationItem) anent2;
Standard_Integer nsub2;
if (data->ReadSubList (num,2,"items",ach,nsub2)) {
Standard_Integer nb2 = data->NbParams(nsub2);
aItems = new StepRepr_HArray1OfRepresentationItem (1, nb2);
for (Standard_Integer i2 = 1; i2 <= nb2; i2 ++) {
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
if (data->ReadEntity (nsub2, i2,"representation_item", ach,
STANDARD_TYPE(StepRepr_RepresentationItem), anent2))
aItems->SetValue(i2, anent2);
}
}
// --- own field : contextOfItems ---
Handle(StepRepr_RepresentationContext) aContextOfItems;
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
data->ReadEntity(num, 3,"context_of_items", ach, STANDARD_TYPE(StepRepr_RepresentationContext), aContextOfItems);
//--- Initialisation of the read entity ---
ent->Init(aName, aItems, aContextOfItems);
}
void RWStepRepr_RWRepresentation::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_Representation)& ent) const
{
// --- own field : name ---
SW.Send(ent->Name());
// --- own field : items ---
SW.OpenSub();
for (Standard_Integer i2 = 1; i2 <= ent->NbItems(); i2 ++) {
SW.Send(ent->ItemsValue(i2));
}
SW.CloseSub();
// --- own field : contextOfItems ---
SW.Send(ent->ContextOfItems());
}
void RWStepRepr_RWRepresentation::Share(const Handle(StepRepr_Representation)& ent, Interface_EntityIterator& iter) const
{
Standard_Integer nbElem1 = ent->NbItems();
for (Standard_Integer is1=1; is1<=nbElem1; is1 ++) {
iter.GetOneItem(ent->ItemsValue(is1));
}
iter.GetOneItem(ent->ContextOfItems());
}

View File

@@ -0,0 +1,27 @@
-- File: RepresentationContext.cdl
-- Created: Mon Dec 4 12:02:31 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWRepresentationContext from RWStepRepr
---Purpose : Read & Write Module for RepresentationContext
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
RepresentationContext from StepRepr
is
Create returns RWRepresentationContext;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable RepresentationContext from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : RepresentationContext from StepRepr);
end RWRepresentationContext;

View File

@@ -0,0 +1,50 @@
#include <RWStepRepr_RWRepresentationContext.ixx>
RWStepRepr_RWRepresentationContext::RWStepRepr_RWRepresentationContext () {}
void RWStepRepr_RWRepresentationContext::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_RepresentationContext)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,2,ach,"representation_context")) return;
// --- own field : contextIdentifier ---
Handle(TCollection_HAsciiString) aContextIdentifier;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"context_identifier",ach,aContextIdentifier);
// --- own field : contextType ---
Handle(TCollection_HAsciiString) aContextType;
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
data->ReadString (num,2,"context_type",ach,aContextType);
//--- Initialisation of the read entity ---
ent->Init(aContextIdentifier, aContextType);
}
void RWStepRepr_RWRepresentationContext::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_RepresentationContext)& ent) const
{
// --- own field : contextIdentifier ---
SW.Send(ent->ContextIdentifier());
// --- own field : contextType ---
SW.Send(ent->ContextType());
}

View File

@@ -0,0 +1,27 @@
-- File: RepresentationItem.cdl
-- Created: Mon Dec 4 12:02:31 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWRepresentationItem from RWStepRepr
---Purpose : Read & Write Module for RepresentationItem
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
RepresentationItem from StepRepr
is
Create returns RWRepresentationItem;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable RepresentationItem from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : RepresentationItem from StepRepr);
end RWRepresentationItem;

View File

@@ -0,0 +1,40 @@
#include <RWStepRepr_RWRepresentationItem.ixx>
RWStepRepr_RWRepresentationItem::RWStepRepr_RWRepresentationItem () {}
void RWStepRepr_RWRepresentationItem::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_RepresentationItem)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,1,ach,"representation_item")) return;
// --- own field : name ---
Handle(TCollection_HAsciiString) aName;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"name",ach,aName);
//--- Initialisation of the read entity ---
ent->Init(aName);
}
void RWStepRepr_RWRepresentationItem::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_RepresentationItem)& ent) const
{
// --- own field : name ---
SW.Send(ent->Name());
}

View File

@@ -0,0 +1,30 @@
-- File: RepresentationMap.cdl
-- Created: Mon Dec 4 12:02:31 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWRepresentationMap from RWStepRepr
---Purpose : Read & Write Module for RepresentationMap
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
RepresentationMap from StepRepr,
EntityIterator from Interface
is
Create returns RWRepresentationMap;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable RepresentationMap from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : RepresentationMap from StepRepr);
Share(me; ent : RepresentationMap from StepRepr; iter : in out EntityIterator);
end RWRepresentationMap;

View File

@@ -0,0 +1,69 @@
#include <RWStepRepr_RWRepresentationMap.ixx>
#include <StepRepr_RepresentationItem.hxx>
#include <StepRepr_Representation.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepRepr_RepresentationMap.hxx>
RWStepRepr_RWRepresentationMap::RWStepRepr_RWRepresentationMap () {}
void RWStepRepr_RWRepresentationMap::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_RepresentationMap)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,2,ach,"representation_map")) return;
// --- own field : mappingOrigin ---
Handle(StepRepr_RepresentationItem) aMappingOrigin;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadEntity(num, 1,"mapping_origin", ach, STANDARD_TYPE(StepRepr_RepresentationItem), aMappingOrigin);
// --- own field : mappedRepresentation ---
Handle(StepRepr_Representation) aMappedRepresentation;
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
data->ReadEntity(num, 2,"mapped_representation", ach, STANDARD_TYPE(StepRepr_Representation), aMappedRepresentation);
//--- Initialisation of the read entity ---
ent->Init(aMappingOrigin, aMappedRepresentation);
}
void RWStepRepr_RWRepresentationMap::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_RepresentationMap)& ent) const
{
// --- own field : mappingOrigin ---
SW.Send(ent->MappingOrigin());
// --- own field : mappedRepresentation ---
SW.Send(ent->MappedRepresentation());
}
void RWStepRepr_RWRepresentationMap::Share(const Handle(StepRepr_RepresentationMap)& ent, Interface_EntityIterator& iter) const
{
iter.GetOneItem(ent->MappingOrigin());
iter.GetOneItem(ent->MappedRepresentation());
}

View File

@@ -0,0 +1,30 @@
-- File: RepresentationRelationship.cdl
-- Created: Mon Dec 4 12:02:31 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWRepresentationRelationship from RWStepRepr
---Purpose : Read & Write Module for RepresentationRelationship
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
RepresentationRelationship from StepRepr,
EntityIterator from Interface
is
Create returns RWRepresentationRelationship;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable RepresentationRelationship from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : RepresentationRelationship from StepRepr);
Share(me; ent : RepresentationRelationship from StepRepr; iter : in out EntityIterator);
end RWRepresentationRelationship;

View File

@@ -0,0 +1,89 @@
//gka 05.03.99 S4134 upgrade from CD to DIS
#include <RWStepRepr_RWRepresentationRelationship.ixx>
#include <StepRepr_Representation.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepRepr_RepresentationRelationship.hxx>
RWStepRepr_RWRepresentationRelationship::RWStepRepr_RWRepresentationRelationship () {}
void RWStepRepr_RWRepresentationRelationship::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_RepresentationRelationship)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,4,ach,"representation_relationship")) return;
// --- own field : name ---
Handle(TCollection_HAsciiString) aName;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"name",ach,aName);
// --- own field : description ---
Handle(TCollection_HAsciiString) aDescription;
if (data->IsParamDefined (num,2)) { //gka 05.03.99 S4134 upgrade from CD to DIS
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
data->ReadString (num,2,"description",ach,aDescription);
}
// --- own field : rep1 ---
Handle(StepRepr_Representation) aRep1;
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
data->ReadEntity(num, 3,"rep_1", ach, STANDARD_TYPE(StepRepr_Representation), aRep1);
// --- own field : rep2 ---
Handle(StepRepr_Representation) aRep2;
//szv#4:S4163:12Mar99 `Standard_Boolean stat4 =` not needed
data->ReadEntity(num, 4,"rep_2", ach, STANDARD_TYPE(StepRepr_Representation), aRep2);
//--- Initialisation of the read entity ---
ent->Init(aName, aDescription, aRep1, aRep2);
}
void RWStepRepr_RWRepresentationRelationship::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_RepresentationRelationship)& ent) const
{
// --- own field : name ---
SW.Send(ent->Name());
// --- own field : description ---
SW.Send(ent->Description());
// --- own field : rep1 ---
SW.Send(ent->Rep1());
// --- own field : rep2 ---
SW.Send(ent->Rep2());
}
void RWStepRepr_RWRepresentationRelationship::Share(const Handle(StepRepr_RepresentationRelationship)& ent, Interface_EntityIterator& iter) const
{
iter.GetOneItem(ent->Rep1());
iter.GetOneItem(ent->Rep2());
}

View File

@@ -0,0 +1,30 @@
-- File: RepresentationRelationshipWithTransformation.cdl
-- Created: Mon Dec 4 12:02:31 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWRepresentationRelationshipWithTransformation from RWStepRepr
---Purpose : Read & Write Module for RepresentationRelationshipWithTransformation
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
RepresentationRelationshipWithTransformation from StepRepr,
EntityIterator from Interface
is
Create returns RWRepresentationRelationshipWithTransformation;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable RepresentationRelationshipWithTransformation from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : RepresentationRelationshipWithTransformation from StepRepr);
Share(me; ent : RepresentationRelationshipWithTransformation from StepRepr; iter : in out EntityIterator);
end RWRepresentationRelationshipWithTransformation;

View File

@@ -0,0 +1,99 @@
#include <RWStepRepr_RWRepresentationRelationshipWithTransformation.ixx>
#include <StepRepr_Representation.hxx>
#include <StepRepr_Transformation.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepRepr_RepresentationRelationshipWithTransformation.hxx>
RWStepRepr_RWRepresentationRelationshipWithTransformation::RWStepRepr_RWRepresentationRelationshipWithTransformation () {}
void RWStepRepr_RWRepresentationRelationshipWithTransformation::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_RepresentationRelationshipWithTransformation)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,5,ach,"representation_relationship_with_transformation")) return;
// --- inherited field : name ---
Handle(TCollection_HAsciiString) aName;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"name",ach,aName);
// --- inherited field : description ---
Handle(TCollection_HAsciiString) aDescription;
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
data->ReadString (num,2,"description",ach,aDescription);
// --- inherited field : rep1 ---
Handle(StepRepr_Representation) aRep1;
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
data->ReadEntity(num, 3,"rep_1", ach, STANDARD_TYPE(StepRepr_Representation), aRep1);
// --- inherited field : rep2 ---
Handle(StepRepr_Representation) aRep2;
//szv#4:S4163:12Mar99 `Standard_Boolean stat4 =` not needed
data->ReadEntity(num, 4,"rep_2", ach, STANDARD_TYPE(StepRepr_Representation), aRep2);
// --- own field : transformation_operator
StepRepr_Transformation aTrans;
//szv#4:S4163:12Mar99 `Standard_Boolean stat5 =` not needed
data->ReadEntity(num,5,"transformation_operator",ach,aTrans);
//--- Initialisation of the read entity ---
ent->Init(aName, aDescription, aRep1, aRep2, aTrans);
}
void RWStepRepr_RWRepresentationRelationshipWithTransformation::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_RepresentationRelationshipWithTransformation)& ent) const
{
// --- inherited field : name ---
SW.Send(ent->Name());
// --- inherited field : description ---
SW.Send(ent->Description());
// --- inherited field : rep1 ---
SW.Send(ent->Rep1());
// --- inherited field : rep2 ---
SW.Send(ent->Rep2());
SW.Send(ent->TransformationOperator().Value());
}
void RWStepRepr_RWRepresentationRelationshipWithTransformation::Share(const Handle(StepRepr_RepresentationRelationshipWithTransformation)& ent, Interface_EntityIterator& iter) const
{
iter.GetOneItem(ent->Rep1());
iter.GetOneItem(ent->Rep2());
iter.GetOneItem(ent->TransformationOperator().Value());
}

View File

@@ -0,0 +1,30 @@
-- File: ShapeAspect.cdl
-- Created: Mon Dec 4 12:02:31 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWShapeAspect from RWStepRepr
---Purpose : Read & Write Module for ShapeAspect
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
ShapeAspect from StepRepr,
EntityIterator from Interface
is
Create returns RWShapeAspect;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable ShapeAspect from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : ShapeAspect from StepRepr);
Share(me; ent : ShapeAspect from StepRepr; iter : in out EntityIterator);
end RWShapeAspect;

View File

@@ -0,0 +1,87 @@
//gka 05.03.99 S4134 upgrade from CD to DIS
#include <RWStepRepr_RWShapeAspect.ixx>
#include <StepRepr_ProductDefinitionShape.hxx>
#include <StepData_Logical.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepRepr_ShapeAspect.hxx>
RWStepRepr_RWShapeAspect::RWStepRepr_RWShapeAspect () {}
void RWStepRepr_RWShapeAspect::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_ShapeAspect)& ent) const
{
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,4,ach,"shape_aspect")) return;
// --- own field : name ---
Handle(TCollection_HAsciiString) aName;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"name",ach,aName);
// --- own field : description ---
Handle(TCollection_HAsciiString) aDescription;
if (data->IsParamDefined (num,2)) { //gka 05.03.99 S4134 upgrade from CD to DIS
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
data->ReadString (num,2,"description",ach,aDescription);
}
// --- own field : ofShape ---
Handle(StepRepr_ProductDefinitionShape) aOfShape;
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
data->ReadEntity(num, 3,"of_shape", ach, STANDARD_TYPE(StepRepr_ProductDefinitionShape), aOfShape);
// --- own field : productDefinitional ---
StepData_Logical aProductDefinitional;
//szv#4:S4163:12Mar99 `Standard_Boolean stat4 =` not needed
data->ReadLogical (num,4,"product_definitional",ach,aProductDefinitional);
//--- Initialisation of the read entity ---
ent->Init(aName, aDescription, aOfShape, aProductDefinitional);
}
void RWStepRepr_RWShapeAspect::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_ShapeAspect)& ent) const
{
// --- own field : name ---
SW.Send(ent->Name());
// --- own field : description ---
SW.Send(ent->Description());
// --- own field : ofShape ---
SW.Send(ent->OfShape());
// --- own field : productDefinitional ---
SW.SendLogical(ent->ProductDefinitional());
}
void RWStepRepr_RWShapeAspect::Share(const Handle(StepRepr_ShapeAspect)& ent, Interface_EntityIterator& iter) const
{
iter.GetOneItem(ent->OfShape());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWShapeAspectDerivingRelationship.cdl
-- Created: Wed Jun 4 14:17:23 2003
-- Author: Galina KULIKOVA
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWShapeAspectDerivingRelationship from RWStepRepr
---Purpose: Read & Write tool for ShapeAspectDerivingRelationship
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
ShapeAspectDerivingRelationship from StepRepr
is
Create returns RWShapeAspectDerivingRelationship from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : ShapeAspectDerivingRelationship from StepRepr);
---Purpose: Reads ShapeAspectDerivingRelationship
WriteStep (me; SW: in out StepWriter from StepData;
ent: ShapeAspectDerivingRelationship from StepRepr);
---Purpose: Writes ShapeAspectDerivingRelationship
Share (me; ent : ShapeAspectDerivingRelationship from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWShapeAspectDerivingRelationship;

View File

@@ -0,0 +1,96 @@
// File: RWStepRepr_RWShapeAspectDerivingRelationship.cxx
// Created: Wed Jun 4 14:17:23 2003
// Author: Galina KULIKOVA
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepRepr_RWShapeAspectDerivingRelationship.ixx>
//=======================================================================
//function : RWStepRepr_RWShapeAspectDerivingRelationship
//purpose :
//=======================================================================
RWStepRepr_RWShapeAspectDerivingRelationship::RWStepRepr_RWShapeAspectDerivingRelationship ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWShapeAspectDerivingRelationship::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_ShapeAspectDerivingRelationship) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"shape_aspect_deriving_relationship") ) return;
// Inherited fields of ShapeAspectRelationship
Handle(TCollection_HAsciiString) aShapeAspectRelationship_Name;
data->ReadString (num, 1, "shape_aspect_relationship.name", ach, aShapeAspectRelationship_Name);
Handle(TCollection_HAsciiString) aShapeAspectRelationship_Description;
Standard_Boolean hasShapeAspectRelationship_Description = Standard_True;
if ( data->IsParamDefined (num,2) ) {
data->ReadString (num, 2, "shape_aspect_relationship.description", ach, aShapeAspectRelationship_Description);
}
else {
hasShapeAspectRelationship_Description = Standard_False;
}
Handle(StepRepr_ShapeAspect) aShapeAspectRelationship_RelatingShapeAspect;
data->ReadEntity (num, 3, "shape_aspect_relationship.relating_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aShapeAspectRelationship_RelatingShapeAspect);
Handle(StepRepr_ShapeAspect) aShapeAspectRelationship_RelatedShapeAspect;
data->ReadEntity (num, 4, "shape_aspect_relationship.related_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aShapeAspectRelationship_RelatedShapeAspect);
// Initialize entity
ent->Init(aShapeAspectRelationship_Name,
hasShapeAspectRelationship_Description,
aShapeAspectRelationship_Description,
aShapeAspectRelationship_RelatingShapeAspect,
aShapeAspectRelationship_RelatedShapeAspect);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWShapeAspectDerivingRelationship::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_ShapeAspectDerivingRelationship) &ent) const
{
// Inherited fields of ShapeAspectRelationship
SW.Send (ent->StepRepr_ShapeAspectRelationship::Name());
if ( ent->StepRepr_ShapeAspectRelationship::HasDescription() ) {
SW.Send (ent->StepRepr_ShapeAspectRelationship::Description());
}
else SW.SendUndef();
SW.Send (ent->StepRepr_ShapeAspectRelationship::RelatingShapeAspect());
SW.Send (ent->StepRepr_ShapeAspectRelationship::RelatedShapeAspect());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWShapeAspectDerivingRelationship::Share (const Handle(StepRepr_ShapeAspectDerivingRelationship) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of ShapeAspectRelationship
iter.AddItem (ent->StepRepr_ShapeAspectRelationship::RelatingShapeAspect());
iter.AddItem (ent->StepRepr_ShapeAspectRelationship::RelatedShapeAspect());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWShapeAspectRelationship.cdl
-- Created: Tue Apr 18 16:42:58 2000
-- Author: Andrey BETENEV
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
-- Copyright: Matra Datavision 1999
class RWShapeAspectRelationship from RWStepRepr
---Purpose: Read & Write tool for ShapeAspectRelationship
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
ShapeAspectRelationship from StepRepr
is
Create returns RWShapeAspectRelationship from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : ShapeAspectRelationship from StepRepr);
---Purpose: Reads ShapeAspectRelationship
WriteStep (me; SW: in out StepWriter from StepData;
ent: ShapeAspectRelationship from StepRepr);
---Purpose: Writes ShapeAspectRelationship
Share (me; ent : ShapeAspectRelationship from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWShapeAspectRelationship;

View File

@@ -0,0 +1,96 @@
// File: RWStepRepr_RWShapeAspectRelationship.cxx
// Created: Tue Apr 18 16:42:58 2000
// Author: Andrey BETENEV
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
// Copyright: Matra Datavision 1999
#include <RWStepRepr_RWShapeAspectRelationship.ixx>
//=======================================================================
//function : RWStepRepr_RWShapeAspectRelationship
//purpose :
//=======================================================================
RWStepRepr_RWShapeAspectRelationship::RWStepRepr_RWShapeAspectRelationship ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWShapeAspectRelationship::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_ShapeAspectRelationship) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"shape_aspect_relationship") ) return;
// Own fields of ShapeAspectRelationship
Handle(TCollection_HAsciiString) aName;
data->ReadString (num, 1, "name", ach, aName);
Handle(TCollection_HAsciiString) aDescription;
Standard_Boolean hasDescription = Standard_True;
if ( data->IsParamDefined (num,2) ) {
data->ReadString (num, 2, "description", ach, aDescription);
}
else {
hasDescription = Standard_False;
}
Handle(StepRepr_ShapeAspect) aRelatingShapeAspect;
data->ReadEntity (num, 3, "relating_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aRelatingShapeAspect);
Handle(StepRepr_ShapeAspect) aRelatedShapeAspect;
data->ReadEntity (num, 4, "related_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aRelatedShapeAspect);
// Initialize entity
ent->Init(aName,
hasDescription,
aDescription,
aRelatingShapeAspect,
aRelatedShapeAspect);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWShapeAspectRelationship::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_ShapeAspectRelationship) &ent) const
{
// Own fields of ShapeAspectRelationship
SW.Send (ent->Name());
if ( ent->HasDescription() ) {
SW.Send (ent->Description());
}
else SW.SendUndef();
SW.Send (ent->RelatingShapeAspect());
SW.Send (ent->RelatedShapeAspect());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWShapeAspectRelationship::Share (const Handle(StepRepr_ShapeAspectRelationship) &ent,
Interface_EntityIterator& iter) const
{
// Own fields of ShapeAspectRelationship
iter.AddItem (ent->RelatingShapeAspect());
iter.AddItem (ent->RelatedShapeAspect());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWShapeAspectTransition.cdl
-- Created: Tue Apr 18 16:42:58 2000
-- Author: Andrey BETENEV
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
-- Copyright: Matra Datavision 1999
class RWShapeAspectTransition from RWStepRepr
---Purpose: Read & Write tool for ShapeAspectTransition
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
ShapeAspectTransition from StepRepr
is
Create returns RWShapeAspectTransition from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : ShapeAspectTransition from StepRepr);
---Purpose: Reads ShapeAspectTransition
WriteStep (me; SW: in out StepWriter from StepData;
ent: ShapeAspectTransition from StepRepr);
---Purpose: Writes ShapeAspectTransition
Share (me; ent : ShapeAspectTransition from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWShapeAspectTransition;

View File

@@ -0,0 +1,96 @@
// File: RWStepRepr_RWShapeAspectTransition.cxx
// Created: Tue Apr 18 16:42:58 2000
// Author: Andrey BETENEV
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
// Copyright: Matra Datavision 1999
#include <RWStepRepr_RWShapeAspectTransition.ixx>
//=======================================================================
//function : RWStepRepr_RWShapeAspectTransition
//purpose :
//=======================================================================
RWStepRepr_RWShapeAspectTransition::RWStepRepr_RWShapeAspectTransition ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWShapeAspectTransition::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_ShapeAspectTransition) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,4,ach,"shape_aspect_transition") ) return;
// Inherited fields of ShapeAspectRelationship
Handle(TCollection_HAsciiString) aShapeAspectRelationship_Name;
data->ReadString (num, 1, "shape_aspect_relationship.name", ach, aShapeAspectRelationship_Name);
Handle(TCollection_HAsciiString) aShapeAspectRelationship_Description;
Standard_Boolean hasShapeAspectRelationship_Description = Standard_True;
if ( data->IsParamDefined (num,2) ) {
data->ReadString (num, 2, "shape_aspect_relationship.description", ach, aShapeAspectRelationship_Description);
}
else {
hasShapeAspectRelationship_Description = Standard_False;
}
Handle(StepRepr_ShapeAspect) aShapeAspectRelationship_RelatingShapeAspect;
data->ReadEntity (num, 3, "shape_aspect_relationship.relating_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aShapeAspectRelationship_RelatingShapeAspect);
Handle(StepRepr_ShapeAspect) aShapeAspectRelationship_RelatedShapeAspect;
data->ReadEntity (num, 4, "shape_aspect_relationship.related_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aShapeAspectRelationship_RelatedShapeAspect);
// Initialize entity
ent->Init(aShapeAspectRelationship_Name,
hasShapeAspectRelationship_Description,
aShapeAspectRelationship_Description,
aShapeAspectRelationship_RelatingShapeAspect,
aShapeAspectRelationship_RelatedShapeAspect);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWShapeAspectTransition::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_ShapeAspectTransition) &ent) const
{
// Inherited fields of ShapeAspectRelationship
SW.Send (ent->StepRepr_ShapeAspectRelationship::Name());
if ( ent->StepRepr_ShapeAspectRelationship::HasDescription() ) {
SW.Send (ent->StepRepr_ShapeAspectRelationship::Description());
}
else SW.SendUndef();
SW.Send (ent->StepRepr_ShapeAspectRelationship::RelatingShapeAspect());
SW.Send (ent->StepRepr_ShapeAspectRelationship::RelatedShapeAspect());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWShapeAspectTransition::Share (const Handle(StepRepr_ShapeAspectTransition) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of ShapeAspectRelationship
iter.AddItem (ent->StepRepr_ShapeAspectRelationship::RelatingShapeAspect());
iter.AddItem (ent->StepRepr_ShapeAspectRelationship::RelatedShapeAspect());
}

View File

@@ -0,0 +1,30 @@
-- File: ShapeRepresentationRelationshipWithTransformation.cdl
-- Created: Mon Dec 4 12:02:31 1995
-- Author: EXPRESS->CDL V0.2 Translator
-- Copyright: Matra-Datavision 1993
class RWShapeRepresentationRelationshipWithTransformation from RWStepRepr
---Purpose : Read & Write Module for ShapeRepresentationRelationshipWithTransformation
uses Check from Interface,
StepReaderData from StepData,
StepWriter from StepData,
ShapeRepresentationRelationshipWithTransformation from StepRepr,
EntityIterator from Interface
is
Create returns RWShapeRepresentationRelationshipWithTransformation;
ReadStep (me; data : StepReaderData; num : Integer;
ach : in out Check; ent : mutable ShapeRepresentationRelationshipWithTransformation from StepRepr);
WriteStep (me; SW : in out StepWriter; ent : ShapeRepresentationRelationshipWithTransformation from StepRepr);
Share(me; ent : ShapeRepresentationRelationshipWithTransformation from StepRepr; iter : in out EntityIterator);
end RWShapeRepresentationRelationshipWithTransformation;

View File

@@ -0,0 +1,128 @@
#include <RWStepRepr_RWShapeRepresentationRelationshipWithTransformation.ixx>
#include <StepRepr_Representation.hxx>
#include <StepRepr_Transformation.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepRepr_ShapeRepresentationRelationshipWithTransformation.hxx>
RWStepRepr_RWShapeRepresentationRelationshipWithTransformation::RWStepRepr_RWShapeRepresentationRelationshipWithTransformation () {}
void RWStepRepr_RWShapeRepresentationRelationshipWithTransformation::ReadStep
(const Handle(StepData_StepReaderData)& data,
const Standard_Integer num0,
Handle(Interface_Check)& ach,
const Handle(StepRepr_ShapeRepresentationRelationshipWithTransformation)& ent) const
{
// Complex entity
// REPR_RLTS,REPR_RLTS_WITH_TR,SHAPE_REPR_RLTS
// But same fields as RepresentationRelationshipWithTransformation
// --- Instance of plex componant RepresentationRelationship ---
Standard_Integer num = 0; // num0;
data->NamedForComplex("REPRESENTATION_RELATIONSHIP RPRRLT",num0,num,ach);
// --- Number of Parameter Control ---
if (!data->CheckNbParams(num,4,ach,"representation_relationship")) return;
// --- inherited field : name ---
Handle(TCollection_HAsciiString) aName;
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
data->ReadString (num,1,"name",ach,aName);
// --- inherited field : description ---
Handle(TCollection_HAsciiString) aDescription;
if (data->IsParamDefined (num,2)) { //abv 08.10.99 TRJ2
data->ReadString (num,2,"description",ach,aDescription);
}
// --- inherited field : rep1 ---
Handle(StepRepr_Representation) aRep1;
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
data->ReadEntity(num, 3,"rep_1", ach, STANDARD_TYPE(StepRepr_Representation), aRep1);
// --- inherited field : rep2 ---
Handle(StepRepr_Representation) aRep2;
//szv#4:S4163:12Mar99 `Standard_Boolean stat4 =` not needed
data->ReadEntity(num, 4,"rep_2", ach, STANDARD_TYPE(StepRepr_Representation), aRep2);
// --- Instance of plex componant RepresentationRelationshipWithTransformation ---
data->NamedForComplex("REPRESENTATION_RELATIONSHIP_WITH_TRANSFORMATION RRWT",num0,num,ach);
if (!data->CheckNbParams(num,1,ach,"representation_relationship_with_transformation")) return;
// --- own field : transformation_operator
StepRepr_Transformation aTrans;
//szv#4:S4163:12Mar99 `Standard_Boolean stat5 =` not needed
data->ReadEntity(num,1,"transformation_operator",ach,aTrans);
// --- Instance of plex componant ShapeRepresentationRelationship ---
data->NamedForComplex("SHAPE_REPRESENTATION_RELATIONSHIP SHRPRL",num0,num,ach);
if (!data->CheckNbParams(num,0,ach,"shape_representation_relationship")) return;
//--- Initialisation of the read entity ---
ent->Init(aName, aDescription, aRep1, aRep2, aTrans);
}
void RWStepRepr_RWShapeRepresentationRelationshipWithTransformation::WriteStep
(StepData_StepWriter& SW,
const Handle(StepRepr_ShapeRepresentationRelationshipWithTransformation)& ent) const
{
// --- Instance of plex componant RepresentationRelationship ---
SW.StartEntity ("REPRESENTATION_RELATIONSHIP");
// --- inherited field : name ---
SW.Send(ent->Name());
// --- inherited field : description ---
SW.Send(ent->Description());
// --- inherited field : rep1 ---
SW.Send(ent->Rep1());
// --- inherited field : rep2 ---
SW.Send(ent->Rep2());
// --- Instance of plex componant RepresentationRelationshipWithTransformation ---
SW.StartEntity ("REPRESENTATION_RELATIONSHIP_WITH_TRANSFORMATION");
SW.Send(ent->TransformationOperator().Value());
// --- Instance of plex componant ShapeRepresentationRelationship ---
SW.StartEntity ("SHAPE_REPRESENTATION_RELATIONSHIP");
}
void RWStepRepr_RWShapeRepresentationRelationshipWithTransformation::Share(const Handle(StepRepr_ShapeRepresentationRelationshipWithTransformation)& ent, Interface_EntityIterator& iter) const
{
iter.GetOneItem(ent->Rep1());
iter.GetOneItem(ent->Rep2());
iter.GetOneItem(ent->TransformationOperator().Value());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWSpecifiedHigherUsageOccurrence.cdl
-- Created: Mon Jul 3 20:13:37 2000
-- Author: Andrey BETENEV
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
-- Copyright: Matra Datavision 2000
class RWSpecifiedHigherUsageOccurrence from RWStepRepr
---Purpose: Read & Write tool for SpecifiedHigherUsageOccurrence
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
SpecifiedHigherUsageOccurrence from StepRepr
is
Create returns RWSpecifiedHigherUsageOccurrence from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : SpecifiedHigherUsageOccurrence from StepRepr);
---Purpose: Reads SpecifiedHigherUsageOccurrence
WriteStep (me; SW: in out StepWriter from StepData;
ent: SpecifiedHigherUsageOccurrence from StepRepr);
---Purpose: Writes SpecifiedHigherUsageOccurrence
Share (me; ent : SpecifiedHigherUsageOccurrence from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWSpecifiedHigherUsageOccurrence;

View File

@@ -0,0 +1,146 @@
// File: RWStepRepr_RWSpecifiedHigherUsageOccurrence.cxx
// Created: Mon Jul 3 20:13:37 2000
// Author: Andrey BETENEV
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
// Copyright: Matra Datavision 2000
#include <RWStepRepr_RWSpecifiedHigherUsageOccurrence.ixx>
//=======================================================================
//function : RWStepRepr_RWSpecifiedHigherUsageOccurrence
//purpose :
//=======================================================================
RWStepRepr_RWSpecifiedHigherUsageOccurrence::RWStepRepr_RWSpecifiedHigherUsageOccurrence ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWSpecifiedHigherUsageOccurrence::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_SpecifiedHigherUsageOccurrence) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,8,ach,"specified_higher_usage_occurrence") ) return;
// Inherited fields of ProductDefinitionRelationship
Handle(TCollection_HAsciiString) aProductDefinitionRelationship_Id;
data->ReadString (num, 1, "product_definition_relationship.id", ach, aProductDefinitionRelationship_Id);
Handle(TCollection_HAsciiString) aProductDefinitionRelationship_Name;
data->ReadString (num, 2, "product_definition_relationship.name", ach, aProductDefinitionRelationship_Name);
Handle(TCollection_HAsciiString) aProductDefinitionRelationship_Description;
Standard_Boolean hasProductDefinitionRelationship_Description = Standard_True;
if ( data->IsParamDefined (num,3) ) {
data->ReadString (num, 3, "product_definition_relationship.description", ach, aProductDefinitionRelationship_Description);
}
else {
hasProductDefinitionRelationship_Description = Standard_False;
}
Handle(StepBasic_ProductDefinition) aProductDefinitionRelationship_RelatingProductDefinition;
data->ReadEntity (num, 4, "product_definition_relationship.relating_product_definition", ach, STANDARD_TYPE(StepBasic_ProductDefinition), aProductDefinitionRelationship_RelatingProductDefinition);
Handle(StepBasic_ProductDefinition) aProductDefinitionRelationship_RelatedProductDefinition;
data->ReadEntity (num, 5, "product_definition_relationship.related_product_definition", ach, STANDARD_TYPE(StepBasic_ProductDefinition), aProductDefinitionRelationship_RelatedProductDefinition);
// Inherited fields of AssemblyComponentUsage
Handle(TCollection_HAsciiString) aAssemblyComponentUsage_ReferenceDesignator;
Standard_Boolean hasAssemblyComponentUsage_ReferenceDesignator = Standard_True;
if ( data->IsParamDefined (num,6) ) {
data->ReadString (num, 6, "assembly_component_usage.reference_designator", ach, aAssemblyComponentUsage_ReferenceDesignator);
}
else {
hasAssemblyComponentUsage_ReferenceDesignator = Standard_False;
}
// Own fields of SpecifiedHigherUsageOccurrence
Handle(StepRepr_AssemblyComponentUsage) aUpperUsage;
data->ReadEntity (num, 7, "upper_usage", ach, STANDARD_TYPE(StepRepr_AssemblyComponentUsage), aUpperUsage);
Handle(StepRepr_NextAssemblyUsageOccurrence) aNextUsage;
data->ReadEntity (num, 8, "next_usage", ach, STANDARD_TYPE(StepRepr_NextAssemblyUsageOccurrence), aNextUsage);
// Initialize entity
ent->Init(aProductDefinitionRelationship_Id,
aProductDefinitionRelationship_Name,
hasProductDefinitionRelationship_Description,
aProductDefinitionRelationship_Description,
aProductDefinitionRelationship_RelatingProductDefinition,
aProductDefinitionRelationship_RelatedProductDefinition,
hasAssemblyComponentUsage_ReferenceDesignator,
aAssemblyComponentUsage_ReferenceDesignator,
aUpperUsage,
aNextUsage);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWSpecifiedHigherUsageOccurrence::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_SpecifiedHigherUsageOccurrence) &ent) const
{
// Inherited fields of ProductDefinitionRelationship
SW.Send (ent->StepBasic_ProductDefinitionRelationship::Id());
SW.Send (ent->StepBasic_ProductDefinitionRelationship::Name());
if ( ent->StepBasic_ProductDefinitionRelationship::HasDescription() ) {
SW.Send (ent->StepBasic_ProductDefinitionRelationship::Description());
}
else SW.SendUndef();
SW.Send (ent->StepBasic_ProductDefinitionRelationship::RelatingProductDefinition());
SW.Send (ent->StepBasic_ProductDefinitionRelationship::RelatedProductDefinition());
// Inherited fields of AssemblyComponentUsage
if ( ent->StepRepr_AssemblyComponentUsage::HasReferenceDesignator() ) {
SW.Send (ent->StepRepr_AssemblyComponentUsage::ReferenceDesignator());
}
else SW.SendUndef();
// Own fields of SpecifiedHigherUsageOccurrence
SW.Send (ent->UpperUsage());
SW.Send (ent->NextUsage());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWSpecifiedHigherUsageOccurrence::Share (const Handle(StepRepr_SpecifiedHigherUsageOccurrence) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of ProductDefinitionRelationship
iter.AddItem (ent->StepBasic_ProductDefinitionRelationship::RelatingProductDefinition());
iter.AddItem (ent->StepBasic_ProductDefinitionRelationship::RelatedProductDefinition());
// Inherited fields of AssemblyComponentUsage
// Own fields of SpecifiedHigherUsageOccurrence
iter.AddItem (ent->UpperUsage());
iter.AddItem (ent->NextUsage());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWStructuralResponseProperty.cdl
-- Created: Sun Dec 15 10:59:25 2002
-- Author: data exchange team
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWStructuralResponseProperty from RWStepRepr
---Purpose: Read & Write tool for StructuralResponseProperty
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
StructuralResponseProperty from StepRepr
is
Create returns RWStructuralResponseProperty from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : StructuralResponseProperty from StepRepr);
---Purpose: Reads StructuralResponseProperty
WriteStep (me; SW: in out StepWriter from StepData;
ent: StructuralResponseProperty from StepRepr);
---Purpose: Writes StructuralResponseProperty
Share (me; ent : StructuralResponseProperty from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWStructuralResponseProperty;

View File

@@ -0,0 +1,80 @@
// File: RWStepRepr_RWStructuralResponseProperty.cxx
// Created: Sun Dec 15 10:59:25 2002
// Author: data exchange team
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepRepr_RWStructuralResponseProperty.ixx>
//#include <StepRepr_RepresentedDefinition.hxx>
//=======================================================================
//function : RWStepRepr_RWStructuralResponseProperty
//purpose :
//=======================================================================
RWStepRepr_RWStructuralResponseProperty::RWStepRepr_RWStructuralResponseProperty ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWStructuralResponseProperty::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_StructuralResponseProperty) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,3,ach,"structural_response_property") ) return;
// Inherited fields of PropertyDefinition
Handle(TCollection_HAsciiString) aPropertyDefinition_Name;
data->ReadString (num, 1, "property_definition.name", ach, aPropertyDefinition_Name);
Handle(TCollection_HAsciiString) aPropertyDefinition_Description;
data->ReadString (num, 2, "property_definition.description", ach, aPropertyDefinition_Description);
StepRepr_CharacterizedDefinition aPropertyDefinition_Definition;
data->ReadEntity (num, 3, "property_definition.definition", ach, aPropertyDefinition_Definition);
// Initialize entity
ent->Init(aPropertyDefinition_Name, Standard_True,
aPropertyDefinition_Description,
aPropertyDefinition_Definition);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWStructuralResponseProperty::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_StructuralResponseProperty) &ent) const
{
// Inherited fields of PropertyDefinition
SW.Send (ent->StepRepr_PropertyDefinition::Name());
SW.Send (ent->StepRepr_PropertyDefinition::Description());
SW.Send (ent->StepRepr_PropertyDefinition::Definition().Value());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWStructuralResponseProperty::Share (const Handle(StepRepr_StructuralResponseProperty) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of PropertyDefinition
iter.AddItem (ent->StepRepr_PropertyDefinition::Definition().Value());
}

View File

@@ -0,0 +1,35 @@
-- File: RWStepRepr_RWStructuralResponsePropertyDefinitionRepresentation.cdl
-- Created: Sun Dec 15 10:59:25 2002
-- Author: data exchange team
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
-- Copyright: Open CASCADE 2002
class RWStructuralResponsePropertyDefinitionRepresentation from RWStepRepr
---Purpose: Read & Write tool for StructuralResponsePropertyDefinitionRepresentation
uses
Check from Interface,
StepWriter from StepData,
StepReaderData from StepData,
EntityIterator from Interface,
StructuralResponsePropertyDefinitionRepresentation from StepRepr
is
Create returns RWStructuralResponsePropertyDefinitionRepresentation from RWStepRepr;
---Purpose: Empty constructor
ReadStep (me; data: StepReaderData from StepData; num: Integer;
ach : in out Check from Interface;
ent : StructuralResponsePropertyDefinitionRepresentation from StepRepr);
---Purpose: Reads StructuralResponsePropertyDefinitionRepresentation
WriteStep (me; SW: in out StepWriter from StepData;
ent: StructuralResponsePropertyDefinitionRepresentation from StepRepr);
---Purpose: Writes StructuralResponsePropertyDefinitionRepresentation
Share (me; ent : StructuralResponsePropertyDefinitionRepresentation from StepRepr;
iter: in out EntityIterator from Interface);
---Purpose: Fills data for graph (shared items)
end RWStructuralResponsePropertyDefinitionRepresentation;

View File

@@ -0,0 +1,78 @@
// File: RWStepRepr_RWStructuralResponsePropertyDefinitionRepresentation.cxx
// Created: Sun Dec 15 10:59:25 2002
// Author: data exchange team
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
// Copyright: Open CASCADE 2002
#include <RWStepRepr_RWStructuralResponsePropertyDefinitionRepresentation.ixx>
//=======================================================================
//function : RWStepRepr_RWStructuralResponsePropertyDefinitionRepresentation
//purpose :
//=======================================================================
RWStepRepr_RWStructuralResponsePropertyDefinitionRepresentation::RWStepRepr_RWStructuralResponsePropertyDefinitionRepresentation ()
{
}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepRepr_RWStructuralResponsePropertyDefinitionRepresentation::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepRepr_StructuralResponsePropertyDefinitionRepresentation) &ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,2,ach,"structural_response_property_definition_representation") ) return;
// Inherited fields of PropertyDefinitionRepresentation
Handle(StepRepr_PropertyDefinition) aPropertyDefinitionRepresentation_Definition;
data->ReadEntity (num, 1, "property_definition_representation.definition", ach, STANDARD_TYPE(StepRepr_PropertyDefinition), aPropertyDefinitionRepresentation_Definition);
Handle(StepRepr_Representation) aPropertyDefinitionRepresentation_UsedRepresentation;
data->ReadEntity (num, 2, "property_definition_representation.used_representation", ach, STANDARD_TYPE(StepRepr_Representation), aPropertyDefinitionRepresentation_UsedRepresentation);
//skl 15.12.2002
StepRepr_RepresentedDefinition aRepresentedDefinition;
aRepresentedDefinition.SetValue(aPropertyDefinitionRepresentation_Definition);
// Initialize entity
ent->Init(/*aPropertyDefinitionRepresentation_Definition*/aRepresentedDefinition,
aPropertyDefinitionRepresentation_UsedRepresentation);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepRepr_RWStructuralResponsePropertyDefinitionRepresentation::WriteStep (StepData_StepWriter& SW,
const Handle(StepRepr_StructuralResponsePropertyDefinitionRepresentation) &ent) const
{
// Inherited fields of PropertyDefinitionRepresentation
SW.Send (ent->StepRepr_PropertyDefinitionRepresentation::Definition().Value());
SW.Send (ent->StepRepr_PropertyDefinitionRepresentation::UsedRepresentation());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepRepr_RWStructuralResponsePropertyDefinitionRepresentation::Share (const Handle(StepRepr_StructuralResponsePropertyDefinitionRepresentation) &ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of PropertyDefinitionRepresentation
iter.AddItem (ent->StepRepr_PropertyDefinitionRepresentation::Definition().Value());
iter.AddItem (ent->StepRepr_PropertyDefinitionRepresentation::UsedRepresentation());
}