mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
166
src/RWStepBasic/RWStepBasic.cdl
Executable file
166
src/RWStepBasic/RWStepBasic.cdl
Executable file
@@ -0,0 +1,166 @@
|
||||
-- File: StepBasic.cdl
|
||||
-- Created: Mon Dec 4 12:02:22 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
package RWStepBasic
|
||||
|
||||
uses
|
||||
|
||||
StepData, Interface, TCollection, TColStd, StepBasic
|
||||
|
||||
is
|
||||
|
||||
|
||||
--class ReadWriteModule;
|
||||
|
||||
--class GeneralModule;
|
||||
|
||||
class RWAddress;
|
||||
class RWApplicationContext;
|
||||
class RWApplicationContextElement;
|
||||
class RWApplicationProtocolDefinition;
|
||||
class RWApproval;
|
||||
class RWApprovalPersonOrganization;
|
||||
class RWApprovalRelationship;
|
||||
class RWApprovalRole;
|
||||
class RWApprovalStatus;
|
||||
class RWCalendarDate;
|
||||
class RWConversionBasedUnit;
|
||||
class RWCoordinatedUniversalTimeOffset;
|
||||
class RWDate;
|
||||
class RWDateAndTime;
|
||||
class RWDateRole;
|
||||
class RWDateTimeRole;
|
||||
class RWDimensionalExponents;
|
||||
class RWLengthMeasureWithUnit;
|
||||
class RWLengthUnit;
|
||||
class RWLocalTime;
|
||||
class RWMeasureWithUnit;
|
||||
class RWNamedUnit;
|
||||
class RWOrdinalDate;
|
||||
class RWOrganization;
|
||||
class RWOrganizationRole;
|
||||
class RWOrganizationalAddress;
|
||||
class RWPerson;
|
||||
class RWPersonAndOrganization;
|
||||
class RWPersonAndOrganizationRole;
|
||||
class RWPersonalAddress;
|
||||
class RWPlaneAngleMeasureWithUnit;
|
||||
class RWPlaneAngleUnit;
|
||||
class RWProduct;
|
||||
class RWProductCategory;
|
||||
class RWProductContext;
|
||||
class RWMechanicalContext; -- FMA le 24-07-96
|
||||
-- Removed from Rev2 to Rev4 : class RWProductDataRepresentationView;
|
||||
class RWProductDefinition;
|
||||
class RWProductDefinitionContext;
|
||||
class RWProductDefinitionFormation;
|
||||
class RWProductDefinitionFormationWithSpecifiedSource;
|
||||
class RWProductRelatedProductCategory;
|
||||
class RWProductType;
|
||||
class RWRatioMeasureWithUnit;
|
||||
class RWSecurityClassification;
|
||||
class RWSecurityClassificationLevel;
|
||||
class RWSiUnit;
|
||||
class RWSolidAngleMeasureWithUnit;
|
||||
class RWSolidAngleUnit; -- Added by FMA
|
||||
class RWUncertaintyMeasureWithUnit;
|
||||
class RWWeekOfYearAndDayDate;
|
||||
|
||||
class RWSiUnitAndLengthUnit;
|
||||
class RWSiUnitAndPlaneAngleUnit;
|
||||
class RWSiUnitAndRatioUnit; -- Added from Rev2 to Rev4
|
||||
class RWSiUnitAndSolidAngleUnit; -- Added by FMA for Rev4
|
||||
class RWSiUnitAndTimeUnit; -- Added from Rev2 to Rev4
|
||||
class RWSiUnitAndAreaUnit;
|
||||
class RWSiUnitAndVolumeUnit;
|
||||
class RWSiUnitAndMassUnit; -- Added for AP209 (skl 15.12.2002)
|
||||
class RWSiUnitAndThermodynamicTemperatureUnit; -- Added for AP209 (skl 15.12.2002)
|
||||
class RWConversionBasedUnitAndLengthUnit;
|
||||
class RWConversionBasedUnitAndPlaneAngleUnit;
|
||||
class RWConversionBasedUnitAndRatioUnit; -- Added from Rev2 to Rev4
|
||||
class RWConversionBasedUnitAndSolidAngleUnit; -- Added by FMA for Rev4
|
||||
class RWConversionBasedUnitAndTimeUnit; -- Added from Rev2 to Rev4
|
||||
class RWConversionBasedUnitAndAreaUnit;
|
||||
class RWConversionBasedUnitAndVolumeUnit;
|
||||
class RWConversionBasedUnitAndMassUnit; -- added by skl 10.02.2004 for TRJ13
|
||||
class RWMassMeasureWithUnit; -- added by skl 10.02.2004 for TRJ13
|
||||
|
||||
-- Added from Rev2 to Rev4
|
||||
|
||||
class RWApprovalDateTime;
|
||||
class RWDerivedUnit;
|
||||
class RWDerivedUnitElement;
|
||||
|
||||
-- Added from AP214 CC1 to CC2
|
||||
|
||||
class RWDocument;
|
||||
--class RWDigitalDocument; same as for Document
|
||||
|
||||
class RWDocumentRelationship;
|
||||
class RWDocumentType;
|
||||
class RWDocumentUsageConstraint;
|
||||
class RWEffectivity;
|
||||
class RWProductDefinitionEffectivity;
|
||||
class RWProductDefinitionRelationship;
|
||||
|
||||
class RWProductDefinitionWithAssociatedDocuments;
|
||||
--class RWPhysicallyModeledProductDefinition; same as for ProductDefinition
|
||||
|
||||
-- Added from AP214 CC2 to DIS
|
||||
|
||||
class RWCharacterizedObject;
|
||||
class RWDocumentFile;
|
||||
|
||||
-- Added for AP203
|
||||
class RWAction;
|
||||
class RWActionAssignment;
|
||||
class RWActionMethod;
|
||||
class RWActionRequestAssignment;
|
||||
class RWVersionedActionRequest;
|
||||
class RWCertification;
|
||||
class RWCertificationAssignment;
|
||||
class RWCertificationType;
|
||||
class RWContract;
|
||||
class RWContractAssignment;
|
||||
class RWContractType;
|
||||
class RWProductConceptContext;
|
||||
class RWProductCategoryRelationship;
|
||||
class RWActionRequestSolution;
|
||||
|
||||
-- added for external references (CAX-IF TRJ4)
|
||||
class RWDocumentRepresentationType;
|
||||
class RWExternalSource;
|
||||
class RWExternallyDefinedItem;
|
||||
class RWGeneralProperty;
|
||||
class RWObjectRole;
|
||||
class RWRoleAssociation;
|
||||
class RWEffectivityAssignment;
|
||||
class RWExternalIdentificationAssignment;
|
||||
class RWIdentificationAssignment;
|
||||
class RWIdentificationRole;
|
||||
class RWNameAssignment;
|
||||
class RWGroup;
|
||||
class RWGroupAssignment;
|
||||
class RWGroupRelationship;
|
||||
|
||||
|
||||
---Added AP209
|
||||
class RWEulerAngles;
|
||||
class RWMassUnit;
|
||||
class RWThermodynamicTemperatureUnit;
|
||||
class RWProductDefinitionFormationRelationship;
|
||||
|
||||
-- added for external references (CAX-IF TRJ11 2003)
|
||||
class RWDocumentProductAssociation;
|
||||
class RWDocumentProductEquivalence;
|
||||
---Package Method ---
|
||||
|
||||
-- Init;
|
||||
---Purpose: enforced the initialisation of the libraries
|
||||
|
||||
end RWStepBasic;
|
35
src/RWStepBasic/RWStepBasic_RWAction.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWAction.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWAction.cdl
|
||||
-- Created: Fri Nov 26 16:26:28 1999
|
||||
-- Author: Andrey BETENEV
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
-- Copyright: Matra Datavision 1999
|
||||
|
||||
class RWAction from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for Action
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
Action from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWAction from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : Action from StepBasic);
|
||||
---Purpose: Reads Action
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: Action from StepBasic);
|
||||
---Purpose: Writes Action
|
||||
|
||||
Share (me; ent : Action from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWAction;
|
88
src/RWStepBasic/RWStepBasic_RWAction.cxx
Executable file
88
src/RWStepBasic/RWStepBasic_RWAction.cxx
Executable file
@@ -0,0 +1,88 @@
|
||||
// File: RWStepBasic_RWAction.cxx
|
||||
// Created: Fri Nov 26 16:26:28 1999
|
||||
// Author: Andrey BETENEV
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
// Copyright: Matra Datavision 1999
|
||||
|
||||
#include <RWStepBasic_RWAction.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWAction
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWAction::RWStepBasic_RWAction ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWAction::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_Action) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,3,ach,"action") ) return;
|
||||
|
||||
// Own fields of Action
|
||||
|
||||
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(StepBasic_ActionMethod) aChosenMethod;
|
||||
data->ReadEntity (num, 3, "chosen_method", ach, STANDARD_TYPE(StepBasic_ActionMethod), aChosenMethod);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aName,
|
||||
hasDescription,
|
||||
aDescription,
|
||||
aChosenMethod);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWAction::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_Action) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of Action
|
||||
|
||||
SW.Send (ent->Name());
|
||||
|
||||
if ( ent->HasDescription() ) {
|
||||
SW.Send (ent->Description());
|
||||
}
|
||||
else SW.SendUndef();
|
||||
|
||||
SW.Send (ent->ChosenMethod());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWAction::Share (const Handle(StepBasic_Action) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of Action
|
||||
|
||||
iter.AddItem (ent->ChosenMethod());
|
||||
}
|
35
src/RWStepBasic/RWStepBasic_RWActionAssignment.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWActionAssignment.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWActionAssignment.cdl
|
||||
-- Created: Fri Nov 26 16:26:29 1999
|
||||
-- Author: Andrey BETENEV
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
-- Copyright: Matra Datavision 1999
|
||||
|
||||
class RWActionAssignment from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for ActionAssignment
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
ActionAssignment from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWActionAssignment from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : ActionAssignment from StepBasic);
|
||||
---Purpose: Reads ActionAssignment
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: ActionAssignment from StepBasic);
|
||||
---Purpose: Writes ActionAssignment
|
||||
|
||||
Share (me; ent : ActionAssignment from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWActionAssignment;
|
66
src/RWStepBasic/RWStepBasic_RWActionAssignment.cxx
Executable file
66
src/RWStepBasic/RWStepBasic_RWActionAssignment.cxx
Executable file
@@ -0,0 +1,66 @@
|
||||
// File: RWStepBasic_RWActionAssignment.cxx
|
||||
// Created: Fri Nov 26 16:26:29 1999
|
||||
// Author: Andrey BETENEV
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
// Copyright: Matra Datavision 1999
|
||||
|
||||
#include <RWStepBasic_RWActionAssignment.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWActionAssignment
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWActionAssignment::RWStepBasic_RWActionAssignment ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWActionAssignment::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ActionAssignment) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,1,ach,"action_assignment") ) return;
|
||||
|
||||
// Own fields of ActionAssignment
|
||||
|
||||
Handle(StepBasic_Action) aAssignedAction;
|
||||
data->ReadEntity (num, 1, "assigned_action", ach, STANDARD_TYPE(StepBasic_Action), aAssignedAction);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aAssignedAction);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWActionAssignment::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ActionAssignment) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of ActionAssignment
|
||||
|
||||
SW.Send (ent->AssignedAction());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWActionAssignment::Share (const Handle(StepBasic_ActionAssignment) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of ActionAssignment
|
||||
|
||||
iter.AddItem (ent->AssignedAction());
|
||||
}
|
35
src/RWStepBasic/RWStepBasic_RWActionMethod.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWActionMethod.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWActionMethod.cdl
|
||||
-- Created: Fri Nov 26 16:26:29 1999
|
||||
-- Author: Andrey BETENEV
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
-- Copyright: Matra Datavision 1999
|
||||
|
||||
class RWActionMethod from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for ActionMethod
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
ActionMethod from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWActionMethod from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : ActionMethod from StepBasic);
|
||||
---Purpose: Reads ActionMethod
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: ActionMethod from StepBasic);
|
||||
---Purpose: Writes ActionMethod
|
||||
|
||||
Share (me; ent : ActionMethod from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWActionMethod;
|
92
src/RWStepBasic/RWStepBasic_RWActionMethod.cxx
Executable file
92
src/RWStepBasic/RWStepBasic_RWActionMethod.cxx
Executable file
@@ -0,0 +1,92 @@
|
||||
// File: RWStepBasic_RWActionMethod.cxx
|
||||
// Created: Fri Nov 26 16:26:30 1999
|
||||
// Author: Andrey BETENEV
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
// Copyright: Matra Datavision 1999
|
||||
|
||||
#include <RWStepBasic_RWActionMethod.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWActionMethod
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWActionMethod::RWStepBasic_RWActionMethod ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWActionMethod::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ActionMethod) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,4,ach,"action_method") ) return;
|
||||
|
||||
// Own fields of ActionMethod
|
||||
|
||||
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(TCollection_HAsciiString) aConsequence;
|
||||
data->ReadString (num, 3, "consequence", ach, aConsequence);
|
||||
|
||||
Handle(TCollection_HAsciiString) aPurpose;
|
||||
data->ReadString (num, 4, "purpose", ach, aPurpose);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aName,
|
||||
hasDescription,
|
||||
aDescription,
|
||||
aConsequence,
|
||||
aPurpose);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWActionMethod::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ActionMethod) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of ActionMethod
|
||||
|
||||
SW.Send (ent->Name());
|
||||
|
||||
if ( ent->HasDescription() ) {
|
||||
SW.Send (ent->Description());
|
||||
}
|
||||
else SW.SendUndef();
|
||||
|
||||
SW.Send (ent->Consequence());
|
||||
|
||||
SW.Send (ent->Purpose());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWActionMethod::Share (const Handle(StepBasic_ActionMethod) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of ActionMethod
|
||||
}
|
35
src/RWStepBasic/RWStepBasic_RWActionRequestAssignment.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWActionRequestAssignment.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWActionRequestAssignment.cdl
|
||||
-- Created: Fri Nov 26 16:26:30 1999
|
||||
-- Author: Andrey BETENEV
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
-- Copyright: Matra Datavision 1999
|
||||
|
||||
class RWActionRequestAssignment from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for ActionRequestAssignment
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
ActionRequestAssignment from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWActionRequestAssignment from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : ActionRequestAssignment from StepBasic);
|
||||
---Purpose: Reads ActionRequestAssignment
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: ActionRequestAssignment from StepBasic);
|
||||
---Purpose: Writes ActionRequestAssignment
|
||||
|
||||
Share (me; ent : ActionRequestAssignment from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWActionRequestAssignment;
|
66
src/RWStepBasic/RWStepBasic_RWActionRequestAssignment.cxx
Executable file
66
src/RWStepBasic/RWStepBasic_RWActionRequestAssignment.cxx
Executable file
@@ -0,0 +1,66 @@
|
||||
// File: RWStepBasic_RWActionRequestAssignment.cxx
|
||||
// Created: Fri Nov 26 16:26:30 1999
|
||||
// Author: Andrey BETENEV
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
// Copyright: Matra Datavision 1999
|
||||
|
||||
#include <RWStepBasic_RWActionRequestAssignment.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWActionRequestAssignment
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWActionRequestAssignment::RWStepBasic_RWActionRequestAssignment ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWActionRequestAssignment::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ActionRequestAssignment) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,1,ach,"action_request_assignment") ) return;
|
||||
|
||||
// Own fields of ActionRequestAssignment
|
||||
|
||||
Handle(StepBasic_VersionedActionRequest) aAssignedActionRequest;
|
||||
data->ReadEntity (num, 1, "assigned_action_request", ach, STANDARD_TYPE(StepBasic_VersionedActionRequest), aAssignedActionRequest);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aAssignedActionRequest);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWActionRequestAssignment::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ActionRequestAssignment) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of ActionRequestAssignment
|
||||
|
||||
SW.Send (ent->AssignedActionRequest());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWActionRequestAssignment::Share (const Handle(StepBasic_ActionRequestAssignment) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of ActionRequestAssignment
|
||||
|
||||
iter.AddItem (ent->AssignedActionRequest());
|
||||
}
|
35
src/RWStepBasic/RWStepBasic_RWActionRequestSolution.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWActionRequestSolution.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWActionRequestSolution.cdl
|
||||
-- Created: Fri Nov 26 16:26:30 1999
|
||||
-- Author: Andrey BETENEV
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
-- Copyright: Matra Datavision 1999
|
||||
|
||||
class RWActionRequestSolution from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for ActionRequestSolution
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
ActionRequestSolution from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWActionRequestSolution from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : ActionRequestSolution from StepBasic);
|
||||
---Purpose: Reads ActionRequestSolution
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: ActionRequestSolution from StepBasic);
|
||||
---Purpose: Writes ActionRequestSolution
|
||||
|
||||
Share (me; ent : ActionRequestSolution from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWActionRequestSolution;
|
74
src/RWStepBasic/RWStepBasic_RWActionRequestSolution.cxx
Executable file
74
src/RWStepBasic/RWStepBasic_RWActionRequestSolution.cxx
Executable file
@@ -0,0 +1,74 @@
|
||||
// File: RWStepBasic_RWActionRequestSolution.cxx
|
||||
// Created: Fri Nov 26 16:26:31 1999
|
||||
// Author: Andrey BETENEV
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
// Copyright: Matra Datavision 1999
|
||||
|
||||
#include <RWStepBasic_RWActionRequestSolution.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWActionRequestSolution
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWActionRequestSolution::RWStepBasic_RWActionRequestSolution ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWActionRequestSolution::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ActionRequestSolution) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,2,ach,"action_request_solution") ) return;
|
||||
|
||||
// Own fields of ActionRequestSolution
|
||||
|
||||
Handle(StepBasic_ActionMethod) aMethod;
|
||||
data->ReadEntity (num, 1, "method", ach, STANDARD_TYPE(StepBasic_ActionMethod), aMethod);
|
||||
|
||||
Handle(StepBasic_VersionedActionRequest) aRequest;
|
||||
data->ReadEntity (num, 2, "request", ach, STANDARD_TYPE(StepBasic_VersionedActionRequest), aRequest);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aMethod,
|
||||
aRequest);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWActionRequestSolution::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ActionRequestSolution) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of ActionRequestSolution
|
||||
|
||||
SW.Send (ent->Method());
|
||||
|
||||
SW.Send (ent->Request());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWActionRequestSolution::Share (const Handle(StepBasic_ActionRequestSolution) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of ActionRequestSolution
|
||||
|
||||
iter.AddItem (ent->Method());
|
||||
|
||||
iter.AddItem (ent->Request());
|
||||
}
|
27
src/RWStepBasic/RWStepBasic_RWAddress.cdl
Executable file
27
src/RWStepBasic/RWStepBasic_RWAddress.cdl
Executable file
@@ -0,0 +1,27 @@
|
||||
-- File: Address.cdl
|
||||
-- Created: Mon Dec 4 12:02:22 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWAddress from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for Address
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
Address from StepBasic
|
||||
|
||||
is
|
||||
|
||||
Create returns RWAddress;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable Address from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : Address from StepBasic);
|
||||
|
||||
end RWAddress;
|
305
src/RWStepBasic/RWStepBasic_RWAddress.cxx
Executable file
305
src/RWStepBasic/RWStepBasic_RWAddress.cxx
Executable file
@@ -0,0 +1,305 @@
|
||||
|
||||
#include <RWStepBasic_RWAddress.ixx>
|
||||
|
||||
|
||||
RWStepBasic_RWAddress::RWStepBasic_RWAddress () {}
|
||||
|
||||
void RWStepBasic_RWAddress::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_Address)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,12,ach,"address")) return;
|
||||
// --- own field : internalLocation ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aInternalLocation;
|
||||
Standard_Boolean hasAinternalLocation = Standard_True;
|
||||
if (data->IsParamDefined(num,1)) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadString (num,1,"internal_location",ach,aInternalLocation);
|
||||
}
|
||||
else {
|
||||
hasAinternalLocation = Standard_False;
|
||||
aInternalLocation.Nullify();
|
||||
}
|
||||
|
||||
// --- own field : streetNumber ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aStreetNumber;
|
||||
Standard_Boolean hasAstreetNumber = Standard_True;
|
||||
if (data->IsParamDefined(num,2)) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
|
||||
data->ReadString (num,2,"street_number",ach,aStreetNumber);
|
||||
}
|
||||
else {
|
||||
hasAstreetNumber = Standard_False;
|
||||
aStreetNumber.Nullify();
|
||||
}
|
||||
|
||||
// --- own field : street ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aStreet;
|
||||
Standard_Boolean hasAstreet = Standard_True;
|
||||
if (data->IsParamDefined(num,3)) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
data->ReadString (num,3,"street",ach,aStreet);
|
||||
}
|
||||
else {
|
||||
hasAstreet = Standard_False;
|
||||
aStreet.Nullify();
|
||||
}
|
||||
|
||||
// --- own field : postalBox ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aPostalBox;
|
||||
Standard_Boolean hasApostalBox = Standard_True;
|
||||
if (data->IsParamDefined(num,4)) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat4 =` not needed
|
||||
data->ReadString (num,4,"postal_box",ach,aPostalBox);
|
||||
}
|
||||
else {
|
||||
hasApostalBox = Standard_False;
|
||||
aPostalBox.Nullify();
|
||||
}
|
||||
|
||||
// --- own field : town ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aTown;
|
||||
Standard_Boolean hasAtown = Standard_True;
|
||||
if (data->IsParamDefined(num,5)) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat5 =` not needed
|
||||
data->ReadString (num,5,"town",ach,aTown);
|
||||
}
|
||||
else {
|
||||
hasAtown = Standard_False;
|
||||
aTown.Nullify();
|
||||
}
|
||||
|
||||
// --- own field : region ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aRegion;
|
||||
Standard_Boolean hasAregion = Standard_True;
|
||||
if (data->IsParamDefined(num,6)) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat6 =` not needed
|
||||
data->ReadString (num,6,"region",ach,aRegion);
|
||||
}
|
||||
else {
|
||||
hasAregion = Standard_False;
|
||||
aRegion.Nullify();
|
||||
}
|
||||
|
||||
// --- own field : postalCode ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aPostalCode;
|
||||
Standard_Boolean hasApostalCode = Standard_True;
|
||||
if (data->IsParamDefined(num,7)) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat7 =` not needed
|
||||
data->ReadString (num,7,"postal_code",ach,aPostalCode);
|
||||
}
|
||||
else {
|
||||
hasApostalCode = Standard_False;
|
||||
aPostalCode.Nullify();
|
||||
}
|
||||
|
||||
// --- own field : country ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aCountry;
|
||||
Standard_Boolean hasAcountry = Standard_True;
|
||||
if (data->IsParamDefined(num,8)) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat8 =` not needed
|
||||
data->ReadString (num,8,"country",ach,aCountry);
|
||||
}
|
||||
else {
|
||||
hasAcountry = Standard_False;
|
||||
aCountry.Nullify();
|
||||
}
|
||||
|
||||
// --- own field : facsimileNumber ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aFacsimileNumber;
|
||||
Standard_Boolean hasAfacsimileNumber = Standard_True;
|
||||
if (data->IsParamDefined(num,9)) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat9 =` not needed
|
||||
data->ReadString (num,9,"facsimile_number",ach,aFacsimileNumber);
|
||||
}
|
||||
else {
|
||||
hasAfacsimileNumber = Standard_False;
|
||||
aFacsimileNumber.Nullify();
|
||||
}
|
||||
|
||||
// --- own field : telephoneNumber ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aTelephoneNumber;
|
||||
Standard_Boolean hasAtelephoneNumber = Standard_True;
|
||||
if (data->IsParamDefined(num,10)) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat10 =` not needed
|
||||
data->ReadString (num,10,"telephone_number",ach,aTelephoneNumber);
|
||||
}
|
||||
else {
|
||||
hasAtelephoneNumber = Standard_False;
|
||||
aTelephoneNumber.Nullify();
|
||||
}
|
||||
|
||||
// --- own field : electronicMailAddress ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aElectronicMailAddress;
|
||||
Standard_Boolean hasAelectronicMailAddress = Standard_True;
|
||||
if (data->IsParamDefined(num,11)) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat11 =` not needed
|
||||
data->ReadString (num,11,"electronic_mail_address",ach,aElectronicMailAddress);
|
||||
}
|
||||
else {
|
||||
hasAelectronicMailAddress = Standard_False;
|
||||
aElectronicMailAddress.Nullify();
|
||||
}
|
||||
|
||||
// --- own field : telexNumber ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aTelexNumber;
|
||||
Standard_Boolean hasAtelexNumber = Standard_True;
|
||||
if (data->IsParamDefined(num,12)) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat12 =` not needed
|
||||
data->ReadString (num,12,"telex_number",ach,aTelexNumber);
|
||||
}
|
||||
else {
|
||||
hasAtelexNumber = Standard_False;
|
||||
aTelexNumber.Nullify();
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(hasAinternalLocation, aInternalLocation, hasAstreetNumber, aStreetNumber, hasAstreet, aStreet, hasApostalBox, aPostalBox, hasAtown, aTown, hasAregion, aRegion, hasApostalCode, aPostalCode, hasAcountry, aCountry, hasAfacsimileNumber, aFacsimileNumber, hasAtelephoneNumber, aTelephoneNumber, hasAelectronicMailAddress, aElectronicMailAddress, hasAtelexNumber, aTelexNumber);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWAddress::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_Address)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : internalLocation ---
|
||||
|
||||
Standard_Boolean hasAinternalLocation = ent->HasInternalLocation();
|
||||
if (hasAinternalLocation) {
|
||||
SW.Send(ent->InternalLocation());
|
||||
}
|
||||
else {
|
||||
SW.SendUndef();
|
||||
}
|
||||
|
||||
// --- own field : streetNumber ---
|
||||
|
||||
Standard_Boolean hasAstreetNumber = ent->HasStreetNumber();
|
||||
if (hasAstreetNumber) {
|
||||
SW.Send(ent->StreetNumber());
|
||||
}
|
||||
else {
|
||||
SW.SendUndef();
|
||||
}
|
||||
|
||||
// --- own field : street ---
|
||||
|
||||
Standard_Boolean hasAstreet = ent->HasStreet();
|
||||
if (hasAstreet) {
|
||||
SW.Send(ent->Street());
|
||||
}
|
||||
else {
|
||||
SW.SendUndef();
|
||||
}
|
||||
|
||||
// --- own field : postalBox ---
|
||||
|
||||
Standard_Boolean hasApostalBox = ent->HasPostalBox();
|
||||
if (hasApostalBox) {
|
||||
SW.Send(ent->PostalBox());
|
||||
}
|
||||
else {
|
||||
SW.SendUndef();
|
||||
}
|
||||
|
||||
// --- own field : town ---
|
||||
|
||||
Standard_Boolean hasAtown = ent->HasTown();
|
||||
if (hasAtown) {
|
||||
SW.Send(ent->Town());
|
||||
}
|
||||
else {
|
||||
SW.SendUndef();
|
||||
}
|
||||
|
||||
// --- own field : region ---
|
||||
|
||||
Standard_Boolean hasAregion = ent->HasRegion();
|
||||
if (hasAregion) {
|
||||
SW.Send(ent->Region());
|
||||
}
|
||||
else {
|
||||
SW.SendUndef();
|
||||
}
|
||||
|
||||
// --- own field : postalCode ---
|
||||
|
||||
Standard_Boolean hasApostalCode = ent->HasPostalCode();
|
||||
if (hasApostalCode) {
|
||||
SW.Send(ent->PostalCode());
|
||||
}
|
||||
else {
|
||||
SW.SendUndef();
|
||||
}
|
||||
|
||||
// --- own field : country ---
|
||||
|
||||
Standard_Boolean hasAcountry = ent->HasCountry();
|
||||
if (hasAcountry) {
|
||||
SW.Send(ent->Country());
|
||||
}
|
||||
else {
|
||||
SW.SendUndef();
|
||||
}
|
||||
|
||||
// --- own field : facsimileNumber ---
|
||||
|
||||
Standard_Boolean hasAfacsimileNumber = ent->HasFacsimileNumber();
|
||||
if (hasAfacsimileNumber) {
|
||||
SW.Send(ent->FacsimileNumber());
|
||||
}
|
||||
else {
|
||||
SW.SendUndef();
|
||||
}
|
||||
|
||||
// --- own field : telephoneNumber ---
|
||||
|
||||
Standard_Boolean hasAtelephoneNumber = ent->HasTelephoneNumber();
|
||||
if (hasAtelephoneNumber) {
|
||||
SW.Send(ent->TelephoneNumber());
|
||||
}
|
||||
else {
|
||||
SW.SendUndef();
|
||||
}
|
||||
|
||||
// --- own field : electronicMailAddress ---
|
||||
|
||||
Standard_Boolean hasAelectronicMailAddress = ent->HasElectronicMailAddress();
|
||||
if (hasAelectronicMailAddress) {
|
||||
SW.Send(ent->ElectronicMailAddress());
|
||||
}
|
||||
else {
|
||||
SW.SendUndef();
|
||||
}
|
||||
|
||||
// --- own field : telexNumber ---
|
||||
|
||||
Standard_Boolean hasAtelexNumber = ent->HasTelexNumber();
|
||||
if (hasAtelexNumber) {
|
||||
SW.Send(ent->TelexNumber());
|
||||
}
|
||||
else {
|
||||
SW.SendUndef();
|
||||
}
|
||||
}
|
27
src/RWStepBasic/RWStepBasic_RWApplicationContext.cdl
Executable file
27
src/RWStepBasic/RWStepBasic_RWApplicationContext.cdl
Executable file
@@ -0,0 +1,27 @@
|
||||
-- File: ApplicationContext.cdl
|
||||
-- Created: Mon Dec 4 12:02:23 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWApplicationContext from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for ApplicationContext
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ApplicationContext from StepBasic
|
||||
|
||||
is
|
||||
|
||||
Create returns RWApplicationContext;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ApplicationContext from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ApplicationContext from StepBasic);
|
||||
|
||||
end RWApplicationContext;
|
40
src/RWStepBasic/RWStepBasic_RWApplicationContext.cxx
Executable file
40
src/RWStepBasic/RWStepBasic_RWApplicationContext.cxx
Executable file
@@ -0,0 +1,40 @@
|
||||
|
||||
#include <RWStepBasic_RWApplicationContext.ixx>
|
||||
|
||||
|
||||
RWStepBasic_RWApplicationContext::RWStepBasic_RWApplicationContext () {}
|
||||
|
||||
void RWStepBasic_RWApplicationContext::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ApplicationContext)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"application_context")) return;
|
||||
|
||||
// --- own field : application ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aApplication;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadString (num,1,"application",ach,aApplication);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aApplication);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWApplicationContext::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ApplicationContext)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : application ---
|
||||
|
||||
SW.Send(ent->Application());
|
||||
}
|
30
src/RWStepBasic/RWStepBasic_RWApplicationContextElement.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWApplicationContextElement.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: ApplicationContextElement.cdl
|
||||
-- Created: Mon Dec 4 12:02:23 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWApplicationContextElement from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for ApplicationContextElement
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ApplicationContextElement from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWApplicationContextElement;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ApplicationContextElement from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ApplicationContextElement from StepBasic);
|
||||
|
||||
Share(me; ent : ApplicationContextElement from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWApplicationContextElement;
|
67
src/RWStepBasic/RWStepBasic_RWApplicationContextElement.cxx
Executable file
67
src/RWStepBasic/RWStepBasic_RWApplicationContextElement.cxx
Executable file
@@ -0,0 +1,67 @@
|
||||
|
||||
#include <RWStepBasic_RWApplicationContextElement.ixx>
|
||||
#include <StepBasic_ApplicationContext.hxx>
|
||||
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_ApplicationContextElement.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWApplicationContextElement::RWStepBasic_RWApplicationContextElement () {}
|
||||
|
||||
void RWStepBasic_RWApplicationContextElement::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ApplicationContextElement)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,2,ach,"application_context_element")) 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 : frameOfReference ---
|
||||
|
||||
Handle(StepBasic_ApplicationContext) aFrameOfReference;
|
||||
#ifdef DEB
|
||||
Standard_Boolean stat2 =
|
||||
#endif
|
||||
data->ReadEntity(num, 2,"frame_of_reference", ach, STANDARD_TYPE(StepBasic_ApplicationContext), aFrameOfReference);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aName, aFrameOfReference);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWApplicationContextElement::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ApplicationContextElement)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : name ---
|
||||
|
||||
SW.Send(ent->Name());
|
||||
|
||||
// --- own field : frameOfReference ---
|
||||
|
||||
SW.Send(ent->FrameOfReference());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWApplicationContextElement::Share(const Handle(StepBasic_ApplicationContextElement)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->FrameOfReference());
|
||||
}
|
||||
|
30
src/RWStepBasic/RWStepBasic_RWApplicationProtocolDefinition.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWApplicationProtocolDefinition.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: ApplicationProtocolDefinition.cdl
|
||||
-- Created: Mon Dec 4 12:02:23 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWApplicationProtocolDefinition from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for ApplicationProtocolDefinition
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ApplicationProtocolDefinition from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWApplicationProtocolDefinition;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ApplicationProtocolDefinition from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ApplicationProtocolDefinition from StepBasic);
|
||||
|
||||
Share(me; ent : ApplicationProtocolDefinition from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWApplicationProtocolDefinition;
|
85
src/RWStepBasic/RWStepBasic_RWApplicationProtocolDefinition.cxx
Executable file
85
src/RWStepBasic/RWStepBasic_RWApplicationProtocolDefinition.cxx
Executable file
@@ -0,0 +1,85 @@
|
||||
|
||||
#include <RWStepBasic_RWApplicationProtocolDefinition.ixx>
|
||||
#include <StepBasic_ApplicationContext.hxx>
|
||||
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_ApplicationProtocolDefinition.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWApplicationProtocolDefinition::RWStepBasic_RWApplicationProtocolDefinition () {}
|
||||
|
||||
void RWStepBasic_RWApplicationProtocolDefinition::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ApplicationProtocolDefinition)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,4,ach,"application_protocol_definition")) return;
|
||||
|
||||
// --- own field : status ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aStatus;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadString (num,1,"status",ach,aStatus);
|
||||
|
||||
// --- own field : applicationInterpretedModelSchemaName ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aApplicationInterpretedModelSchemaName;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
|
||||
data->ReadString (num,2,"application_interpreted_model_schema_name",ach,aApplicationInterpretedModelSchemaName);
|
||||
|
||||
// --- own field : applicationProtocolYear ---
|
||||
|
||||
Standard_Integer aApplicationProtocolYear;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
data->ReadInteger (num,3,"application_protocol_year",ach,aApplicationProtocolYear);
|
||||
|
||||
// --- own field : application ---
|
||||
|
||||
Handle(StepBasic_ApplicationContext) aApplication;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat4 =` not needed
|
||||
data->ReadEntity(num, 4,"application", ach, STANDARD_TYPE(StepBasic_ApplicationContext), aApplication);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aStatus, aApplicationInterpretedModelSchemaName, aApplicationProtocolYear, aApplication);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWApplicationProtocolDefinition::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ApplicationProtocolDefinition)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : status ---
|
||||
|
||||
SW.Send(ent->Status());
|
||||
|
||||
// --- own field : applicationInterpretedModelSchemaName ---
|
||||
|
||||
SW.Send(ent->ApplicationInterpretedModelSchemaName());
|
||||
|
||||
// --- own field : applicationProtocolYear ---
|
||||
|
||||
SW.Send(ent->ApplicationProtocolYear());
|
||||
|
||||
// --- own field : application ---
|
||||
|
||||
SW.Send(ent->Application());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWApplicationProtocolDefinition::Share(const Handle(StepBasic_ApplicationProtocolDefinition)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->Application());
|
||||
}
|
||||
|
30
src/RWStepBasic/RWStepBasic_RWApproval.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWApproval.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: Approval.cdl
|
||||
-- Created: Mon Dec 4 12:02:23 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWApproval from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for Approval
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
Approval from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWApproval;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable Approval from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : Approval from StepBasic);
|
||||
|
||||
Share(me; ent : Approval from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWApproval;
|
65
src/RWStepBasic/RWStepBasic_RWApproval.cxx
Executable file
65
src/RWStepBasic/RWStepBasic_RWApproval.cxx
Executable file
@@ -0,0 +1,65 @@
|
||||
|
||||
#include <RWStepBasic_RWApproval.ixx>
|
||||
#include <StepBasic_ApprovalStatus.hxx>
|
||||
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_Approval.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWApproval::RWStepBasic_RWApproval () {}
|
||||
|
||||
void RWStepBasic_RWApproval::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_Approval)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,2,ach,"approval")) return;
|
||||
|
||||
// --- own field : status ---
|
||||
|
||||
Handle(StepBasic_ApprovalStatus) aStatus;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadEntity(num, 1,"status", ach, STANDARD_TYPE(StepBasic_ApprovalStatus), aStatus);
|
||||
|
||||
// --- own field : level ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aLevel;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
|
||||
data->ReadString (num,2,"level",ach,aLevel);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aStatus, aLevel);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWApproval::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_Approval)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : status ---
|
||||
|
||||
SW.Send(ent->Status());
|
||||
|
||||
// --- own field : level ---
|
||||
|
||||
SW.Send(ent->Level());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWApproval::Share(const Handle(StepBasic_Approval)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->Status());
|
||||
}
|
||||
|
30
src/RWStepBasic/RWStepBasic_RWApprovalDateTime.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWApprovalDateTime.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: ApprovalDateTime.cdl
|
||||
-- Created: Mon Dec 4 12:02:28 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWApprovalDateTime from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for ApprovalDateTime
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ApprovalDateTime from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWApprovalDateTime;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ApprovalDateTime from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ApprovalDateTime from StepBasic);
|
||||
|
||||
Share(me; ent : ApprovalDateTime from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWApprovalDateTime;
|
61
src/RWStepBasic/RWStepBasic_RWApprovalDateTime.cxx
Executable file
61
src/RWStepBasic/RWStepBasic_RWApprovalDateTime.cxx
Executable file
@@ -0,0 +1,61 @@
|
||||
|
||||
#include <RWStepBasic_RWApprovalDateTime.ixx>
|
||||
#include <StepBasic_DateTimeSelect.hxx>
|
||||
#include <StepBasic_Approval.hxx>
|
||||
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_ApprovalDateTime.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWApprovalDateTime::RWStepBasic_RWApprovalDateTime () {}
|
||||
|
||||
void RWStepBasic_RWApprovalDateTime::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ApprovalDateTime)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,2,ach,"approval_date_time")) return;
|
||||
|
||||
// --- own fields
|
||||
|
||||
StepBasic_DateTimeSelect dts;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadEntity(num,1,"date_time", ach, dts);
|
||||
|
||||
Handle(StepBasic_Approval) ap;
|
||||
//szv#4:S4163:12Mar99 `stat1 =` not needed
|
||||
data->ReadEntity (num,2,"dated_approval",ach, STANDARD_TYPE(StepBasic_Approval), ap);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(dts,ap);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWApprovalDateTime::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ApprovalDateTime)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : dimensions ---
|
||||
|
||||
SW.Send(ent->DateTime().Value());
|
||||
SW.Send(ent->DatedApproval());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWApprovalDateTime::Share(const Handle(StepBasic_ApprovalDateTime)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->DateTime().Value());
|
||||
iter.GetOneItem(ent->DatedApproval());
|
||||
}
|
30
src/RWStepBasic/RWStepBasic_RWApprovalPersonOrganization.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWApprovalPersonOrganization.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: ApprovalPersonOrganization.cdl
|
||||
-- Created: Mon Dec 4 12:02:23 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWApprovalPersonOrganization from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for ApprovalPersonOrganization
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ApprovalPersonOrganization from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWApprovalPersonOrganization;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ApprovalPersonOrganization from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ApprovalPersonOrganization from StepBasic);
|
||||
|
||||
Share(me; ent : ApprovalPersonOrganization from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWApprovalPersonOrganization;
|
83
src/RWStepBasic/RWStepBasic_RWApprovalPersonOrganization.cxx
Executable file
83
src/RWStepBasic/RWStepBasic_RWApprovalPersonOrganization.cxx
Executable file
@@ -0,0 +1,83 @@
|
||||
|
||||
#include <RWStepBasic_RWApprovalPersonOrganization.ixx>
|
||||
#include <StepBasic_PersonOrganizationSelect.hxx>
|
||||
#include <StepBasic_Approval.hxx>
|
||||
#include <StepBasic_ApprovalRole.hxx>
|
||||
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_ApprovalPersonOrganization.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWApprovalPersonOrganization::RWStepBasic_RWApprovalPersonOrganization () {}
|
||||
|
||||
void RWStepBasic_RWApprovalPersonOrganization::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ApprovalPersonOrganization)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"approval_person_organization")) return;
|
||||
|
||||
// --- own field : personOrganization ---
|
||||
|
||||
StepBasic_PersonOrganizationSelect aPersonOrganization;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadEntity(num,1,"person_organization",ach,aPersonOrganization);
|
||||
|
||||
// --- own field : authorizedApproval ---
|
||||
|
||||
Handle(StepBasic_Approval) aAuthorizedApproval;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
|
||||
data->ReadEntity(num, 2,"authorized_approval", ach, STANDARD_TYPE(StepBasic_Approval), aAuthorizedApproval);
|
||||
|
||||
// --- own field : role ---
|
||||
|
||||
Handle(StepBasic_ApprovalRole) aRole;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
data->ReadEntity(num, 3,"role", ach, STANDARD_TYPE(StepBasic_ApprovalRole), aRole);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aPersonOrganization, aAuthorizedApproval, aRole);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWApprovalPersonOrganization::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ApprovalPersonOrganization)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : personOrganization ---
|
||||
|
||||
SW.Send(ent->PersonOrganization().Value());
|
||||
|
||||
// --- own field : authorizedApproval ---
|
||||
|
||||
SW.Send(ent->AuthorizedApproval());
|
||||
|
||||
// --- own field : role ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWApprovalPersonOrganization::Share(const Handle(StepBasic_ApprovalPersonOrganization)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->PersonOrganization().Value());
|
||||
|
||||
|
||||
iter.GetOneItem(ent->AuthorizedApproval());
|
||||
|
||||
|
||||
iter.GetOneItem(ent->Role());
|
||||
}
|
||||
|
30
src/RWStepBasic/RWStepBasic_RWApprovalRelationship.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWApprovalRelationship.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: ApprovalRelationship.cdl
|
||||
-- Created: Mon Dec 4 12:02:23 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWApprovalRelationship from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for ApprovalRelationship
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ApprovalRelationship from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWApprovalRelationship;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ApprovalRelationship from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ApprovalRelationship from StepBasic);
|
||||
|
||||
Share(me; ent : ApprovalRelationship from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWApprovalRelationship;
|
89
src/RWStepBasic/RWStepBasic_RWApprovalRelationship.cxx
Executable file
89
src/RWStepBasic/RWStepBasic_RWApprovalRelationship.cxx
Executable file
@@ -0,0 +1,89 @@
|
||||
//gka 05.03.99 S4134 upgrade from CD to DIS
|
||||
#include <RWStepBasic_RWApprovalRelationship.ixx>
|
||||
#include <StepBasic_Approval.hxx>
|
||||
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_ApprovalRelationship.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWApprovalRelationship::RWStepBasic_RWApprovalRelationship () {}
|
||||
|
||||
void RWStepBasic_RWApprovalRelationship::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ApprovalRelationship)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,4,ach,"approval_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 : relatingApproval ---
|
||||
|
||||
Handle(StepBasic_Approval) aRelatingApproval;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
data->ReadEntity(num, 3,"relating_approval", ach, STANDARD_TYPE(StepBasic_Approval), aRelatingApproval);
|
||||
|
||||
// --- own field : relatedApproval ---
|
||||
|
||||
Handle(StepBasic_Approval) aRelatedApproval;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat4 =` not needed
|
||||
data->ReadEntity(num, 4,"related_approval", ach, STANDARD_TYPE(StepBasic_Approval), aRelatedApproval);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aName, aDescription, aRelatingApproval, aRelatedApproval);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWApprovalRelationship::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ApprovalRelationship)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : name ---
|
||||
|
||||
SW.Send(ent->Name());
|
||||
|
||||
// --- own field : description ---
|
||||
|
||||
SW.Send(ent->Description());
|
||||
|
||||
// --- own field : relatingApproval ---
|
||||
|
||||
SW.Send(ent->RelatingApproval());
|
||||
|
||||
// --- own field : relatedApproval ---
|
||||
|
||||
SW.Send(ent->RelatedApproval());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWApprovalRelationship::Share(const Handle(StepBasic_ApprovalRelationship)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->RelatingApproval());
|
||||
|
||||
|
||||
iter.GetOneItem(ent->RelatedApproval());
|
||||
}
|
||||
|
27
src/RWStepBasic/RWStepBasic_RWApprovalRole.cdl
Executable file
27
src/RWStepBasic/RWStepBasic_RWApprovalRole.cdl
Executable file
@@ -0,0 +1,27 @@
|
||||
-- File: ApprovalRole.cdl
|
||||
-- Created: Mon Dec 4 12:02:23 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWApprovalRole from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for ApprovalRole
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ApprovalRole from StepBasic
|
||||
|
||||
is
|
||||
|
||||
Create returns RWApprovalRole;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ApprovalRole from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ApprovalRole from StepBasic);
|
||||
|
||||
end RWApprovalRole;
|
40
src/RWStepBasic/RWStepBasic_RWApprovalRole.cxx
Executable file
40
src/RWStepBasic/RWStepBasic_RWApprovalRole.cxx
Executable file
@@ -0,0 +1,40 @@
|
||||
|
||||
#include <RWStepBasic_RWApprovalRole.ixx>
|
||||
|
||||
|
||||
RWStepBasic_RWApprovalRole::RWStepBasic_RWApprovalRole () {}
|
||||
|
||||
void RWStepBasic_RWApprovalRole::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ApprovalRole)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"approval_role")) return;
|
||||
|
||||
// --- own field : role ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aRole;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadString (num,1,"role",ach,aRole);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aRole);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWApprovalRole::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ApprovalRole)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : role ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
}
|
27
src/RWStepBasic/RWStepBasic_RWApprovalStatus.cdl
Executable file
27
src/RWStepBasic/RWStepBasic_RWApprovalStatus.cdl
Executable file
@@ -0,0 +1,27 @@
|
||||
-- File: ApprovalStatus.cdl
|
||||
-- Created: Mon Dec 4 12:02:23 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWApprovalStatus from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for ApprovalStatus
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ApprovalStatus from StepBasic
|
||||
|
||||
is
|
||||
|
||||
Create returns RWApprovalStatus;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ApprovalStatus from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ApprovalStatus from StepBasic);
|
||||
|
||||
end RWApprovalStatus;
|
40
src/RWStepBasic/RWStepBasic_RWApprovalStatus.cxx
Executable file
40
src/RWStepBasic/RWStepBasic_RWApprovalStatus.cxx
Executable file
@@ -0,0 +1,40 @@
|
||||
|
||||
#include <RWStepBasic_RWApprovalStatus.ixx>
|
||||
|
||||
|
||||
RWStepBasic_RWApprovalStatus::RWStepBasic_RWApprovalStatus () {}
|
||||
|
||||
void RWStepBasic_RWApprovalStatus::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ApprovalStatus)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"approval_status")) 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 RWStepBasic_RWApprovalStatus::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ApprovalStatus)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : name ---
|
||||
|
||||
SW.Send(ent->Name());
|
||||
}
|
27
src/RWStepBasic/RWStepBasic_RWCalendarDate.cdl
Executable file
27
src/RWStepBasic/RWStepBasic_RWCalendarDate.cdl
Executable file
@@ -0,0 +1,27 @@
|
||||
-- File: CalendarDate.cdl
|
||||
-- Created: Mon Dec 4 12:02:24 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWCalendarDate from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for CalendarDate
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
CalendarDate from StepBasic
|
||||
|
||||
is
|
||||
|
||||
Create returns RWCalendarDate;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable CalendarDate from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : CalendarDate from StepBasic);
|
||||
|
||||
end RWCalendarDate;
|
60
src/RWStepBasic/RWStepBasic_RWCalendarDate.cxx
Executable file
60
src/RWStepBasic/RWStepBasic_RWCalendarDate.cxx
Executable file
@@ -0,0 +1,60 @@
|
||||
|
||||
#include <RWStepBasic_RWCalendarDate.ixx>
|
||||
|
||||
|
||||
RWStepBasic_RWCalendarDate::RWStepBasic_RWCalendarDate () {}
|
||||
|
||||
void RWStepBasic_RWCalendarDate::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_CalendarDate)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"calendar_date")) return;
|
||||
|
||||
// --- inherited field : yearComponent ---
|
||||
|
||||
Standard_Integer aYearComponent;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadInteger (num,1,"year_component",ach,aYearComponent);
|
||||
|
||||
// --- own field : dayComponent ---
|
||||
|
||||
Standard_Integer aDayComponent;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
|
||||
data->ReadInteger (num,2,"day_component",ach,aDayComponent);
|
||||
|
||||
// --- own field : monthComponent ---
|
||||
|
||||
Standard_Integer aMonthComponent;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
data->ReadInteger (num,3,"month_component",ach,aMonthComponent);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aYearComponent, aDayComponent, aMonthComponent);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWCalendarDate::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_CalendarDate)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field yearComponent ---
|
||||
|
||||
SW.Send(ent->YearComponent());
|
||||
|
||||
// --- own field : dayComponent ---
|
||||
|
||||
SW.Send(ent->DayComponent());
|
||||
|
||||
// --- own field : monthComponent ---
|
||||
|
||||
SW.Send(ent->MonthComponent());
|
||||
}
|
35
src/RWStepBasic/RWStepBasic_RWCertification.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWCertification.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWCertification.cdl
|
||||
-- Created: Fri Nov 26 16:26:34 1999
|
||||
-- Author: Andrey BETENEV
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
-- Copyright: Matra Datavision 1999
|
||||
|
||||
class RWCertification from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for Certification
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
Certification from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWCertification from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : Certification from StepBasic);
|
||||
---Purpose: Reads Certification
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: Certification from StepBasic);
|
||||
---Purpose: Writes Certification
|
||||
|
||||
Share (me; ent : Certification from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWCertification;
|
78
src/RWStepBasic/RWStepBasic_RWCertification.cxx
Executable file
78
src/RWStepBasic/RWStepBasic_RWCertification.cxx
Executable file
@@ -0,0 +1,78 @@
|
||||
// File: RWStepBasic_RWCertification.cxx
|
||||
// Created: Fri Nov 26 16:26:34 1999
|
||||
// Author: Andrey BETENEV
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
// Copyright: Matra Datavision 1999
|
||||
|
||||
#include <RWStepBasic_RWCertification.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWCertification
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWCertification::RWStepBasic_RWCertification ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWCertification::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_Certification) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,3,ach,"certification") ) return;
|
||||
|
||||
// Own fields of Certification
|
||||
|
||||
Handle(TCollection_HAsciiString) aName;
|
||||
data->ReadString (num, 1, "name", ach, aName);
|
||||
|
||||
Handle(TCollection_HAsciiString) aPurpose;
|
||||
data->ReadString (num, 2, "purpose", ach, aPurpose);
|
||||
|
||||
Handle(StepBasic_CertificationType) aKind;
|
||||
data->ReadEntity (num, 3, "kind", ach, STANDARD_TYPE(StepBasic_CertificationType), aKind);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aName,
|
||||
aPurpose,
|
||||
aKind);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWCertification::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_Certification) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of Certification
|
||||
|
||||
SW.Send (ent->Name());
|
||||
|
||||
SW.Send (ent->Purpose());
|
||||
|
||||
SW.Send (ent->Kind());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWCertification::Share (const Handle(StepBasic_Certification) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of Certification
|
||||
|
||||
iter.AddItem (ent->Kind());
|
||||
}
|
35
src/RWStepBasic/RWStepBasic_RWCertificationAssignment.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWCertificationAssignment.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWCertificationAssignment.cdl
|
||||
-- Created: Fri Nov 26 16:26:34 1999
|
||||
-- Author: Andrey BETENEV
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
-- Copyright: Matra Datavision 1999
|
||||
|
||||
class RWCertificationAssignment from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for CertificationAssignment
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
CertificationAssignment from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWCertificationAssignment from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : CertificationAssignment from StepBasic);
|
||||
---Purpose: Reads CertificationAssignment
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: CertificationAssignment from StepBasic);
|
||||
---Purpose: Writes CertificationAssignment
|
||||
|
||||
Share (me; ent : CertificationAssignment from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWCertificationAssignment;
|
66
src/RWStepBasic/RWStepBasic_RWCertificationAssignment.cxx
Executable file
66
src/RWStepBasic/RWStepBasic_RWCertificationAssignment.cxx
Executable file
@@ -0,0 +1,66 @@
|
||||
// File: RWStepBasic_RWCertificationAssignment.cxx
|
||||
// Created: Fri Nov 26 16:26:34 1999
|
||||
// Author: Andrey BETENEV
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
// Copyright: Matra Datavision 1999
|
||||
|
||||
#include <RWStepBasic_RWCertificationAssignment.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWCertificationAssignment
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWCertificationAssignment::RWStepBasic_RWCertificationAssignment ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWCertificationAssignment::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_CertificationAssignment) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,1,ach,"certification_assignment") ) return;
|
||||
|
||||
// Own fields of CertificationAssignment
|
||||
|
||||
Handle(StepBasic_Certification) aAssignedCertification;
|
||||
data->ReadEntity (num, 1, "assigned_certification", ach, STANDARD_TYPE(StepBasic_Certification), aAssignedCertification);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aAssignedCertification);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWCertificationAssignment::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_CertificationAssignment) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of CertificationAssignment
|
||||
|
||||
SW.Send (ent->AssignedCertification());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWCertificationAssignment::Share (const Handle(StepBasic_CertificationAssignment) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of CertificationAssignment
|
||||
|
||||
iter.AddItem (ent->AssignedCertification());
|
||||
}
|
35
src/RWStepBasic/RWStepBasic_RWCertificationType.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWCertificationType.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWCertificationType.cdl
|
||||
-- Created: Fri Nov 26 16:26:35 1999
|
||||
-- Author: Andrey BETENEV
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
-- Copyright: Matra Datavision 1999
|
||||
|
||||
class RWCertificationType from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for CertificationType
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
CertificationType from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWCertificationType from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : CertificationType from StepBasic);
|
||||
---Purpose: Reads CertificationType
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: CertificationType from StepBasic);
|
||||
---Purpose: Writes CertificationType
|
||||
|
||||
Share (me; ent : CertificationType from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWCertificationType;
|
64
src/RWStepBasic/RWStepBasic_RWCertificationType.cxx
Executable file
64
src/RWStepBasic/RWStepBasic_RWCertificationType.cxx
Executable file
@@ -0,0 +1,64 @@
|
||||
// File: RWStepBasic_RWCertificationType.cxx
|
||||
// Created: Fri Nov 26 16:26:35 1999
|
||||
// Author: Andrey BETENEV
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
// Copyright: Matra Datavision 1999
|
||||
|
||||
#include <RWStepBasic_RWCertificationType.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWCertificationType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWCertificationType::RWStepBasic_RWCertificationType ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWCertificationType::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_CertificationType) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,1,ach,"certification_type") ) return;
|
||||
|
||||
// Own fields of CertificationType
|
||||
|
||||
Handle(TCollection_HAsciiString) aDescription;
|
||||
data->ReadString (num, 1, "description", ach, aDescription);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aDescription);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWCertificationType::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_CertificationType) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of CertificationType
|
||||
|
||||
SW.Send (ent->Description());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWCertificationType::Share (const Handle(StepBasic_CertificationType) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of CertificationType
|
||||
}
|
35
src/RWStepBasic/RWStepBasic_RWCharacterizedObject.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWCharacterizedObject.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWCharacterizedObject.cdl
|
||||
-- Created: Thu May 11 16:38:00 2000
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
|
||||
-- Copyright: Matra Datavision 2000
|
||||
|
||||
class RWCharacterizedObject from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for CharacterizedObject
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
CharacterizedObject from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWCharacterizedObject from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : CharacterizedObject from StepBasic);
|
||||
---Purpose: Reads CharacterizedObject
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: CharacterizedObject from StepBasic);
|
||||
---Purpose: Writes CharacterizedObject
|
||||
|
||||
Share (me; ent : CharacterizedObject from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWCharacterizedObject;
|
80
src/RWStepBasic/RWStepBasic_RWCharacterizedObject.cxx
Executable file
80
src/RWStepBasic/RWStepBasic_RWCharacterizedObject.cxx
Executable file
@@ -0,0 +1,80 @@
|
||||
// File: RWStepBasic_RWCharacterizedObject.cxx
|
||||
// Created: Thu May 11 16:38:00 2000
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
|
||||
// Copyright: Matra Datavision 2000
|
||||
|
||||
#include <RWStepBasic_RWCharacterizedObject.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWCharacterizedObject
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWCharacterizedObject::RWStepBasic_RWCharacterizedObject ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWCharacterizedObject::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_CharacterizedObject) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,2,ach,"characterized_object") ) return;
|
||||
|
||||
// Own fields of CharacterizedObject
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aName,
|
||||
hasDescription,
|
||||
aDescription);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWCharacterizedObject::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_CharacterizedObject) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of CharacterizedObject
|
||||
|
||||
SW.Send (ent->Name());
|
||||
|
||||
if ( ent->HasDescription() ) {
|
||||
SW.Send (ent->Description());
|
||||
}
|
||||
else SW.SendUndef();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWCharacterizedObject::Share (const Handle(StepBasic_CharacterizedObject) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of CharacterizedObject
|
||||
}
|
35
src/RWStepBasic/RWStepBasic_RWContract.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWContract.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWContract.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 RWContract from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for Contract
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
Contract from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWContract from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : Contract from StepBasic);
|
||||
---Purpose: Reads Contract
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: Contract from StepBasic);
|
||||
---Purpose: Writes Contract
|
||||
|
||||
Share (me; ent : Contract from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWContract;
|
78
src/RWStepBasic/RWStepBasic_RWContract.cxx
Executable file
78
src/RWStepBasic/RWStepBasic_RWContract.cxx
Executable file
@@ -0,0 +1,78 @@
|
||||
// File: RWStepBasic_RWContract.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 <RWStepBasic_RWContract.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWContract
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWContract::RWStepBasic_RWContract ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWContract::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_Contract) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,3,ach,"contract") ) return;
|
||||
|
||||
// Own fields of Contract
|
||||
|
||||
Handle(TCollection_HAsciiString) aName;
|
||||
data->ReadString (num, 1, "name", ach, aName);
|
||||
|
||||
Handle(TCollection_HAsciiString) aPurpose;
|
||||
data->ReadString (num, 2, "purpose", ach, aPurpose);
|
||||
|
||||
Handle(StepBasic_ContractType) aKind;
|
||||
data->ReadEntity (num, 3, "kind", ach, STANDARD_TYPE(StepBasic_ContractType), aKind);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aName,
|
||||
aPurpose,
|
||||
aKind);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWContract::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_Contract) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of Contract
|
||||
|
||||
SW.Send (ent->Name());
|
||||
|
||||
SW.Send (ent->Purpose());
|
||||
|
||||
SW.Send (ent->Kind());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWContract::Share (const Handle(StepBasic_Contract) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of Contract
|
||||
|
||||
iter.AddItem (ent->Kind());
|
||||
}
|
35
src/RWStepBasic/RWStepBasic_RWContractAssignment.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWContractAssignment.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWContractAssignment.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 RWContractAssignment from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for ContractAssignment
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
ContractAssignment from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWContractAssignment from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : ContractAssignment from StepBasic);
|
||||
---Purpose: Reads ContractAssignment
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: ContractAssignment from StepBasic);
|
||||
---Purpose: Writes ContractAssignment
|
||||
|
||||
Share (me; ent : ContractAssignment from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWContractAssignment;
|
66
src/RWStepBasic/RWStepBasic_RWContractAssignment.cxx
Executable file
66
src/RWStepBasic/RWStepBasic_RWContractAssignment.cxx
Executable file
@@ -0,0 +1,66 @@
|
||||
// File: RWStepBasic_RWContractAssignment.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 <RWStepBasic_RWContractAssignment.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWContractAssignment
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWContractAssignment::RWStepBasic_RWContractAssignment ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWContractAssignment::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ContractAssignment) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,1,ach,"contract_assignment") ) return;
|
||||
|
||||
// Own fields of ContractAssignment
|
||||
|
||||
Handle(StepBasic_Contract) aAssignedContract;
|
||||
data->ReadEntity (num, 1, "assigned_contract", ach, STANDARD_TYPE(StepBasic_Contract), aAssignedContract);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aAssignedContract);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWContractAssignment::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ContractAssignment) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of ContractAssignment
|
||||
|
||||
SW.Send (ent->AssignedContract());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWContractAssignment::Share (const Handle(StepBasic_ContractAssignment) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of ContractAssignment
|
||||
|
||||
iter.AddItem (ent->AssignedContract());
|
||||
}
|
35
src/RWStepBasic/RWStepBasic_RWContractType.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWContractType.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWContractType.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 RWContractType from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for ContractType
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
ContractType from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWContractType from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : ContractType from StepBasic);
|
||||
---Purpose: Reads ContractType
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: ContractType from StepBasic);
|
||||
---Purpose: Writes ContractType
|
||||
|
||||
Share (me; ent : ContractType from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWContractType;
|
64
src/RWStepBasic/RWStepBasic_RWContractType.cxx
Executable file
64
src/RWStepBasic/RWStepBasic_RWContractType.cxx
Executable file
@@ -0,0 +1,64 @@
|
||||
// File: RWStepBasic_RWContractType.cxx
|
||||
// Created: Fri Nov 26 16:26:38 1999
|
||||
// Author: Andrey BETENEV
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
|
||||
// Copyright: Matra Datavision 1999
|
||||
|
||||
#include <RWStepBasic_RWContractType.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWContractType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWContractType::RWStepBasic_RWContractType ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWContractType::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ContractType) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,1,ach,"contract_type") ) return;
|
||||
|
||||
// Own fields of ContractType
|
||||
|
||||
Handle(TCollection_HAsciiString) aDescription;
|
||||
data->ReadString (num, 1, "description", ach, aDescription);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aDescription);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWContractType::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ContractType) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of ContractType
|
||||
|
||||
SW.Send (ent->Description());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWContractType::Share (const Handle(StepBasic_ContractType) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of ContractType
|
||||
}
|
30
src/RWStepBasic/RWStepBasic_RWConversionBasedUnit.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWConversionBasedUnit.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: ConversionBasedUnit.cdl
|
||||
-- Created: Mon Dec 4 12:02:24 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWConversionBasedUnit from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for ConversionBasedUnit
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ConversionBasedUnit from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWConversionBasedUnit;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ConversionBasedUnit from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ConversionBasedUnit from StepBasic);
|
||||
|
||||
Share(me; ent : ConversionBasedUnit from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWConversionBasedUnit;
|
79
src/RWStepBasic/RWStepBasic_RWConversionBasedUnit.cxx
Executable file
79
src/RWStepBasic/RWStepBasic_RWConversionBasedUnit.cxx
Executable file
@@ -0,0 +1,79 @@
|
||||
|
||||
#include <RWStepBasic_RWConversionBasedUnit.ixx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
#include <StepBasic_DimensionalExponents.hxx>
|
||||
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_ConversionBasedUnit.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWConversionBasedUnit::RWStepBasic_RWConversionBasedUnit () {}
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnit::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ConversionBasedUnit)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"conversion_based_unit")) return;
|
||||
|
||||
// --- inherited field : dimensions ---
|
||||
|
||||
Handle(StepBasic_DimensionalExponents) aDimensions;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadEntity(num, 1,"dimensions", ach, STANDARD_TYPE(StepBasic_DimensionalExponents), aDimensions);
|
||||
|
||||
// --- own field : name ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aName;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
|
||||
data->ReadString (num,2,"name",ach,aName);
|
||||
|
||||
// --- own field : conversionFactor ---
|
||||
|
||||
Handle(StepBasic_MeasureWithUnit) aConversionFactor;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
data->ReadEntity(num, 3,"conversion_factor", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aConversionFactor);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aDimensions, aName, aConversionFactor);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnit::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ConversionBasedUnit)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field dimensions ---
|
||||
|
||||
SW.Send(ent->Dimensions());
|
||||
|
||||
// --- own field : name ---
|
||||
|
||||
SW.Send(ent->Name());
|
||||
|
||||
// --- own field : conversionFactor ---
|
||||
|
||||
SW.Send(ent->ConversionFactor());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnit::Share(const Handle(StepBasic_ConversionBasedUnit)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->Dimensions());
|
||||
|
||||
|
||||
iter.GetOneItem(ent->ConversionFactor());
|
||||
}
|
||||
|
31
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndAreaUnit.cdl
Executable file
31
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndAreaUnit.cdl
Executable file
@@ -0,0 +1,31 @@
|
||||
-- File: RWStepBasic_RWConversionBasedUnitAndAreaUnit.cdl
|
||||
-- Created: Tue Oct 12 13:47:04 1999
|
||||
-- Author: data exchange team
|
||||
-- <det@friendox>
|
||||
---Copyright: Matra Datavision 1999
|
||||
|
||||
|
||||
class RWConversionBasedUnitAndAreaUnit from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write Module for RWConversionBasedUnitAndAreaUnit
|
||||
|
||||
uses
|
||||
|
||||
Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ConversionBasedUnitAndAreaUnit from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWConversionBasedUnitAndAreaUnit from RWStepBasic;
|
||||
|
||||
ReadStep (me; data: StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ConversionBasedUnitAndAreaUnit from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ConversionBasedUnitAndAreaUnit from StepBasic);
|
||||
|
||||
Share(me; ent : ConversionBasedUnitAndAreaUnit from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWConversionBasedUnitAndAreaUnit;
|
60
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndAreaUnit.cxx
Executable file
60
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndAreaUnit.cxx
Executable file
@@ -0,0 +1,60 @@
|
||||
// File: RWStepBasic_RWConversionBasedUnitAndAreaUnit.cxx
|
||||
// Created: Tue Oct 12 14:20:03 1999
|
||||
// Author: data exchange team
|
||||
// <det@friendox>
|
||||
|
||||
|
||||
#include <RWStepBasic_RWConversionBasedUnitAndAreaUnit.ixx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
|
||||
RWStepBasic_RWConversionBasedUnitAndAreaUnit::RWStepBasic_RWConversionBasedUnitAndAreaUnit ()
|
||||
{
|
||||
}
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndAreaUnit::ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num0,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndAreaUnit)& ent) const
|
||||
{
|
||||
Standard_Integer num = num0;
|
||||
//data->NamedForComplex("AREA_UNIT",num0,num,ach);
|
||||
if (!data->CheckNbParams(num,0,ach,"area_unit")) return;
|
||||
|
||||
// --- Instance of plex componant ConversionBasedUnit ---
|
||||
num = data->NextForComplex(num);
|
||||
if (!data->CheckNbParams(num,2,ach,"conversion_based_unit")) return;
|
||||
Handle(TCollection_HAsciiString) aName;
|
||||
data->ReadString (num,1,"name",ach,aName);
|
||||
|
||||
// --- field : conversionFactor ---
|
||||
Handle(StepBasic_MeasureWithUnit) aConversionFactor;
|
||||
data->ReadEntity(num, 2,"conversion_factor", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aConversionFactor);
|
||||
num = data->NextForComplex(num);
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"named_unit")) return;
|
||||
Handle(StepBasic_DimensionalExponents) aDimensions;
|
||||
data->ReadEntity(num, 1,"dimensions", ach, STANDARD_TYPE(StepBasic_DimensionalExponents), aDimensions);
|
||||
|
||||
ent->Init(aDimensions,aName,aConversionFactor);
|
||||
}
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndAreaUnit::WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndAreaUnit)& ent) const
|
||||
{
|
||||
SW.StartEntity("AREA_UNIT");
|
||||
SW.StartEntity("CONVERSION_BASED_UNIT");
|
||||
SW.Send(ent->Name());
|
||||
SW.Send(ent->ConversionFactor());
|
||||
SW.StartEntity("NAMED_UNIT");
|
||||
SW.Send(ent->Dimensions());
|
||||
}
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndAreaUnit::Share(const Handle(StepBasic_ConversionBasedUnitAndAreaUnit)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
iter.GetOneItem(ent->Dimensions());
|
||||
iter.GetOneItem(ent->ConversionFactor());
|
||||
}
|
||||
|
||||
|
||||
|
30
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndLengthUnit.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndLengthUnit.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: ConversionBasedUnitAndLengthUnit.cdl
|
||||
-- Created: Mon Dec 4 12:02:37 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWConversionBasedUnitAndLengthUnit from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for ConversionBasedUnitAndLengthUnit
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ConversionBasedUnitAndLengthUnit from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWConversionBasedUnitAndLengthUnit;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ConversionBasedUnitAndLengthUnit from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ConversionBasedUnitAndLengthUnit from StepBasic);
|
||||
|
||||
Share(me; ent : ConversionBasedUnitAndLengthUnit from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWConversionBasedUnitAndLengthUnit;
|
103
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndLengthUnit.cxx
Executable file
103
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndLengthUnit.cxx
Executable file
@@ -0,0 +1,103 @@
|
||||
|
||||
#include <RWStepBasic_RWConversionBasedUnitAndLengthUnit.ixx>
|
||||
#include <StepBasic_ConversionBasedUnit.hxx>
|
||||
#include <StepBasic_LengthUnit.hxx>
|
||||
#include <StepBasic_DimensionalExponents.hxx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_ConversionBasedUnitAndLengthUnit.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWConversionBasedUnitAndLengthUnit::RWStepBasic_RWConversionBasedUnitAndLengthUnit () {}
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndLengthUnit::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num0,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndLengthUnit)& ent) const
|
||||
{
|
||||
|
||||
Standard_Integer num = num0;
|
||||
|
||||
|
||||
// --- Instance of plex componant ConversionBasedUnit ---
|
||||
|
||||
if (!data->CheckNbParams(num,2,ach,"conversion_based_unit")) return;
|
||||
|
||||
// --- field : name ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aName;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadString (num,1,"name",ach,aName);
|
||||
|
||||
// --- field : conversionFactor ---
|
||||
|
||||
Handle(StepBasic_MeasureWithUnit) aConversionFactor;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
|
||||
data->ReadEntity(num, 2,"conversion_factor", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aConversionFactor);
|
||||
|
||||
num = data->NextForComplex(num);
|
||||
|
||||
// --- Instance of plex componant LengthUnit ---
|
||||
|
||||
if (!data->CheckNbParams(num,0,ach,"length_unit")) return;
|
||||
|
||||
num = data->NextForComplex(num);
|
||||
|
||||
// --- Instance of common supertype NamedUnit ---
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"named_unit")) return;
|
||||
// --- field : dimensions ---
|
||||
|
||||
|
||||
Handle(StepBasic_DimensionalExponents) aDimensions;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
data->ReadEntity(num, 1,"dimensions", ach, STANDARD_TYPE(StepBasic_DimensionalExponents), aDimensions);
|
||||
|
||||
//--- Initialisation of the red entity ---
|
||||
|
||||
ent->Init(aDimensions,aName,aConversionFactor);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndLengthUnit::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndLengthUnit)& ent) const
|
||||
{
|
||||
|
||||
// --- Instance of plex componant ConversionBasedUnit ---
|
||||
|
||||
SW.StartEntity("CONVERSION_BASED_UNIT");
|
||||
// --- field : name ---
|
||||
|
||||
SW.Send(ent->Name());
|
||||
// --- field : conversionFactor ---
|
||||
|
||||
SW.Send(ent->ConversionFactor());
|
||||
|
||||
// --- Instance of plex componant LengthUnit ---
|
||||
|
||||
SW.StartEntity("LENGTH_UNIT");
|
||||
|
||||
// --- Instance of common supertype NamedUnit ---
|
||||
|
||||
SW.StartEntity("NAMED_UNIT");
|
||||
// --- field : dimensions ---
|
||||
|
||||
SW.Send(ent->Dimensions());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndLengthUnit::Share(const Handle(StepBasic_ConversionBasedUnitAndLengthUnit)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->Dimensions());
|
||||
|
||||
|
||||
iter.GetOneItem(ent->ConversionFactor());
|
||||
}
|
||||
|
30
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndMassUnit.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndMassUnit.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: RWStepBasic_RWConversionBasedUnitAndMassUnit.cdl
|
||||
-- Created: Tue Feb 10 12:57:57 2004
|
||||
-- Author: Sergey KUUL
|
||||
-- <skl@doomox>
|
||||
---Copyright: Matra Datavision 2004
|
||||
|
||||
|
||||
class RWConversionBasedUnitAndMassUnit from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for ConversionBasedUnitAndMassUnit
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ConversionBasedUnitAndMassUnit from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWConversionBasedUnitAndMassUnit;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ConversionBasedUnitAndMassUnit from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ConversionBasedUnitAndMassUnit from StepBasic);
|
||||
|
||||
Share(me; ent : ConversionBasedUnitAndMassUnit from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWConversionBasedUnitAndMassUnit;
|
101
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndMassUnit.cxx
Executable file
101
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndMassUnit.cxx
Executable file
@@ -0,0 +1,101 @@
|
||||
#include <RWStepBasic_RWConversionBasedUnitAndMassUnit.ixx>
|
||||
|
||||
#include <StepBasic_ConversionBasedUnit.hxx>
|
||||
#include <StepBasic_MassUnit.hxx>
|
||||
#include <StepBasic_DimensionalExponents.hxx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <StepBasic_ConversionBasedUnitAndMassUnit.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWConversionBasedUnitAndMassUnit
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWConversionBasedUnitAndMassUnit::RWStepBasic_RWConversionBasedUnitAndMassUnit()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndMassUnit::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num0,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndMassUnit)& ent) const
|
||||
{
|
||||
|
||||
Standard_Integer num = num0;
|
||||
|
||||
// --- Instance of plex componant ConversionBasedUnit ---
|
||||
if (!data->CheckNbParams(num,2,ach,"conversion_based_unit")) return;
|
||||
// --- field : name ---
|
||||
Handle(TCollection_HAsciiString) aName;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadString (num,1,"name",ach,aName);
|
||||
// --- field : conversionFactor ---
|
||||
Handle(StepBasic_MeasureWithUnit) aConversionFactor;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
|
||||
data->ReadEntity(num, 2,"conversion_factor", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aConversionFactor);
|
||||
|
||||
num = data->NextForComplex(num);
|
||||
|
||||
// --- Instance of plex componant MassUnit ---
|
||||
if (!data->CheckNbParams(num,0,ach,"Mass_unit")) return;
|
||||
|
||||
num = data->NextForComplex(num);
|
||||
|
||||
// --- Instance of common supertype NamedUnit ---
|
||||
if (!data->CheckNbParams(num,1,ach,"named_unit")) return;
|
||||
// --- field : dimensions ---
|
||||
Handle(StepBasic_DimensionalExponents) aDimensions;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
data->ReadEntity(num, 1,"dimensions", ach, STANDARD_TYPE(StepBasic_DimensionalExponents), aDimensions);
|
||||
|
||||
//--- Initialisation of the red entity ---
|
||||
ent->Init(aDimensions,aName,aConversionFactor);
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndMassUnit::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndMassUnit)& ent) const
|
||||
{
|
||||
// --- Instance of plex componant ConversionBasedUnit ---
|
||||
SW.StartEntity("CONVERSION_BASED_UNIT");
|
||||
// --- field : name ---
|
||||
SW.Send(ent->Name());
|
||||
// --- field : conversionFactor ---
|
||||
SW.Send(ent->ConversionFactor());
|
||||
// --- Instance of plex componant MassUnit ---
|
||||
SW.StartEntity("Mass_UNIT");
|
||||
// --- Instance of common supertype NamedUnit ---
|
||||
SW.StartEntity("NAMED_UNIT");
|
||||
// --- field : dimensions ---
|
||||
SW.Send(ent->Dimensions());
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndMassUnit::Share
|
||||
(const Handle(StepBasic_ConversionBasedUnitAndMassUnit)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
iter.GetOneItem(ent->Dimensions());
|
||||
iter.GetOneItem(ent->ConversionFactor());
|
||||
}
|
||||
|
30
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: ConversionBasedUnitAndPlaneAngleUnit.cdl
|
||||
-- Created: Mon Dec 4 12:02:37 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWConversionBasedUnitAndPlaneAngleUnit from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for ConversionBasedUnitAndPlaneAngleUnit
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ConversionBasedUnitAndPlaneAngleUnit from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWConversionBasedUnitAndPlaneAngleUnit;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ConversionBasedUnitAndPlaneAngleUnit from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ConversionBasedUnitAndPlaneAngleUnit from StepBasic);
|
||||
|
||||
Share(me; ent : ConversionBasedUnitAndPlaneAngleUnit from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWConversionBasedUnitAndPlaneAngleUnit;
|
85
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit.cxx
Executable file
85
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit.cxx
Executable file
@@ -0,0 +1,85 @@
|
||||
// sln 09.10.2001. BUC61003. Correction of looking for items of complex entity in case of them do not saticfy to alphabetical order
|
||||
#include <RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit.ixx>
|
||||
#include <StepBasic_ConversionBasedUnit.hxx>
|
||||
#include <StepBasic_PlaneAngleUnit.hxx>
|
||||
#include <StepBasic_DimensionalExponents.hxx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_ConversionBasedUnitAndPlaneAngleUnit.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit::RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit () {}
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num0,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndPlaneAngleUnit)& ent) const
|
||||
{
|
||||
// sln 09.10.2001. BUC61003. Correction of looking for items of complex entity in case of them do not saticfy to alphabetical order
|
||||
// CONVERSION_BASED_UNIT
|
||||
Standard_Integer num = 0;//num0;
|
||||
data->NamedForComplex("CONVERSION_BASED_UNIT CNBSUN",num0,num,ach);
|
||||
if (!data->CheckNbParams(num,2,ach,"conversion_based_unit")) return;
|
||||
Handle(TCollection_HAsciiString) aName;
|
||||
data->ReadString (num,1,"name",ach,aName);
|
||||
Handle(StepBasic_MeasureWithUnit) aConversionFactor;
|
||||
data->ReadEntity(num, 2,"conversion_factor", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aConversionFactor);
|
||||
|
||||
// NAMED_UNIT
|
||||
//num = 0; //gka TRJ9 c2-id-214.stp
|
||||
data->NamedForComplex("NAMED_UNIT NMDUNT",num0,num,ach);
|
||||
if (!data->CheckNbParams(num,1,ach,"named_unit")) return;
|
||||
Handle(StepBasic_DimensionalExponents) aDimensions;
|
||||
data->ReadEntity(num, 1,"dimensions", ach, STANDARD_TYPE(StepBasic_DimensionalExponents), aDimensions);
|
||||
|
||||
// PLANE_ANGLE_UNIT
|
||||
//num = 0; //gka
|
||||
data->NamedForComplex("PLANE_ANGLE_UNIT PLANUN",num0,num,ach);
|
||||
if (!data->CheckNbParams(num,0,ach,"plane_angle_unit")) return;
|
||||
|
||||
ent->Init(aDimensions,aName,aConversionFactor);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndPlaneAngleUnit)& ent) const
|
||||
{
|
||||
|
||||
// --- Instance of plex componant ConversionBasedUnit ---
|
||||
|
||||
SW.StartEntity("CONVERSION_BASED_UNIT");
|
||||
// --- field : name ---
|
||||
|
||||
SW.Send(ent->Name());
|
||||
// --- field : conversionFactor ---
|
||||
|
||||
SW.Send(ent->ConversionFactor());
|
||||
|
||||
// --- Instance of common supertype NamedUnit ---
|
||||
|
||||
SW.StartEntity("NAMED_UNIT");
|
||||
// --- field : dimensions ---
|
||||
|
||||
SW.Send(ent->Dimensions());
|
||||
|
||||
// --- Instance of plex componant PlaneAngleUnit ---
|
||||
|
||||
SW.StartEntity("PLANE_ANGLE_UNIT");
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit::Share(const Handle(StepBasic_ConversionBasedUnitAndPlaneAngleUnit)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->Dimensions());
|
||||
|
||||
|
||||
iter.GetOneItem(ent->ConversionFactor());
|
||||
}
|
||||
|
30
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndRatioUnit.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndRatioUnit.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: ConversionBasedUnitAndRatioUnit.cdl
|
||||
-- Created: Mon Dec 4 12:02:37 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWConversionBasedUnitAndRatioUnit from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for ConversionBasedUnitAndRatioUnit
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ConversionBasedUnitAndRatioUnit from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWConversionBasedUnitAndRatioUnit;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ConversionBasedUnitAndRatioUnit from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ConversionBasedUnitAndRatioUnit from StepBasic);
|
||||
|
||||
Share(me; ent : ConversionBasedUnitAndRatioUnit from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWConversionBasedUnitAndRatioUnit;
|
103
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndRatioUnit.cxx
Executable file
103
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndRatioUnit.cxx
Executable file
@@ -0,0 +1,103 @@
|
||||
|
||||
#include <RWStepBasic_RWConversionBasedUnitAndRatioUnit.ixx>
|
||||
#include <StepBasic_ConversionBasedUnit.hxx>
|
||||
#include <StepBasic_RatioUnit.hxx>
|
||||
#include <StepBasic_DimensionalExponents.hxx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_ConversionBasedUnitAndRatioUnit.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWConversionBasedUnitAndRatioUnit::RWStepBasic_RWConversionBasedUnitAndRatioUnit () {}
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndRatioUnit::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num0,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndRatioUnit)& ent) const
|
||||
{
|
||||
|
||||
Standard_Integer num = num0;
|
||||
|
||||
|
||||
// --- Instance of plex componant ConversionBasedUnit ---
|
||||
|
||||
if (!data->CheckNbParams(num,2,ach,"conversion_based_unit")) return;
|
||||
|
||||
// --- field : name ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aName;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadString (num,1,"name",ach,aName);
|
||||
|
||||
// --- field : conversionFactor ---
|
||||
|
||||
Handle(StepBasic_MeasureWithUnit) aConversionFactor;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
|
||||
data->ReadEntity(num, 2,"conversion_factor", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aConversionFactor);
|
||||
|
||||
num = data->NextForComplex(num);
|
||||
|
||||
// --- Instance of common supertype NamedUnit ---
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"named_unit")) return;
|
||||
|
||||
// --- field : dimensions ---
|
||||
|
||||
Handle(StepBasic_DimensionalExponents) aDimensions;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
data->ReadEntity(num, 1,"dimensions", ach, STANDARD_TYPE(StepBasic_DimensionalExponents), aDimensions);
|
||||
|
||||
num = data->NextForComplex(num);
|
||||
|
||||
// --- Instance of plex componant RatioUnit ---
|
||||
|
||||
if (!data->CheckNbParams(num,0,ach,"ratio_unit")) return;
|
||||
|
||||
//--- Initialisation of the red entity ---
|
||||
|
||||
ent->Init(aDimensions,aName,aConversionFactor);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndRatioUnit::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndRatioUnit)& ent) const
|
||||
{
|
||||
|
||||
// --- Instance of plex componant ConversionBasedUnit ---
|
||||
|
||||
SW.StartEntity("CONVERSION_BASED_UNIT");
|
||||
// --- field : name ---
|
||||
|
||||
SW.Send(ent->Name());
|
||||
// --- field : conversionFactor ---
|
||||
|
||||
SW.Send(ent->ConversionFactor());
|
||||
|
||||
// --- Instance of plex componant RatioUnit ---
|
||||
|
||||
SW.StartEntity("RATIO_UNIT");
|
||||
|
||||
// --- Instance of common supertype NamedUnit ---
|
||||
|
||||
SW.StartEntity("NAMED_UNIT");
|
||||
// --- field : dimensions ---
|
||||
|
||||
SW.Send(ent->Dimensions());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndRatioUnit::Share(const Handle(StepBasic_ConversionBasedUnitAndRatioUnit)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->Dimensions());
|
||||
|
||||
|
||||
iter.GetOneItem(ent->ConversionFactor());
|
||||
}
|
||||
|
30
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: ConversionBasedUnitAndSolidAngleUnit.cdl
|
||||
-- Created: Fri Jun 17 11:44:51 1994
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWConversionBasedUnitAndSolidAngleUnit from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for ConversionBasedUnitAndSolidAngleUnit
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ConversionBasedUnitAndSolidAngleUnit from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWConversionBasedUnitAndSolidAngleUnit;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ConversionBasedUnitAndSolidAngleUnit from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ConversionBasedUnitAndSolidAngleUnit from StepBasic);
|
||||
|
||||
Share(me; ent : ConversionBasedUnitAndSolidAngleUnit from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWConversionBasedUnitAndSolidAngleUnit;
|
103
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit.cxx
Executable file
103
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit.cxx
Executable file
@@ -0,0 +1,103 @@
|
||||
|
||||
#include <RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit.ixx>
|
||||
#include <StepBasic_ConversionBasedUnit.hxx>
|
||||
#include <StepBasic_SolidAngleUnit.hxx>
|
||||
#include <StepBasic_DimensionalExponents.hxx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_ConversionBasedUnitAndSolidAngleUnit.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit::RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit () {}
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num0,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndSolidAngleUnit)& ent) const
|
||||
{
|
||||
|
||||
Standard_Integer num = num0;
|
||||
|
||||
|
||||
// --- Instance of plex componant ConversionBasedUnit ---
|
||||
|
||||
if (!data->CheckNbParams(num,2,ach,"conversion_based_unit")) return;
|
||||
|
||||
// --- field : name ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aName;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadString (num,1,"name",ach,aName);
|
||||
|
||||
// --- field : conversionFactor ---
|
||||
|
||||
Handle(StepBasic_MeasureWithUnit) aConversionFactor;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
|
||||
data->ReadEntity(num, 2,"conversion_factor", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aConversionFactor);
|
||||
|
||||
num = data->NextForComplex(num);
|
||||
|
||||
// --- Instance of common supertype NamedUnit ---
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"named_unit")) return;
|
||||
// --- field : dimensions ---
|
||||
|
||||
|
||||
Handle(StepBasic_DimensionalExponents) aDimensions;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
data->ReadEntity(num, 1,"dimensions", ach, STANDARD_TYPE(StepBasic_DimensionalExponents), aDimensions);
|
||||
|
||||
num = data->NextForComplex(num);
|
||||
|
||||
// --- Instance of plex componant SolidAngleUnit ---
|
||||
|
||||
if (!data->CheckNbParams(num,0,ach,"solid_angle_unit")) return;
|
||||
|
||||
//--- Initialisation of the red entity ---
|
||||
|
||||
ent->Init(aDimensions,aName,aConversionFactor);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndSolidAngleUnit)& ent) const
|
||||
{
|
||||
|
||||
// --- Instance of plex componant ConversionBasedUnit ---
|
||||
|
||||
SW.StartEntity("CONVERSION_BASED_UNIT");
|
||||
// --- field : name ---
|
||||
|
||||
SW.Send(ent->Name());
|
||||
// --- field : conversionFactor ---
|
||||
|
||||
SW.Send(ent->ConversionFactor());
|
||||
|
||||
// --- Instance of common supertype NamedUnit ---
|
||||
|
||||
SW.StartEntity("NAMED_UNIT");
|
||||
// --- field : dimensions ---
|
||||
|
||||
SW.Send(ent->Dimensions());
|
||||
|
||||
// --- Instance of plex componant SolidAngleUnit ---
|
||||
|
||||
SW.StartEntity("SOLID_ANGLE_UNIT");
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit::Share(const Handle(StepBasic_ConversionBasedUnitAndSolidAngleUnit)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->Dimensions());
|
||||
|
||||
|
||||
iter.GetOneItem(ent->ConversionFactor());
|
||||
}
|
||||
|
30
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndTimeUnit.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndTimeUnit.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: ConversionBasedUnitAndTimeUnit.cdl
|
||||
-- Created: Mon Dec 4 12:02:37 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWConversionBasedUnitAndTimeUnit from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for ConversionBasedUnitAndTimeUnit
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ConversionBasedUnitAndTimeUnit from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWConversionBasedUnitAndTimeUnit;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ConversionBasedUnitAndTimeUnit from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ConversionBasedUnitAndTimeUnit from StepBasic);
|
||||
|
||||
Share(me; ent : ConversionBasedUnitAndTimeUnit from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWConversionBasedUnitAndTimeUnit;
|
103
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndTimeUnit.cxx
Executable file
103
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndTimeUnit.cxx
Executable file
@@ -0,0 +1,103 @@
|
||||
|
||||
#include <RWStepBasic_RWConversionBasedUnitAndTimeUnit.ixx>
|
||||
#include <StepBasic_ConversionBasedUnit.hxx>
|
||||
#include <StepBasic_TimeUnit.hxx>
|
||||
#include <StepBasic_DimensionalExponents.hxx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_ConversionBasedUnitAndTimeUnit.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWConversionBasedUnitAndTimeUnit::RWStepBasic_RWConversionBasedUnitAndTimeUnit () {}
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndTimeUnit::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num0,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndTimeUnit)& ent) const
|
||||
{
|
||||
|
||||
Standard_Integer num = num0;
|
||||
|
||||
|
||||
// --- Instance of plex componant ConversionBasedUnit ---
|
||||
|
||||
if (!data->CheckNbParams(num,2,ach,"conversion_based_unit")) return;
|
||||
|
||||
// --- field : name ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aName;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadString (num,1,"name",ach,aName);
|
||||
|
||||
// --- field : conversionFactor ---
|
||||
|
||||
Handle(StepBasic_MeasureWithUnit) aConversionFactor;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
|
||||
data->ReadEntity(num, 2,"conversion_factor", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aConversionFactor);
|
||||
|
||||
num = data->NextForComplex(num);
|
||||
|
||||
// --- Instance of common supertype NamedUnit ---
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"named_unit")) return;
|
||||
// --- field : dimensions ---
|
||||
|
||||
|
||||
Handle(StepBasic_DimensionalExponents) aDimensions;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
data->ReadEntity(num, 1,"dimensions", ach, STANDARD_TYPE(StepBasic_DimensionalExponents), aDimensions);
|
||||
|
||||
num = data->NextForComplex(num);
|
||||
|
||||
// --- Instance of plex componant TimeUnit ---
|
||||
|
||||
if (!data->CheckNbParams(num,0,ach,"time_unit")) return;
|
||||
|
||||
//--- Initialisation of the red entity ---
|
||||
|
||||
ent->Init(aDimensions,aName,aConversionFactor);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndTimeUnit::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndTimeUnit)& ent) const
|
||||
{
|
||||
|
||||
// --- Instance of plex componant ConversionBasedUnit ---
|
||||
|
||||
SW.StartEntity("CONVERSION_BASED_UNIT");
|
||||
// --- field : name ---
|
||||
|
||||
SW.Send(ent->Name());
|
||||
// --- field : conversionFactor ---
|
||||
|
||||
SW.Send(ent->ConversionFactor());
|
||||
|
||||
// --- Instance of plex componant TimeUnit ---
|
||||
|
||||
SW.StartEntity("TIME_UNIT");
|
||||
|
||||
// --- Instance of common supertype NamedUnit ---
|
||||
|
||||
SW.StartEntity("NAMED_UNIT");
|
||||
// --- field : dimensions ---
|
||||
|
||||
SW.Send(ent->Dimensions());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndTimeUnit::Share(const Handle(StepBasic_ConversionBasedUnitAndTimeUnit)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->Dimensions());
|
||||
|
||||
|
||||
iter.GetOneItem(ent->ConversionFactor());
|
||||
}
|
||||
|
32
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndVolumeUnit.cdl
Executable file
32
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndVolumeUnit.cdl
Executable file
@@ -0,0 +1,32 @@
|
||||
-- File: RWStepBasic_RWConversionBasedUnitAndVolumeUnit.cdl
|
||||
-- Created: Tue Oct 12 14:28:52 1999
|
||||
-- Author: data exchange team
|
||||
-- <det@friendox>
|
||||
---Copyright: Matra Datavision 1999
|
||||
|
||||
|
||||
class RWConversionBasedUnitAndVolumeUnit from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write Module for ConversionBasedUnitAndVolumeUnit
|
||||
|
||||
uses
|
||||
|
||||
Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
ConversionBasedUnitAndVolumeUnit from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWConversionBasedUnitAndVolumeUnit from RWStepBasic;
|
||||
|
||||
ReadStep (me; data: StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable ConversionBasedUnitAndVolumeUnit from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : ConversionBasedUnitAndVolumeUnit from StepBasic);
|
||||
|
||||
Share(me; ent : ConversionBasedUnitAndVolumeUnit from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
|
||||
end RWConversionBasedUnitAndVolumeUnit;
|
55
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndVolumeUnit.cxx
Executable file
55
src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndVolumeUnit.cxx
Executable file
@@ -0,0 +1,55 @@
|
||||
// File: RWStepBasic_RWConversionBasedUnitAndVolumeUnit.cxx
|
||||
// Created: Tue Oct 12 14:32:09 1999
|
||||
// Author: data exchange team
|
||||
// <det@friendox>
|
||||
|
||||
|
||||
#include <RWStepBasic_RWConversionBasedUnitAndVolumeUnit.ixx>
|
||||
|
||||
RWStepBasic_RWConversionBasedUnitAndVolumeUnit::RWStepBasic_RWConversionBasedUnitAndVolumeUnit ()
|
||||
{
|
||||
}
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndVolumeUnit::ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num0,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndVolumeUnit)& ent) const
|
||||
{
|
||||
Standard_Integer num = num0;
|
||||
// --- Instance of plex componant ConversionBasedUnit ---
|
||||
if (!data->CheckNbParams(num,2,ach,"conversion_based_unit")) return;
|
||||
Handle(TCollection_HAsciiString) aName;
|
||||
data->ReadString (num,1,"name",ach,aName);
|
||||
|
||||
// --- field : conversionFactor ---
|
||||
Handle(StepBasic_MeasureWithUnit) aConversionFactor;
|
||||
data->ReadEntity(num, 2,"conversion_factor", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aConversionFactor);
|
||||
|
||||
num = data->NextForComplex(num);
|
||||
if (!data->CheckNbParams(num,1,ach,"named_unit")) return;
|
||||
Handle(StepBasic_DimensionalExponents) aDimensions;
|
||||
data->ReadEntity(num, 1,"dimensions", ach, STANDARD_TYPE(StepBasic_DimensionalExponents), aDimensions);
|
||||
|
||||
data->NamedForComplex("VOLUME_UNIT",num0,num,ach);
|
||||
if (!data->CheckNbParams(num,0,ach,"volume_unit")) return;
|
||||
|
||||
ent->Init(aDimensions,aName,aConversionFactor);
|
||||
}
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndVolumeUnit::WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_ConversionBasedUnitAndVolumeUnit)& ent) const
|
||||
{
|
||||
SW.StartEntity("CONVERSION_BASED_UNIT");
|
||||
SW.Send(ent->Name());
|
||||
SW.Send(ent->ConversionFactor());
|
||||
SW.StartEntity("NAMED_UNIT");
|
||||
SW.Send(ent->Dimensions());
|
||||
SW.StartEntity("VOLUME_UNIT");
|
||||
}
|
||||
|
||||
void RWStepBasic_RWConversionBasedUnitAndVolumeUnit::Share(const Handle(StepBasic_ConversionBasedUnitAndVolumeUnit)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
iter.GetOneItem(ent->Dimensions());
|
||||
iter.GetOneItem(ent->ConversionFactor());
|
||||
}
|
27
src/RWStepBasic/RWStepBasic_RWCoordinatedUniversalTimeOffset.cdl
Executable file
27
src/RWStepBasic/RWStepBasic_RWCoordinatedUniversalTimeOffset.cdl
Executable file
@@ -0,0 +1,27 @@
|
||||
-- File: CoordinatedUniversalTimeOffset.cdl
|
||||
-- Created: Mon Dec 4 12:02:24 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWCoordinatedUniversalTimeOffset from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for CoordinatedUniversalTimeOffset
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
CoordinatedUniversalTimeOffset from StepBasic
|
||||
|
||||
is
|
||||
|
||||
Create returns RWCoordinatedUniversalTimeOffset;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable CoordinatedUniversalTimeOffset from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : CoordinatedUniversalTimeOffset from StepBasic);
|
||||
|
||||
end RWCoordinatedUniversalTimeOffset;
|
91
src/RWStepBasic/RWStepBasic_RWCoordinatedUniversalTimeOffset.cxx
Executable file
91
src/RWStepBasic/RWStepBasic_RWCoordinatedUniversalTimeOffset.cxx
Executable file
@@ -0,0 +1,91 @@
|
||||
|
||||
#include <RWStepBasic_RWCoordinatedUniversalTimeOffset.ixx>
|
||||
#include <StepBasic_AheadOrBehind.hxx>
|
||||
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
|
||||
// --- Enum : AheadOrBehind ---
|
||||
static TCollection_AsciiString aobAhead(".AHEAD.");
|
||||
static TCollection_AsciiString aobExact(".EXACT.");
|
||||
static TCollection_AsciiString aobBehind(".BEHIND.");
|
||||
|
||||
RWStepBasic_RWCoordinatedUniversalTimeOffset::RWStepBasic_RWCoordinatedUniversalTimeOffset () {}
|
||||
|
||||
void RWStepBasic_RWCoordinatedUniversalTimeOffset::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_CoordinatedUniversalTimeOffset)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"coordinated_universal_time_offset")) return;
|
||||
|
||||
// --- own field : hourOffset ---
|
||||
|
||||
Standard_Integer aHourOffset;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadInteger (num,1,"hour_offset",ach,aHourOffset);
|
||||
|
||||
// --- own field : minuteOffset ---
|
||||
|
||||
Standard_Integer aMinuteOffset;
|
||||
Standard_Boolean hasAminuteOffset = Standard_True;
|
||||
if (data->IsParamDefined(num,2)) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
|
||||
data->ReadInteger (num,2,"minute_offset",ach,aMinuteOffset);
|
||||
}
|
||||
else {
|
||||
hasAminuteOffset = Standard_False;
|
||||
aMinuteOffset = 0;
|
||||
}
|
||||
|
||||
// --- own field : sense ---
|
||||
|
||||
StepBasic_AheadOrBehind aSense = StepBasic_aobAhead;
|
||||
if (data->ParamType(num,3) == Interface_ParamEnum) {
|
||||
Standard_CString text = data->ParamCValue(num,3);
|
||||
if (aobAhead.IsEqual(text)) aSense = StepBasic_aobAhead;
|
||||
else if (aobExact.IsEqual(text)) aSense = StepBasic_aobExact;
|
||||
else if (aobBehind.IsEqual(text)) aSense = StepBasic_aobBehind;
|
||||
else ach->AddFail("Enumeration ahead_or_behind has not an allowed value");
|
||||
}
|
||||
else ach->AddFail("Parameter #3 (sense) is not an enumeration");
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aHourOffset, hasAminuteOffset, aMinuteOffset, aSense);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWCoordinatedUniversalTimeOffset::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_CoordinatedUniversalTimeOffset)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : hourOffset ---
|
||||
|
||||
SW.Send(ent->HourOffset());
|
||||
|
||||
// --- own field : minuteOffset ---
|
||||
|
||||
Standard_Boolean hasAminuteOffset = ent->HasMinuteOffset();
|
||||
if (hasAminuteOffset) {
|
||||
SW.Send(ent->MinuteOffset());
|
||||
}
|
||||
else {
|
||||
SW.SendUndef();
|
||||
}
|
||||
|
||||
// --- own field : sense ---
|
||||
|
||||
switch(ent->Sense()) {
|
||||
case StepBasic_aobAhead : SW.SendEnum (aobAhead); break;
|
||||
case StepBasic_aobExact : SW.SendEnum (aobExact); break;
|
||||
case StepBasic_aobBehind : SW.SendEnum (aobBehind); break;
|
||||
}
|
||||
}
|
27
src/RWStepBasic/RWStepBasic_RWDate.cdl
Executable file
27
src/RWStepBasic/RWStepBasic_RWDate.cdl
Executable file
@@ -0,0 +1,27 @@
|
||||
-- File: Date.cdl
|
||||
-- Created: Mon Dec 4 12:02:25 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWDate from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for Date
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
Date from StepBasic
|
||||
|
||||
is
|
||||
|
||||
Create returns RWDate;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable Date from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : Date from StepBasic);
|
||||
|
||||
end RWDate;
|
40
src/RWStepBasic/RWStepBasic_RWDate.cxx
Executable file
40
src/RWStepBasic/RWStepBasic_RWDate.cxx
Executable file
@@ -0,0 +1,40 @@
|
||||
|
||||
#include <RWStepBasic_RWDate.ixx>
|
||||
|
||||
|
||||
RWStepBasic_RWDate::RWStepBasic_RWDate () {}
|
||||
|
||||
void RWStepBasic_RWDate::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_Date)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"date")) return;
|
||||
|
||||
// --- own field : yearComponent ---
|
||||
|
||||
Standard_Integer aYearComponent;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadInteger (num,1,"year_component",ach,aYearComponent);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aYearComponent);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWDate::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_Date)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : yearComponent ---
|
||||
|
||||
SW.Send(ent->YearComponent());
|
||||
}
|
30
src/RWStepBasic/RWStepBasic_RWDateAndTime.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWDateAndTime.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: DateAndTime.cdl
|
||||
-- Created: Mon Dec 4 12:02:25 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWDateAndTime from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for DateAndTime
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
DateAndTime from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWDateAndTime;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable DateAndTime from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : DateAndTime from StepBasic);
|
||||
|
||||
Share(me; ent : DateAndTime from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWDateAndTime;
|
69
src/RWStepBasic/RWStepBasic_RWDateAndTime.cxx
Executable file
69
src/RWStepBasic/RWStepBasic_RWDateAndTime.cxx
Executable file
@@ -0,0 +1,69 @@
|
||||
|
||||
#include <RWStepBasic_RWDateAndTime.ixx>
|
||||
#include <StepBasic_Date.hxx>
|
||||
#include <StepBasic_LocalTime.hxx>
|
||||
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_DateAndTime.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWDateAndTime::RWStepBasic_RWDateAndTime () {}
|
||||
|
||||
void RWStepBasic_RWDateAndTime::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_DateAndTime)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,2,ach,"date_and_time")) return;
|
||||
|
||||
// --- own field : dateComponent ---
|
||||
|
||||
Handle(StepBasic_Date) aDateComponent;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadEntity(num, 1,"date_component", ach, STANDARD_TYPE(StepBasic_Date), aDateComponent);
|
||||
|
||||
// --- own field : timeComponent ---
|
||||
|
||||
Handle(StepBasic_LocalTime) aTimeComponent;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
|
||||
data->ReadEntity(num, 2,"time_component", ach, STANDARD_TYPE(StepBasic_LocalTime), aTimeComponent);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aDateComponent, aTimeComponent);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWDateAndTime::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_DateAndTime)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : dateComponent ---
|
||||
|
||||
SW.Send(ent->DateComponent());
|
||||
|
||||
// --- own field : timeComponent ---
|
||||
|
||||
SW.Send(ent->TimeComponent());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWDateAndTime::Share(const Handle(StepBasic_DateAndTime)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->DateComponent());
|
||||
|
||||
|
||||
iter.GetOneItem(ent->TimeComponent());
|
||||
}
|
||||
|
27
src/RWStepBasic/RWStepBasic_RWDateRole.cdl
Executable file
27
src/RWStepBasic/RWStepBasic_RWDateRole.cdl
Executable file
@@ -0,0 +1,27 @@
|
||||
-- File: DateRole.cdl
|
||||
-- Created: Mon Dec 4 12:02:25 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWDateRole from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for DateRole
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
DateRole from StepBasic
|
||||
|
||||
is
|
||||
|
||||
Create returns RWDateRole;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable DateRole from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : DateRole from StepBasic);
|
||||
|
||||
end RWDateRole;
|
40
src/RWStepBasic/RWStepBasic_RWDateRole.cxx
Executable file
40
src/RWStepBasic/RWStepBasic_RWDateRole.cxx
Executable file
@@ -0,0 +1,40 @@
|
||||
|
||||
#include <RWStepBasic_RWDateRole.ixx>
|
||||
|
||||
|
||||
RWStepBasic_RWDateRole::RWStepBasic_RWDateRole () {}
|
||||
|
||||
void RWStepBasic_RWDateRole::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_DateRole)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"date_role")) 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 RWStepBasic_RWDateRole::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_DateRole)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : name ---
|
||||
|
||||
SW.Send(ent->Name());
|
||||
}
|
27
src/RWStepBasic/RWStepBasic_RWDateTimeRole.cdl
Executable file
27
src/RWStepBasic/RWStepBasic_RWDateTimeRole.cdl
Executable file
@@ -0,0 +1,27 @@
|
||||
-- File: DateTimeRole.cdl
|
||||
-- Created: Mon Dec 4 12:02:25 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWDateTimeRole from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for DateTimeRole
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
DateTimeRole from StepBasic
|
||||
|
||||
is
|
||||
|
||||
Create returns RWDateTimeRole;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable DateTimeRole from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : DateTimeRole from StepBasic);
|
||||
|
||||
end RWDateTimeRole;
|
40
src/RWStepBasic/RWStepBasic_RWDateTimeRole.cxx
Executable file
40
src/RWStepBasic/RWStepBasic_RWDateTimeRole.cxx
Executable file
@@ -0,0 +1,40 @@
|
||||
|
||||
#include <RWStepBasic_RWDateTimeRole.ixx>
|
||||
|
||||
|
||||
RWStepBasic_RWDateTimeRole::RWStepBasic_RWDateTimeRole () {}
|
||||
|
||||
void RWStepBasic_RWDateTimeRole::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_DateTimeRole)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"date_time_role")) 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 RWStepBasic_RWDateTimeRole::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_DateTimeRole)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : name ---
|
||||
|
||||
SW.Send(ent->Name());
|
||||
}
|
30
src/RWStepBasic/RWStepBasic_RWDerivedUnit.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWDerivedUnit.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: DerivedUnit.cdl
|
||||
-- Created: Mon Dec 4 12:02:28 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWDerivedUnit from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for DerivedUnit
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
DerivedUnit from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWDerivedUnit;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable DerivedUnit from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : DerivedUnit from StepBasic);
|
||||
|
||||
Share(me; ent : DerivedUnit from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWDerivedUnit;
|
73
src/RWStepBasic/RWStepBasic_RWDerivedUnit.cxx
Executable file
73
src/RWStepBasic/RWStepBasic_RWDerivedUnit.cxx
Executable file
@@ -0,0 +1,73 @@
|
||||
|
||||
#include <RWStepBasic_RWDerivedUnit.ixx>
|
||||
#include <StepBasic_DerivedUnitElement.hxx>
|
||||
#include <StepBasic_HArray1OfDerivedUnitElement.hxx>
|
||||
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_DerivedUnit.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWDerivedUnit::RWStepBasic_RWDerivedUnit () {}
|
||||
|
||||
void RWStepBasic_RWDerivedUnit::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_DerivedUnit)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"derived_unit")) return;
|
||||
|
||||
// --- own field : elements ---
|
||||
|
||||
Handle(StepBasic_HArray1OfDerivedUnitElement) elts;
|
||||
Handle(StepBasic_DerivedUnitElement) anelt;
|
||||
Standard_Integer nsub1;
|
||||
if (data->ReadSubList (num,1,"elements",ach,nsub1)) {
|
||||
Standard_Integer nb1 = data->NbParams(nsub1);
|
||||
elts = new StepBasic_HArray1OfDerivedUnitElement (1,nb1);
|
||||
for (Standard_Integer i1 = 1; i1 <= nb1; i1 ++) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean st1 =` not needed
|
||||
if (data->ReadEntity (nsub1,i1,"element",ach,STANDARD_TYPE(StepBasic_DerivedUnitElement),anelt))
|
||||
elts->SetValue (i1,anelt);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(elts);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWDerivedUnit::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_DerivedUnit)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : dimensions ---
|
||||
|
||||
Standard_Integer i, nb = ent->NbElements();
|
||||
SW.OpenSub();
|
||||
for (i = 1; i <= nb; i ++) {
|
||||
SW.Send (ent->ElementsValue(i));
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWDerivedUnit::Share(const Handle(StepBasic_DerivedUnit)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
Standard_Integer i, nb = ent->NbElements();
|
||||
for (i = 1; i <= nb; i ++) {
|
||||
iter.GetOneItem(ent->ElementsValue(i));
|
||||
}
|
||||
}
|
||||
|
30
src/RWStepBasic/RWStepBasic_RWDerivedUnitElement.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWDerivedUnitElement.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: DerivedUnitElement.cdl
|
||||
-- Created: Mon Dec 4 12:02:28 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWDerivedUnitElement from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for DerivedUnitElement
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
DerivedUnitElement from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWDerivedUnitElement;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable DerivedUnitElement from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : DerivedUnitElement from StepBasic);
|
||||
|
||||
Share(me; ent : DerivedUnitElement from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWDerivedUnitElement;
|
58
src/RWStepBasic/RWStepBasic_RWDerivedUnitElement.cxx
Executable file
58
src/RWStepBasic/RWStepBasic_RWDerivedUnitElement.cxx
Executable file
@@ -0,0 +1,58 @@
|
||||
|
||||
#include <RWStepBasic_RWDerivedUnitElement.ixx>
|
||||
#include <StepBasic_NamedUnit.hxx>
|
||||
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_DerivedUnitElement.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWDerivedUnitElement::RWStepBasic_RWDerivedUnitElement () {}
|
||||
|
||||
void RWStepBasic_RWDerivedUnitElement::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_DerivedUnitElement)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,2,ach,"derived_unit_element")) return;
|
||||
|
||||
// --- own fields
|
||||
|
||||
Handle(StepBasic_NamedUnit) nu;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadEntity(num, 1,"unit", ach, STANDARD_TYPE(StepBasic_NamedUnit), nu);
|
||||
Standard_Real expo;
|
||||
//szv#4:S4163:12Mar99 `stat1 =` not needed
|
||||
data->ReadReal (num,2,"exponent", ach, expo);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(nu,expo);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWDerivedUnitElement::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_DerivedUnitElement)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : dimensions ---
|
||||
|
||||
SW.Send(ent->Unit());
|
||||
SW.Send(ent->Exponent());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWDerivedUnitElement::Share(const Handle(StepBasic_DerivedUnitElement)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->Unit());
|
||||
}
|
27
src/RWStepBasic/RWStepBasic_RWDimensionalExponents.cdl
Executable file
27
src/RWStepBasic/RWStepBasic_RWDimensionalExponents.cdl
Executable file
@@ -0,0 +1,27 @@
|
||||
-- File: DimensionalExponents.cdl
|
||||
-- Created: Mon Dec 4 12:02:25 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWDimensionalExponents from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for DimensionalExponents
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
DimensionalExponents from StepBasic
|
||||
|
||||
is
|
||||
|
||||
Create returns RWDimensionalExponents;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable DimensionalExponents from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : DimensionalExponents from StepBasic);
|
||||
|
||||
end RWDimensionalExponents;
|
100
src/RWStepBasic/RWStepBasic_RWDimensionalExponents.cxx
Executable file
100
src/RWStepBasic/RWStepBasic_RWDimensionalExponents.cxx
Executable file
@@ -0,0 +1,100 @@
|
||||
|
||||
#include <RWStepBasic_RWDimensionalExponents.ixx>
|
||||
|
||||
|
||||
RWStepBasic_RWDimensionalExponents::RWStepBasic_RWDimensionalExponents () {}
|
||||
|
||||
void RWStepBasic_RWDimensionalExponents::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_DimensionalExponents)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,7,ach,"dimensional_exponents")) return;
|
||||
|
||||
// --- own field : lengthExponent ---
|
||||
|
||||
Standard_Real aLengthExponent;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadReal (num,1,"length_exponent",ach,aLengthExponent);
|
||||
|
||||
// --- own field : massExponent ---
|
||||
|
||||
Standard_Real aMassExponent;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
|
||||
data->ReadReal (num,2,"mass_exponent",ach,aMassExponent);
|
||||
|
||||
// --- own field : timeExponent ---
|
||||
|
||||
Standard_Real aTimeExponent;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
data->ReadReal (num,3,"time_exponent",ach,aTimeExponent);
|
||||
|
||||
// --- own field : electricCurrentExponent ---
|
||||
|
||||
Standard_Real aElectricCurrentExponent;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat4 =` not needed
|
||||
data->ReadReal (num,4,"electric_current_exponent",ach,aElectricCurrentExponent);
|
||||
|
||||
// --- own field : thermodynamicTemperatureExponent ---
|
||||
|
||||
Standard_Real aThermodynamicTemperatureExponent;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat5 =` not needed
|
||||
data->ReadReal (num,5,"thermodynamic_temperature_exponent",ach,aThermodynamicTemperatureExponent);
|
||||
|
||||
// --- own field : amountOfSubstanceExponent ---
|
||||
|
||||
Standard_Real aAmountOfSubstanceExponent;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat6 =` not needed
|
||||
data->ReadReal (num,6,"amount_of_substance_exponent",ach,aAmountOfSubstanceExponent);
|
||||
|
||||
// --- own field : luminousIntensityExponent ---
|
||||
|
||||
Standard_Real aLuminousIntensityExponent;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat7 =` not needed
|
||||
data->ReadReal (num,7,"luminous_intensity_exponent",ach,aLuminousIntensityExponent);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aLengthExponent, aMassExponent, aTimeExponent, aElectricCurrentExponent, aThermodynamicTemperatureExponent, aAmountOfSubstanceExponent, aLuminousIntensityExponent);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWDimensionalExponents::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_DimensionalExponents)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : lengthExponent ---
|
||||
|
||||
SW.Send(ent->LengthExponent());
|
||||
|
||||
// --- own field : massExponent ---
|
||||
|
||||
SW.Send(ent->MassExponent());
|
||||
|
||||
// --- own field : timeExponent ---
|
||||
|
||||
SW.Send(ent->TimeExponent());
|
||||
|
||||
// --- own field : electricCurrentExponent ---
|
||||
|
||||
SW.Send(ent->ElectricCurrentExponent());
|
||||
|
||||
// --- own field : thermodynamicTemperatureExponent ---
|
||||
|
||||
SW.Send(ent->ThermodynamicTemperatureExponent());
|
||||
|
||||
// --- own field : amountOfSubstanceExponent ---
|
||||
|
||||
SW.Send(ent->AmountOfSubstanceExponent());
|
||||
|
||||
// --- own field : luminousIntensityExponent ---
|
||||
|
||||
SW.Send(ent->LuminousIntensityExponent());
|
||||
}
|
35
src/RWStepBasic/RWStepBasic_RWDocument.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWDocument.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWDocument.cdl
|
||||
-- Created: Thu May 11 16:38:00 2000
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
|
||||
-- Copyright: Matra Datavision 2000
|
||||
|
||||
class RWDocument from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for Document
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
Document from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWDocument from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : Document from StepBasic);
|
||||
---Purpose: Reads Document
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: Document from StepBasic);
|
||||
---Purpose: Writes Document
|
||||
|
||||
Share (me; ent : Document from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWDocument;
|
94
src/RWStepBasic/RWStepBasic_RWDocument.cxx
Executable file
94
src/RWStepBasic/RWStepBasic_RWDocument.cxx
Executable file
@@ -0,0 +1,94 @@
|
||||
// File: RWStepBasic_RWDocument.cxx
|
||||
// Created: Thu May 11 16:38:00 2000
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
|
||||
// Copyright: Matra Datavision 2000
|
||||
|
||||
#include <RWStepBasic_RWDocument.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWDocument
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWDocument::RWStepBasic_RWDocument ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWDocument::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_Document) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,4,ach,"document") ) return;
|
||||
|
||||
// Own fields of Document
|
||||
|
||||
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_DocumentType) aKind;
|
||||
data->ReadEntity (num, 4, "kind", ach, STANDARD_TYPE(StepBasic_DocumentType), aKind);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aId,
|
||||
aName,
|
||||
hasDescription,
|
||||
aDescription,
|
||||
aKind);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWDocument::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_Document) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of Document
|
||||
|
||||
SW.Send (ent->Id());
|
||||
|
||||
SW.Send (ent->Name());
|
||||
|
||||
if ( ent->HasDescription() ) {
|
||||
SW.Send (ent->Description());
|
||||
}
|
||||
else SW.SendUndef();
|
||||
|
||||
SW.Send (ent->Kind());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWDocument::Share (const Handle(StepBasic_Document) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of Document
|
||||
|
||||
iter.AddItem (ent->Kind());
|
||||
}
|
35
src/RWStepBasic/RWStepBasic_RWDocumentFile.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWDocumentFile.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWDocumentFile.cdl
|
||||
-- Created: Thu May 11 16:38:00 2000
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
|
||||
-- Copyright: Matra Datavision 2000
|
||||
|
||||
class RWDocumentFile from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for DocumentFile
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
DocumentFile from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWDocumentFile from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : DocumentFile from StepBasic);
|
||||
---Purpose: Reads DocumentFile
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: DocumentFile from StepBasic);
|
||||
---Purpose: Writes DocumentFile
|
||||
|
||||
Share (me; ent : DocumentFile from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWDocumentFile;
|
123
src/RWStepBasic/RWStepBasic_RWDocumentFile.cxx
Executable file
123
src/RWStepBasic/RWStepBasic_RWDocumentFile.cxx
Executable file
@@ -0,0 +1,123 @@
|
||||
// File: RWStepBasic_RWDocumentFile.cxx
|
||||
// Created: Thu May 11 16:38:00 2000
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
|
||||
// Copyright: Matra Datavision 2000
|
||||
|
||||
#include <RWStepBasic_RWDocumentFile.ixx>
|
||||
#include <StepBasic_CharacterizedObject.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWDocumentFile
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWDocumentFile::RWStepBasic_RWDocumentFile ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWDocumentFile::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_DocumentFile) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,6,ach,"document_file") ) return;
|
||||
|
||||
// Inherited fields of Document
|
||||
|
||||
Handle(TCollection_HAsciiString) aDocument_Id;
|
||||
data->ReadString (num, 1, "document.id", ach, aDocument_Id);
|
||||
|
||||
Handle(TCollection_HAsciiString) aDocument_Name;
|
||||
data->ReadString (num, 2, "document.name", ach, aDocument_Name);
|
||||
|
||||
Handle(TCollection_HAsciiString) aDocument_Description;
|
||||
Standard_Boolean hasDocument_Description = Standard_True;
|
||||
if ( data->IsParamDefined (num,3) ) {
|
||||
data->ReadString (num, 3, "document.description", ach, aDocument_Description);
|
||||
}
|
||||
else {
|
||||
hasDocument_Description = Standard_False;
|
||||
}
|
||||
|
||||
Handle(StepBasic_DocumentType) aDocument_Kind;
|
||||
data->ReadEntity (num, 4, "document.kind", ach, STANDARD_TYPE(StepBasic_DocumentType), aDocument_Kind);
|
||||
|
||||
// Inherited fields of CharacterizedObject
|
||||
|
||||
Handle(TCollection_HAsciiString) aCharacterizedObject_Name;
|
||||
data->ReadString (num, 5, "characterized_object.name", ach, aCharacterizedObject_Name);
|
||||
|
||||
Handle(TCollection_HAsciiString) aCharacterizedObject_Description;
|
||||
Standard_Boolean hasCharacterizedObject_Description = Standard_True;
|
||||
if ( data->IsParamDefined (num,6) ) {
|
||||
data->ReadString (num, 6, "characterized_object.description", ach, aCharacterizedObject_Description);
|
||||
}
|
||||
else {
|
||||
hasCharacterizedObject_Description = Standard_False;
|
||||
}
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aDocument_Id,
|
||||
aDocument_Name,
|
||||
hasDocument_Description,
|
||||
aDocument_Description,
|
||||
aDocument_Kind,
|
||||
aCharacterizedObject_Name,
|
||||
hasCharacterizedObject_Description,
|
||||
aCharacterizedObject_Description);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWDocumentFile::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_DocumentFile) &ent) const
|
||||
{
|
||||
|
||||
// Inherited fields of Document
|
||||
|
||||
SW.Send (ent->StepBasic_Document::Id());
|
||||
|
||||
SW.Send (ent->StepBasic_Document::Name());
|
||||
|
||||
if ( ent->StepBasic_Document::HasDescription() ) {
|
||||
SW.Send (ent->StepBasic_Document::Description());
|
||||
}
|
||||
else SW.SendUndef();
|
||||
|
||||
SW.Send (ent->StepBasic_Document::Kind());
|
||||
|
||||
// Inherited fields of CharacterizedObject
|
||||
|
||||
SW.Send (ent->CharacterizedObject()->Name());
|
||||
|
||||
if ( ent->CharacterizedObject()->HasDescription() ) {
|
||||
SW.Send (ent->CharacterizedObject()->Description());
|
||||
}
|
||||
else SW.SendUndef();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWDocumentFile::Share (const Handle(StepBasic_DocumentFile) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Inherited fields of Document
|
||||
|
||||
iter.AddItem (ent->StepBasic_Document::Kind());
|
||||
|
||||
// Inherited fields of CharacterizedObject
|
||||
}
|
35
src/RWStepBasic/RWStepBasic_RWDocumentProductAssociation.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWDocumentProductAssociation.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWDocumentProductAssociation.cdl
|
||||
-- Created: Tue Jan 28 12:40:35 2003
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWDocumentProductAssociation from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for DocumentProductAssociation
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
DocumentProductAssociation from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWDocumentProductAssociation from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : DocumentProductAssociation from StepBasic);
|
||||
---Purpose: Reads DocumentProductAssociation
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: DocumentProductAssociation from StepBasic);
|
||||
---Purpose: Writes DocumentProductAssociation
|
||||
|
||||
Share (me; ent : DocumentProductAssociation from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWDocumentProductAssociation;
|
96
src/RWStepBasic/RWStepBasic_RWDocumentProductAssociation.cxx
Executable file
96
src/RWStepBasic/RWStepBasic_RWDocumentProductAssociation.cxx
Executable file
@@ -0,0 +1,96 @@
|
||||
// File: RWStepBasic_RWDocumentProductAssociation.cxx
|
||||
// Created: Tue Jan 28 12:40:35 2003
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepBasic_RWDocumentProductAssociation.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWDocumentProductAssociation
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWDocumentProductAssociation::RWStepBasic_RWDocumentProductAssociation ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWDocumentProductAssociation::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_DocumentProductAssociation) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,4,ach,"document_product_association") ) return;
|
||||
|
||||
// Own fields of DocumentProductAssociation
|
||||
|
||||
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(StepBasic_Document) aRelatingDocument;
|
||||
data->ReadEntity (num, 3, "relating_document", ach, STANDARD_TYPE(StepBasic_Document), aRelatingDocument);
|
||||
|
||||
StepBasic_ProductOrFormationOrDefinition aRelatedProduct;
|
||||
data->ReadEntity (num, 4, "related_product", ach, aRelatedProduct);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aName,
|
||||
hasDescription,
|
||||
aDescription,
|
||||
aRelatingDocument,
|
||||
aRelatedProduct);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWDocumentProductAssociation::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_DocumentProductAssociation) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of DocumentProductAssociation
|
||||
|
||||
SW.Send (ent->Name());
|
||||
|
||||
if ( ent->HasDescription() ) {
|
||||
SW.Send (ent->Description());
|
||||
}
|
||||
else SW.SendUndef();
|
||||
|
||||
SW.Send (ent->RelatingDocument());
|
||||
|
||||
SW.Send (ent->RelatedProduct().Value());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWDocumentProductAssociation::Share (const Handle(StepBasic_DocumentProductAssociation) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of DocumentProductAssociation
|
||||
|
||||
iter.AddItem (ent->RelatingDocument());
|
||||
|
||||
iter.AddItem (ent->RelatedProduct().Value());
|
||||
}
|
35
src/RWStepBasic/RWStepBasic_RWDocumentProductEquivalence.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWDocumentProductEquivalence.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWDocumentProductEquivalence.cdl
|
||||
-- Created: Tue Jan 28 12:40:35 2003
|
||||
-- Author: data exchange team
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
-- Copyright: Open CASCADE 2002
|
||||
|
||||
class RWDocumentProductEquivalence from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for DocumentProductEquivalence
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
DocumentProductEquivalence from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWDocumentProductEquivalence from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : DocumentProductEquivalence from StepBasic);
|
||||
---Purpose: Reads DocumentProductEquivalence
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: DocumentProductEquivalence from StepBasic);
|
||||
---Purpose: Writes DocumentProductEquivalence
|
||||
|
||||
Share (me; ent : DocumentProductEquivalence from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWDocumentProductEquivalence;
|
96
src/RWStepBasic/RWStepBasic_RWDocumentProductEquivalence.cxx
Executable file
96
src/RWStepBasic/RWStepBasic_RWDocumentProductEquivalence.cxx
Executable file
@@ -0,0 +1,96 @@
|
||||
// File: RWStepBasic_RWDocumentProductEquivalence.cxx
|
||||
// Created: Tue Jan 28 12:40:35 2003
|
||||
// Author: data exchange team
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
||||
// Copyright: Open CASCADE 2002
|
||||
|
||||
#include <RWStepBasic_RWDocumentProductEquivalence.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWDocumentProductEquivalence
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWDocumentProductEquivalence::RWStepBasic_RWDocumentProductEquivalence ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWDocumentProductEquivalence::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_DocumentProductEquivalence) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,4,ach,"document_product_equivalence") ) return;
|
||||
|
||||
// Inherited fields of DocumentProductAssociation
|
||||
|
||||
Handle(TCollection_HAsciiString) aDocumentProductAssociation_Name;
|
||||
data->ReadString (num, 1, "document_product_association.name", ach, aDocumentProductAssociation_Name);
|
||||
|
||||
Handle(TCollection_HAsciiString) aDocumentProductAssociation_Description;
|
||||
Standard_Boolean hasDocumentProductAssociation_Description = Standard_True;
|
||||
if ( data->IsParamDefined (num,2) ) {
|
||||
data->ReadString (num, 2, "document_product_association.description", ach, aDocumentProductAssociation_Description);
|
||||
}
|
||||
else {
|
||||
hasDocumentProductAssociation_Description = Standard_False;
|
||||
}
|
||||
|
||||
Handle(StepBasic_Document) aDocumentProductAssociation_RelatingDocument;
|
||||
data->ReadEntity (num, 3, "document_product_association.relating_document", ach, STANDARD_TYPE(StepBasic_Document), aDocumentProductAssociation_RelatingDocument);
|
||||
|
||||
StepBasic_ProductOrFormationOrDefinition aDocumentProductAssociation_RelatedProduct;
|
||||
data->ReadEntity (num, 4, "document_product_association.related_product", ach, aDocumentProductAssociation_RelatedProduct);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aDocumentProductAssociation_Name,
|
||||
hasDocumentProductAssociation_Description,
|
||||
aDocumentProductAssociation_Description,
|
||||
aDocumentProductAssociation_RelatingDocument,
|
||||
aDocumentProductAssociation_RelatedProduct);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWDocumentProductEquivalence::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_DocumentProductEquivalence) &ent) const
|
||||
{
|
||||
|
||||
// Inherited fields of DocumentProductAssociation
|
||||
|
||||
SW.Send (ent->StepBasic_DocumentProductAssociation::Name());
|
||||
|
||||
if ( ent->StepBasic_DocumentProductAssociation::HasDescription() ) {
|
||||
SW.Send (ent->StepBasic_DocumentProductAssociation::Description());
|
||||
}
|
||||
else SW.SendUndef();
|
||||
|
||||
SW.Send (ent->StepBasic_DocumentProductAssociation::RelatingDocument());
|
||||
|
||||
SW.Send (ent->StepBasic_DocumentProductAssociation::RelatedProduct().Value());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWDocumentProductEquivalence::Share (const Handle(StepBasic_DocumentProductEquivalence) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Inherited fields of DocumentProductAssociation
|
||||
|
||||
iter.AddItem (ent->StepBasic_DocumentProductAssociation::RelatingDocument());
|
||||
|
||||
iter.AddItem (ent->StepBasic_DocumentProductAssociation::RelatedProduct().Value());
|
||||
}
|
30
src/RWStepBasic/RWStepBasic_RWDocumentRelationship.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWDocumentRelationship.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: DocumentRelationship.cdl
|
||||
-- Created: Mon Dec 4 12:02:29 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWDocumentRelationship from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for DocumentRelationship
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
DocumentRelationship from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWDocumentRelationship;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable DocumentRelationship from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : DocumentRelationship from StepBasic);
|
||||
|
||||
Share(me; ent : DocumentRelationship from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWDocumentRelationship;
|
85
src/RWStepBasic/RWStepBasic_RWDocumentRelationship.cxx
Executable file
85
src/RWStepBasic/RWStepBasic_RWDocumentRelationship.cxx
Executable file
@@ -0,0 +1,85 @@
|
||||
//gka 05.03.99 S4134 upgrade from CD to DIS
|
||||
#include <RWStepBasic_RWDocumentRelationship.ixx>
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_DocumentRelationship.hxx>
|
||||
#include <StepBasic_Document.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWDocumentRelationship::RWStepBasic_RWDocumentRelationship () {}
|
||||
|
||||
void RWStepBasic_RWDocumentRelationship::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_DocumentRelationship)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,4,ach,"document_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) aDescr;
|
||||
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,aDescr);
|
||||
}
|
||||
// --- own field : relating ---
|
||||
|
||||
Handle(StepBasic_Document) aRelating;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
data->ReadEntity (num, 3,"relating_document", ach, STANDARD_TYPE(StepBasic_Document), aRelating);
|
||||
|
||||
// --- own field : related ---
|
||||
|
||||
Handle(StepBasic_Document) aRelated;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat4 =` not needed
|
||||
data->ReadEntity (num, 4,"related_document", ach, STANDARD_TYPE(StepBasic_Document), aRelated);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aName, aDescr, aRelating,aRelated);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWDocumentRelationship::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_DocumentRelationship)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : name ---
|
||||
|
||||
SW.Send(ent->Name());
|
||||
|
||||
// --- own field : description ---
|
||||
|
||||
SW.Send(ent->Description());
|
||||
|
||||
// --- own field : kind ---
|
||||
|
||||
SW.Send(ent->RelatingDocument());
|
||||
SW.Send(ent->RelatedDocument());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWDocumentRelationship::Share(const Handle(StepBasic_DocumentRelationship)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.AddItem(ent->RelatingDocument());
|
||||
iter.AddItem(ent->RelatedDocument());
|
||||
|
||||
}
|
||||
|
35
src/RWStepBasic/RWStepBasic_RWDocumentRepresentationType.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWDocumentRepresentationType.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWDocumentRepresentationType.cdl
|
||||
-- Created: Wed May 10 15:09:06 2000
|
||||
-- Author: Andrey BETENEV
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
|
||||
-- Copyright: Matra Datavision 2000
|
||||
|
||||
class RWDocumentRepresentationType from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for DocumentRepresentationType
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
DocumentRepresentationType from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWDocumentRepresentationType from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : DocumentRepresentationType from StepBasic);
|
||||
---Purpose: Reads DocumentRepresentationType
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: DocumentRepresentationType from StepBasic);
|
||||
---Purpose: Writes DocumentRepresentationType
|
||||
|
||||
Share (me; ent : DocumentRepresentationType from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWDocumentRepresentationType;
|
72
src/RWStepBasic/RWStepBasic_RWDocumentRepresentationType.cxx
Executable file
72
src/RWStepBasic/RWStepBasic_RWDocumentRepresentationType.cxx
Executable file
@@ -0,0 +1,72 @@
|
||||
// File: RWStepBasic_RWDocumentRepresentationType.cxx
|
||||
// Created: Wed May 10 15:09:06 2000
|
||||
// Author: Andrey BETENEV
|
||||
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
|
||||
// Copyright: Matra Datavision 2000
|
||||
|
||||
#include <RWStepBasic_RWDocumentRepresentationType.ixx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepBasic_RWDocumentRepresentationType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
RWStepBasic_RWDocumentRepresentationType::RWStepBasic_RWDocumentRepresentationType ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWDocumentRepresentationType::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_DocumentRepresentationType) &ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,2,ach,"document_representation_type") ) return;
|
||||
|
||||
// Own fields of DocumentRepresentationType
|
||||
|
||||
Handle(TCollection_HAsciiString) aName;
|
||||
data->ReadString (num, 1, "name", ach, aName);
|
||||
|
||||
Handle(StepBasic_Document) aRepresentedDocument;
|
||||
data->ReadEntity (num, 2, "represented_document", ach, STANDARD_TYPE(StepBasic_Document), aRepresentedDocument);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aName,
|
||||
aRepresentedDocument);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWDocumentRepresentationType::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_DocumentRepresentationType) &ent) const
|
||||
{
|
||||
|
||||
// Own fields of DocumentRepresentationType
|
||||
|
||||
SW.Send (ent->Name());
|
||||
|
||||
SW.Send (ent->RepresentedDocument());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void RWStepBasic_RWDocumentRepresentationType::Share (const Handle(StepBasic_DocumentRepresentationType) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Own fields of DocumentRepresentationType
|
||||
|
||||
iter.AddItem (ent->RepresentedDocument());
|
||||
}
|
30
src/RWStepBasic/RWStepBasic_RWDocumentType.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWDocumentType.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: DocumentType.cdl
|
||||
-- Created: Mon Dec 4 12:02:29 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWDocumentType from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for DocumentType
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
DocumentType from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWDocumentType;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable DocumentType from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : DocumentType from StepBasic);
|
||||
|
||||
Share(me; ent : DocumentType from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWDocumentType;
|
52
src/RWStepBasic/RWStepBasic_RWDocumentType.cxx
Executable file
52
src/RWStepBasic/RWStepBasic_RWDocumentType.cxx
Executable file
@@ -0,0 +1,52 @@
|
||||
|
||||
#include <RWStepBasic_RWDocumentType.ixx>
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_DocumentType.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWDocumentType::RWStepBasic_RWDocumentType () {}
|
||||
|
||||
void RWStepBasic_RWDocumentType::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_DocumentType)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"document_type")) return;
|
||||
|
||||
// --- own field : product_data_type ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aId;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadString (num,1,"product_data_type",ach,aId);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aId);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWDocumentType::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_DocumentType)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : id ---
|
||||
|
||||
SW.Send(ent->ProductDataType());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWDocumentType::Share(const Handle(StepBasic_DocumentType)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
}
|
||||
|
30
src/RWStepBasic/RWStepBasic_RWDocumentUsageConstraint.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWDocumentUsageConstraint.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: DocumentUsageConstraint.cdl
|
||||
-- Created: Mon Dec 4 12:02:29 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWDocumentUsageConstraint from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for DocumentUsageConstraint
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
DocumentUsageConstraint from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWDocumentUsageConstraint;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable DocumentUsageConstraint from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : DocumentUsageConstraint from StepBasic);
|
||||
|
||||
Share(me; ent : DocumentUsageConstraint from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWDocumentUsageConstraint;
|
72
src/RWStepBasic/RWStepBasic_RWDocumentUsageConstraint.cxx
Executable file
72
src/RWStepBasic/RWStepBasic_RWDocumentUsageConstraint.cxx
Executable file
@@ -0,0 +1,72 @@
|
||||
|
||||
#include <RWStepBasic_RWDocumentUsageConstraint.ixx>
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_Document.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWDocumentUsageConstraint::RWStepBasic_RWDocumentUsageConstraint () {}
|
||||
|
||||
void RWStepBasic_RWDocumentUsageConstraint::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_DocumentUsageConstraint)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"document_usage_constraint")) return;
|
||||
|
||||
// --- own field : source ---
|
||||
|
||||
Handle(StepBasic_Document) aSource;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadEntity (num, 1,"source", ach, STANDARD_TYPE(StepBasic_Document), aSource);
|
||||
|
||||
// --- own field : label ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aLabel;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
|
||||
data->ReadString (num,2,"subject_element",ach,aLabel);
|
||||
|
||||
// --- own field : description ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aDescription;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
data->ReadString (num,3,"subject_element_value",ach,aDescription);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aSource, aLabel, aDescription);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWDocumentUsageConstraint::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_DocumentUsageConstraint)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : id ---
|
||||
|
||||
SW.Send(ent->Source());
|
||||
|
||||
// --- own field : subject_element ---
|
||||
|
||||
SW.Send(ent->SubjectElement());
|
||||
|
||||
// --- own field : subject_element_value ---
|
||||
|
||||
SW.Send(ent->SubjectElementValue());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWDocumentUsageConstraint::Share(const Handle(StepBasic_DocumentUsageConstraint)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
iter.AddItem (ent->Source());
|
||||
}
|
30
src/RWStepBasic/RWStepBasic_RWEffectivity.cdl
Executable file
30
src/RWStepBasic/RWStepBasic_RWEffectivity.cdl
Executable file
@@ -0,0 +1,30 @@
|
||||
-- File: Effectivity.cdl
|
||||
-- Created: Mon Dec 4 12:02:29 1995
|
||||
-- Author: EXPRESS->CDL V0.2 Translator
|
||||
-- Copyright: Matra-Datavision 1993
|
||||
|
||||
|
||||
|
||||
|
||||
class RWEffectivity from RWStepBasic
|
||||
|
||||
---Purpose : Read & Write Module for Effectivity
|
||||
|
||||
uses Check from Interface,
|
||||
StepReaderData from StepData,
|
||||
StepWriter from StepData,
|
||||
Effectivity from StepBasic,
|
||||
EntityIterator from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns RWEffectivity;
|
||||
|
||||
ReadStep (me; data : StepReaderData; num : Integer;
|
||||
ach : in out Check; ent : mutable Effectivity from StepBasic);
|
||||
|
||||
WriteStep (me; SW : in out StepWriter; ent : Effectivity from StepBasic);
|
||||
|
||||
Share(me; ent : Effectivity from StepBasic; iter : in out EntityIterator);
|
||||
|
||||
end RWEffectivity;
|
52
src/RWStepBasic/RWStepBasic_RWEffectivity.cxx
Executable file
52
src/RWStepBasic/RWStepBasic_RWEffectivity.cxx
Executable file
@@ -0,0 +1,52 @@
|
||||
|
||||
#include <RWStepBasic_RWEffectivity.ixx>
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
|
||||
#include <StepBasic_Effectivity.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
|
||||
RWStepBasic_RWEffectivity::RWStepBasic_RWEffectivity () {}
|
||||
|
||||
void RWStepBasic_RWEffectivity::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepBasic_Effectivity)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"effectivity")) return;
|
||||
|
||||
// --- own field : id ---
|
||||
|
||||
Handle(TCollection_HAsciiString) aId;
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
|
||||
data->ReadString (num,1,"id",ach,aId);
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aId);
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWEffectivity::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepBasic_Effectivity)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : id ---
|
||||
|
||||
SW.Send(ent->Id());
|
||||
}
|
||||
|
||||
|
||||
void RWStepBasic_RWEffectivity::Share(const Handle(StepBasic_Effectivity)& ent, Interface_EntityIterator& iter) const
|
||||
{
|
||||
}
|
||||
|
35
src/RWStepBasic/RWStepBasic_RWEffectivityAssignment.cdl
Executable file
35
src/RWStepBasic/RWStepBasic_RWEffectivityAssignment.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: RWStepBasic_RWEffectivityAssignment.cdl
|
||||
-- Created: Wed May 10 15:09:06 2000
|
||||
-- Author: Andrey BETENEV
|
||||
-- Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1
|
||||
-- Copyright: Matra Datavision 2000
|
||||
|
||||
class RWEffectivityAssignment from RWStepBasic
|
||||
|
||||
---Purpose: Read & Write tool for EffectivityAssignment
|
||||
|
||||
uses
|
||||
Check from Interface,
|
||||
StepWriter from StepData,
|
||||
StepReaderData from StepData,
|
||||
EntityIterator from Interface,
|
||||
EffectivityAssignment from StepBasic
|
||||
|
||||
is
|
||||
Create returns RWEffectivityAssignment from RWStepBasic;
|
||||
---Purpose: Empty constructor
|
||||
|
||||
ReadStep (me; data: StepReaderData from StepData; num: Integer;
|
||||
ach : in out Check from Interface;
|
||||
ent : EffectivityAssignment from StepBasic);
|
||||
---Purpose: Reads EffectivityAssignment
|
||||
|
||||
WriteStep (me; SW: in out StepWriter from StepData;
|
||||
ent: EffectivityAssignment from StepBasic);
|
||||
---Purpose: Writes EffectivityAssignment
|
||||
|
||||
Share (me; ent : EffectivityAssignment from StepBasic;
|
||||
iter: in out EntityIterator from Interface);
|
||||
---Purpose: Fills data for graph (shared items)
|
||||
|
||||
end RWEffectivityAssignment;
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user