mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Coding - Apply .clang-format formatting #286
Update empty method guards to new style with regex (see PR). Used clang-format 18.1.8. New actions to validate code formatting is added. Update .clang-format with disabling of include sorting. It is temporary changes, then include will be sorted. Apply formatting for /src and /tools folder. The files with .hxx,.cxx,.lxx,.h,.pxx,.hpp,*.cpp extensions.
This commit is contained in:
@@ -33,7 +33,7 @@ void RWStepAP214::Init()
|
||||
THE_RWStepAP214_init = 1;
|
||||
RWHeaderSection::Init();
|
||||
Handle(StepAP214_Protocol) proto = StepAP214::Protocol();
|
||||
Interface_GeneralLib::SetGlobal (new RWStepAP214_GeneralModule,proto);
|
||||
Interface_ReaderLib::SetGlobal (new RWStepAP214_ReadWriteModule,proto);
|
||||
StepData_WriterLib::SetGlobal (new RWStepAP214_ReadWriteModule,proto);
|
||||
Interface_GeneralLib::SetGlobal(new RWStepAP214_GeneralModule, proto);
|
||||
Interface_ReaderLib::SetGlobal(new RWStepAP214_ReadWriteModule, proto);
|
||||
StepData_WriterLib::SetGlobal(new RWStepAP214_ReadWriteModule, proto);
|
||||
}
|
||||
|
@@ -21,19 +21,13 @@
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
|
||||
|
||||
|
||||
class RWStepAP214
|
||||
class RWStepAP214
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! enforced the initialisation of the libraries
|
||||
Standard_HIDDEN static void Init();
|
||||
|
||||
};
|
||||
|
||||
#endif // _RWStepAP214_HeaderFile
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -29,7 +29,6 @@ class Interface_Check;
|
||||
class Interface_CopyTool;
|
||||
class TCollection_HAsciiString;
|
||||
|
||||
|
||||
class RWStepAP214_GeneralModule;
|
||||
DEFINE_STANDARD_HANDLE(RWStepAP214_GeneralModule, StepData_GeneralModule)
|
||||
|
||||
@@ -40,52 +39,48 @@ class RWStepAP214_GeneralModule : public StepData_GeneralModule
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a GeneralModule
|
||||
Standard_HIDDEN RWStepAP214_GeneralModule();
|
||||
|
||||
|
||||
//! Specific filling of the list of Entities shared by an Entity
|
||||
//! <ent>, according to a Case Number <CN> (provided by StepAP214
|
||||
//! Protocol).
|
||||
Standard_HIDDEN void FillSharedCase (const Standard_Integer CN, const Handle(Standard_Transient)& ent, Interface_EntityIterator& iter) const Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN void FillSharedCase(const Standard_Integer CN,
|
||||
const Handle(Standard_Transient)& ent,
|
||||
Interface_EntityIterator& iter) const Standard_OVERRIDE;
|
||||
|
||||
//! Specific Checking of an Entity <ent>
|
||||
Standard_HIDDEN void CheckCase (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN void CheckCase(const Standard_Integer CN,
|
||||
const Handle(Standard_Transient)& ent,
|
||||
const Interface_ShareTool& shares,
|
||||
Handle(Interface_Check)& ach) const Standard_OVERRIDE;
|
||||
|
||||
//! Specific Copy ("Deep") from <entfrom> to <entto> (same type)
|
||||
//! by using a CopyTool which provides its working Map.
|
||||
//! Use method Transferred from CopyTool to work
|
||||
Standard_HIDDEN void CopyCase (const Standard_Integer CN, const Handle(Standard_Transient)& entfrom, const Handle(Standard_Transient)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN virtual Standard_Integer CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN void CopyCase(const Standard_Integer CN,
|
||||
const Handle(Standard_Transient)& entfrom,
|
||||
const Handle(Standard_Transient)& entto,
|
||||
Interface_CopyTool& TC) const Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN Standard_Boolean NewVoid(const Standard_Integer CN,
|
||||
Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN virtual Standard_Integer CategoryNumber(const Standard_Integer CN,
|
||||
const Handle(Standard_Transient)& ent,
|
||||
const Interface_ShareTool& shares) const
|
||||
Standard_OVERRIDE;
|
||||
|
||||
//! Returns the name of a STEP Entity according to its type
|
||||
Standard_HIDDEN virtual Handle(TCollection_HAsciiString) Name (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
|
||||
Standard_HIDDEN virtual Handle(TCollection_HAsciiString) Name(
|
||||
const Standard_Integer CN,
|
||||
const Handle(Standard_Transient)& ent,
|
||||
const Interface_ShareTool& shares) const Standard_OVERRIDE;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(RWStepAP214_GeneralModule,StepData_GeneralModule)
|
||||
DEFINE_STANDARD_RTTIEXT(RWStepAP214_GeneralModule, StepData_GeneralModule)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_GeneralModule_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAppliedApprovalAssignment.pxx"
|
||||
@@ -22,74 +21,80 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAppliedApprovalAssignment::RWStepAP214_RWAppliedApprovalAssignment () {}
|
||||
RWStepAP214_RWAppliedApprovalAssignment::RWStepAP214_RWAppliedApprovalAssignment() {}
|
||||
|
||||
void RWStepAP214_RWAppliedApprovalAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedApprovalAssignment)& ent) const
|
||||
void RWStepAP214_RWAppliedApprovalAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedApprovalAssignment)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,2,ach,"applied_approval_assignment")) return;
|
||||
|
||||
|
||||
if (!data->CheckNbParams(num, 2, ach, "applied_approval_assignment"))
|
||||
return;
|
||||
|
||||
// --- inherited field : assignedApproval ---
|
||||
|
||||
|
||||
Handle(StepBasic_Approval) aAssignedApproval;
|
||||
data->ReadEntity(num, 1,"assigned_approval", ach, STANDARD_TYPE(StepBasic_Approval), aAssignedApproval);
|
||||
data->ReadEntity(num,
|
||||
1,
|
||||
"assigned_approval",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_Approval),
|
||||
aAssignedApproval);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
|
||||
Handle(StepAP214_HArray1OfApprovalItem) aItems;
|
||||
StepAP214_ApprovalItem aItemsItem;
|
||||
Standard_Integer nsub2;
|
||||
if (data->ReadSubList (num,2,"items",ach,nsub2)) {
|
||||
StepAP214_ApprovalItem aItemsItem;
|
||||
Standard_Integer nsub2;
|
||||
if (data->ReadSubList(num, 2, "items", ach, nsub2))
|
||||
{
|
||||
Standard_Integer nb2 = data->NbParams(nsub2);
|
||||
aItems = new StepAP214_HArray1OfApprovalItem (1, nb2);
|
||||
for (Standard_Integer i2 = 1; i2 <= nb2; i2 ++) {
|
||||
Standard_Boolean stat2 = data->ReadEntity
|
||||
(nsub2,i2,"items",ach,aItemsItem);
|
||||
if (stat2) aItems->SetValue(i2,aItemsItem);
|
||||
aItems = new StepAP214_HArray1OfApprovalItem(1, nb2);
|
||||
for (Standard_Integer i2 = 1; i2 <= nb2; i2++)
|
||||
{
|
||||
Standard_Boolean stat2 = data->ReadEntity(nsub2, i2, "items", ach, aItemsItem);
|
||||
if (stat2)
|
||||
aItems->SetValue(i2, aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedApproval, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAppliedApprovalAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedApprovalAssignment)& ent) const
|
||||
void RWStepAP214_RWAppliedApprovalAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedApprovalAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedApproval ---
|
||||
|
||||
|
||||
SW.Send(ent->AssignedApproval());
|
||||
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i2 = 1; i2 <= ent->NbItems(); i2 ++) {
|
||||
for (Standard_Integer i2 = 1; i2 <= ent->NbItems(); i2++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i2).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAppliedApprovalAssignment::Share(const Handle(StepAP214_AppliedApprovalAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAppliedApprovalAssignment::Share(
|
||||
const Handle(StepAP214_AppliedApprovalAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
|
||||
iter.GetOneItem(ent->AssignedApproval());
|
||||
Standard_Integer nbElem2 = ent->NbItems();
|
||||
for (Standard_Integer is2=1; is2<=nbElem2; is2 ++) {
|
||||
for (Standard_Integer is2 = 1; is2 <= nbElem2; is2++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is2).Value());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@@ -28,44 +28,27 @@ class StepAP214_AppliedApprovalAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AppliedApprovalAssignment
|
||||
class RWStepAP214_RWAppliedApprovalAssignment
|
||||
class RWStepAP214_RWAppliedApprovalAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAppliedApprovalAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AppliedApprovalAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AppliedApprovalAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AppliedApprovalAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedApprovalAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedApprovalAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AppliedApprovalAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAppliedApprovalAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//create s4134 from CC2 to DIS
|
||||
// create s4134 from CC2 to DIS
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
@@ -24,61 +24,66 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAppliedDateAndTimeAssignment::RWStepAP214_RWAppliedDateAndTimeAssignment () {}
|
||||
RWStepAP214_RWAppliedDateAndTimeAssignment::RWStepAP214_RWAppliedDateAndTimeAssignment() {}
|
||||
|
||||
void RWStepAP214_RWAppliedDateAndTimeAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedDateAndTimeAssignment)& ent) const
|
||||
void RWStepAP214_RWAppliedDateAndTimeAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedDateAndTimeAssignment)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"applied_date_and_time_assignment")) return;
|
||||
|
||||
if (!data->CheckNbParams(num, 3, ach, "applied_date_and_time_assignment"))
|
||||
return;
|
||||
|
||||
// --- inherited field : assignedDateAndTime ---
|
||||
|
||||
|
||||
Handle(StepBasic_DateAndTime) aAssignedDateAndTime;
|
||||
data->ReadEntity(num, 1,"assigned_date_and_time", ach, STANDARD_TYPE(StepBasic_DateAndTime), aAssignedDateAndTime);
|
||||
|
||||
data->ReadEntity(num,
|
||||
1,
|
||||
"assigned_date_and_time",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_DateAndTime),
|
||||
aAssignedDateAndTime);
|
||||
|
||||
// --- inherited field : role ---
|
||||
|
||||
|
||||
Handle(StepBasic_DateTimeRole) aRole;
|
||||
data->ReadEntity(num, 2,"role", ach, STANDARD_TYPE(StepBasic_DateTimeRole), aRole);
|
||||
|
||||
data->ReadEntity(num, 2, "role", ach, STANDARD_TYPE(StepBasic_DateTimeRole), aRole);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
|
||||
Handle(StepAP214_HArray1OfDateAndTimeItem) aItems;
|
||||
StepAP214_DateAndTimeItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num,3,"items",ach,nsub3)) {
|
||||
StepAP214_DateAndTimeItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num, 3, "items", ach, nsub3))
|
||||
{
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfDateAndTimeItem (1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
|
||||
Standard_Boolean stat3 = data->ReadEntity
|
||||
(nsub3,i3,"items",ach,aItemsItem);
|
||||
if (stat3) aItems->SetValue(i3,aItemsItem);
|
||||
aItems = new StepAP214_HArray1OfDateAndTimeItem(1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3++)
|
||||
{
|
||||
Standard_Boolean stat3 = data->ReadEntity(nsub3, i3, "items", ach, aItemsItem);
|
||||
if (stat3)
|
||||
aItems->SetValue(i3, aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedDateAndTime, aRole, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAppliedDateAndTimeAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedDateAndTimeAssignment)& ent) const
|
||||
void RWStepAP214_RWAppliedDateAndTimeAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedDateAndTimeAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedDateAndTime ---
|
||||
|
||||
|
||||
SW.Send(ent->AssignedDateAndTime());
|
||||
|
||||
|
||||
// --- inherited field role ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
@@ -86,22 +91,23 @@ void RWStepAP214_RWAppliedDateAndTimeAssignment::WriteStep
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3 ++) {
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAppliedDateAndTimeAssignment::Share(const Handle(StepAP214_AppliedDateAndTimeAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAppliedDateAndTimeAssignment::Share(
|
||||
const Handle(StepAP214_AppliedDateAndTimeAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedDateAndTime());
|
||||
iter.GetOneItem(ent->Role());
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3=1; is3<=nbElem3; is3 ++) {
|
||||
for (Standard_Integer is3 = 1; is3 <= nbElem3; is3++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@@ -28,44 +28,27 @@ class StepAP214_AppliedDateAndTimeAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AppliedDateAndTimeAssignment
|
||||
class RWStepAP214_RWAppliedDateAndTimeAssignment
|
||||
class RWStepAP214_RWAppliedDateAndTimeAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAppliedDateAndTimeAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AppliedDateAndTimeAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AppliedDateAndTimeAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AppliedDateAndTimeAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedDateAndTimeAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedDateAndTimeAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AppliedDateAndTimeAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAppliedDateAndTimeAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAppliedDateAssignment.pxx"
|
||||
@@ -23,84 +22,84 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAppliedDateAssignment::RWStepAP214_RWAppliedDateAssignment () {}
|
||||
RWStepAP214_RWAppliedDateAssignment::RWStepAP214_RWAppliedDateAssignment() {}
|
||||
|
||||
void RWStepAP214_RWAppliedDateAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedDateAssignment)& ent) const
|
||||
void RWStepAP214_RWAppliedDateAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedDateAssignment)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"applied_date_assignment")) return;
|
||||
|
||||
|
||||
if (!data->CheckNbParams(num, 3, ach, "applied_date_assignment"))
|
||||
return;
|
||||
|
||||
// --- inherited field : assignedDate ---
|
||||
|
||||
|
||||
Handle(StepBasic_Date) aAssignedDate;
|
||||
data->ReadEntity(num, 1,"assigned_date", ach, STANDARD_TYPE(StepBasic_Date), aAssignedDate);
|
||||
|
||||
data->ReadEntity(num, 1, "assigned_date", ach, STANDARD_TYPE(StepBasic_Date), aAssignedDate);
|
||||
|
||||
// --- inherited field : role ---
|
||||
|
||||
|
||||
Handle(StepBasic_DateRole) aRole;
|
||||
data->ReadEntity(num, 2,"role", ach, STANDARD_TYPE(StepBasic_DateRole), aRole);
|
||||
data->ReadEntity(num, 2, "role", ach, STANDARD_TYPE(StepBasic_DateRole), aRole);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
Handle(StepAP214_HArray1OfDateItem) aItems;
|
||||
StepAP214_DateItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num,3,"items",ach,nsub3)) {
|
||||
StepAP214_DateItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num, 3, "items", ach, nsub3))
|
||||
{
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfDateItem (1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
|
||||
Standard_Boolean stat3 = data->ReadEntity
|
||||
(nsub3,i3,"items",ach,aItemsItem);
|
||||
if (stat3) aItems->SetValue(i3,aItemsItem);
|
||||
aItems = new StepAP214_HArray1OfDateItem(1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3++)
|
||||
{
|
||||
Standard_Boolean stat3 = data->ReadEntity(nsub3, i3, "items", ach, aItemsItem);
|
||||
if (stat3)
|
||||
aItems->SetValue(i3, aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedDate, aRole, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAppliedDateAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedDateAssignment)& ent) const
|
||||
void RWStepAP214_RWAppliedDateAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedDateAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedDate ---
|
||||
|
||||
|
||||
SW.Send(ent->AssignedDate());
|
||||
|
||||
|
||||
// --- inherited field role ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3 ++) {
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAppliedDateAssignment::Share(const Handle(StepAP214_AppliedDateAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAppliedDateAssignment::Share(const Handle(StepAP214_AppliedDateAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedDate());
|
||||
iter.GetOneItem(ent->Role());
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3=1; is3<=nbElem3; is3 ++) {
|
||||
for (Standard_Integer is3 = 1; is3 <= nbElem3; is3++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@@ -28,44 +28,27 @@ class StepAP214_AppliedDateAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AppliedDateAssignment
|
||||
class RWStepAP214_RWAppliedDateAssignment
|
||||
class RWStepAP214_RWAppliedDateAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAppliedDateAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AppliedDateAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AppliedDateAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AppliedDateAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedDateAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedDateAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AppliedDateAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAppliedDateAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAppliedDocumentReference.pxx"
|
||||
@@ -23,76 +22,79 @@
|
||||
#include <StepData_StepWriter.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
RWStepAP214_RWAppliedDocumentReference::RWStepAP214_RWAppliedDocumentReference () { }
|
||||
RWStepAP214_RWAppliedDocumentReference::RWStepAP214_RWAppliedDocumentReference() {}
|
||||
|
||||
void RWStepAP214_RWAppliedDocumentReference::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedDocumentReference)& ent) const
|
||||
void RWStepAP214_RWAppliedDocumentReference::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedDocumentReference)& ent) const
|
||||
{
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"applied_document_reference")) return;
|
||||
|
||||
|
||||
if (!data->CheckNbParams(num, 3, ach, "applied_document_reference"))
|
||||
return;
|
||||
|
||||
// --- inherited field : assigned_document
|
||||
|
||||
|
||||
Handle(StepBasic_Document) adoc;
|
||||
data->ReadEntity
|
||||
(num, 1,"assigned_document", ach, STANDARD_TYPE(StepBasic_Document), adoc);
|
||||
|
||||
data->ReadEntity(num, 1, "assigned_document", ach, STANDARD_TYPE(StepBasic_Document), adoc);
|
||||
|
||||
// --- inherited field : source ---
|
||||
|
||||
Handle(TCollection_HAsciiString) asource;
|
||||
data->ReadString (num,2,"source",ach,asource);
|
||||
|
||||
|
||||
data->ReadString(num, 2, "source", ach, asource);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
|
||||
Handle(StepAP214_HArray1OfDocumentReferenceItem) aItems;
|
||||
StepAP214_DocumentReferenceItem anItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList (num,3,"items",ach,nsub3)) {
|
||||
StepAP214_DocumentReferenceItem anItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num, 3, "items", ach, nsub3))
|
||||
{
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfDocumentReferenceItem (1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
|
||||
Standard_Boolean stat3 = data->ReadEntity
|
||||
(nsub3, i3,"item", ach, anItem);
|
||||
if (stat3) aItems->SetValue(i3, anItem);
|
||||
aItems = new StepAP214_HArray1OfDocumentReferenceItem(1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3++)
|
||||
{
|
||||
Standard_Boolean stat3 = data->ReadEntity(nsub3, i3, "item", ach, anItem);
|
||||
if (stat3)
|
||||
aItems->SetValue(i3, anItem);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
ent->Init (adoc,asource,aItems);
|
||||
|
||||
ent->Init(adoc, asource, aItems);
|
||||
}
|
||||
|
||||
void RWStepAP214_RWAppliedDocumentReference::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedDocumentReference)& ent) const
|
||||
void RWStepAP214_RWAppliedDocumentReference::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedDocumentReference)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field : assigned_document ---
|
||||
|
||||
|
||||
SW.Send(ent->AssignedDocument());
|
||||
|
||||
|
||||
// --- inherited field : source ---
|
||||
|
||||
SW.Send(ent->Source());
|
||||
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3 ++) {
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAppliedDocumentReference::Share(const Handle(StepAP214_AppliedDocumentReference)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAppliedDocumentReference::Share(
|
||||
const Handle(StepAP214_AppliedDocumentReference)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
iter.AddItem (ent->AssignedDocument());
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3 ++)
|
||||
iter.AddItem (ent->ItemsValue(i3).Value());
|
||||
iter.AddItem(ent->AssignedDocument());
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3++)
|
||||
iter.AddItem(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
|
@@ -28,44 +28,27 @@ class StepAP214_AppliedDocumentReference;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AppliedDocumentReference
|
||||
class RWStepAP214_RWAppliedDocumentReference
|
||||
class RWStepAP214_RWAppliedDocumentReference
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAppliedDocumentReference();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AppliedDocumentReference)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AppliedDocumentReference)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AppliedDocumentReference)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedDocumentReference)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedDocumentReference)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AppliedDocumentReference)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAppliedDocumentReference_HeaderFile
|
||||
|
@@ -26,51 +26,65 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepAP214_RWAppliedExternalIdentificationAssignment
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
RWStepAP214_RWAppliedExternalIdentificationAssignment::RWStepAP214_RWAppliedExternalIdentificationAssignment ()
|
||||
//=================================================================================================
|
||||
|
||||
RWStepAP214_RWAppliedExternalIdentificationAssignment::
|
||||
RWStepAP214_RWAppliedExternalIdentificationAssignment()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWAppliedExternalIdentificationAssignment::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedExternalIdentificationAssignment) &ent) const
|
||||
void RWStepAP214_RWAppliedExternalIdentificationAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedExternalIdentificationAssignment)& ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,4,ach,"applied_external_identification_assignment") ) return;
|
||||
if (!data->CheckNbParams(num, 4, ach, "applied_external_identification_assignment"))
|
||||
return;
|
||||
|
||||
// Inherited fields of IdentificationAssignment
|
||||
|
||||
Handle(TCollection_HAsciiString) aIdentificationAssignment_AssignedId;
|
||||
data->ReadString (num, 1, "identification_assignment.assigned_id", ach, aIdentificationAssignment_AssignedId);
|
||||
data->ReadString(num,
|
||||
1,
|
||||
"identification_assignment.assigned_id",
|
||||
ach,
|
||||
aIdentificationAssignment_AssignedId);
|
||||
|
||||
Handle(StepBasic_IdentificationRole) aIdentificationAssignment_Role;
|
||||
data->ReadEntity (num, 2, "identification_assignment.role", ach, STANDARD_TYPE(StepBasic_IdentificationRole), aIdentificationAssignment_Role);
|
||||
data->ReadEntity(num,
|
||||
2,
|
||||
"identification_assignment.role",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_IdentificationRole),
|
||||
aIdentificationAssignment_Role);
|
||||
|
||||
// Inherited fields of ExternalIdentificationAssignment
|
||||
|
||||
Handle(StepBasic_ExternalSource) aExternalIdentificationAssignment_Source;
|
||||
data->ReadEntity (num, 3, "external_identification_assignment.source", ach, STANDARD_TYPE(StepBasic_ExternalSource), aExternalIdentificationAssignment_Source);
|
||||
data->ReadEntity(num,
|
||||
3,
|
||||
"external_identification_assignment.source",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_ExternalSource),
|
||||
aExternalIdentificationAssignment_Source);
|
||||
|
||||
// Own fields of AppliedExternalIdentificationAssignment
|
||||
|
||||
Handle(StepAP214_HArray1OfExternalIdentificationItem) aItems;
|
||||
Standard_Integer sub4 = 0;
|
||||
if ( data->ReadSubList (num, 4, "items", ach, sub4) ) {
|
||||
Standard_Integer sub4 = 0;
|
||||
if (data->ReadSubList(num, 4, "items", ach, sub4))
|
||||
{
|
||||
Standard_Integer num2 = sub4;
|
||||
Standard_Integer nb0 = data->NbParams(num2);
|
||||
aItems = new StepAP214_HArray1OfExternalIdentificationItem (1, nb0);
|
||||
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
|
||||
Standard_Integer nb0 = data->NbParams(num2);
|
||||
aItems = new StepAP214_HArray1OfExternalIdentificationItem(1, nb0);
|
||||
for (Standard_Integer i0 = 1; i0 <= nb0; i0++)
|
||||
{
|
||||
StepAP214_ExternalIdentificationItem anIt0;
|
||||
data->ReadEntity (num2, i0, "items", ach, anIt0);
|
||||
data->ReadEntity(num2, i0, "items", ach, anIt0);
|
||||
aItems->SetValue(i0, anIt0);
|
||||
}
|
||||
}
|
||||
@@ -82,56 +96,54 @@ void RWStepAP214_RWAppliedExternalIdentificationAssignment::ReadStep (const Hand
|
||||
aItems);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWAppliedExternalIdentificationAssignment::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedExternalIdentificationAssignment) &ent) const
|
||||
void RWStepAP214_RWAppliedExternalIdentificationAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedExternalIdentificationAssignment)& ent) const
|
||||
{
|
||||
|
||||
// Inherited fields of IdentificationAssignment
|
||||
|
||||
SW.Send (ent->StepBasic_IdentificationAssignment::AssignedId());
|
||||
SW.Send(ent->StepBasic_IdentificationAssignment::AssignedId());
|
||||
|
||||
SW.Send (ent->StepBasic_IdentificationAssignment::Role());
|
||||
SW.Send(ent->StepBasic_IdentificationAssignment::Role());
|
||||
|
||||
// Inherited fields of ExternalIdentificationAssignment
|
||||
|
||||
SW.Send (ent->StepBasic_ExternalIdentificationAssignment::Source());
|
||||
SW.Send(ent->StepBasic_ExternalIdentificationAssignment::Source());
|
||||
|
||||
// Own fields of AppliedExternalIdentificationAssignment
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3=1; i3 <= ent->Items()->Length(); i3++ ) {
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->Items()->Length(); i3++)
|
||||
{
|
||||
StepAP214_ExternalIdentificationItem Var0 = ent->Items()->Value(i3);
|
||||
SW.Send (Var0.Value());
|
||||
SW.Send(Var0.Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWAppliedExternalIdentificationAssignment::Share (const Handle(StepAP214_AppliedExternalIdentificationAssignment) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAppliedExternalIdentificationAssignment::Share(
|
||||
const Handle(StepAP214_AppliedExternalIdentificationAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Inherited fields of IdentificationAssignment
|
||||
|
||||
iter.AddItem (ent->StepBasic_IdentificationAssignment::Role());
|
||||
iter.AddItem(ent->StepBasic_IdentificationAssignment::Role());
|
||||
|
||||
// Inherited fields of ExternalIdentificationAssignment
|
||||
|
||||
iter.AddItem (ent->StepBasic_ExternalIdentificationAssignment::Source());
|
||||
iter.AddItem(ent->StepBasic_ExternalIdentificationAssignment::Source());
|
||||
|
||||
// Own fields of AppliedExternalIdentificationAssignment
|
||||
|
||||
for (Standard_Integer i3=1; i3 <= ent->Items()->Length(); i3++ ) {
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->Items()->Length(); i3++)
|
||||
{
|
||||
StepAP214_ExternalIdentificationItem Var0 = ent->Items()->Value(i3);
|
||||
iter.AddItem (Var0.Value());
|
||||
iter.AddItem(Var0.Value());
|
||||
}
|
||||
}
|
||||
|
@@ -27,48 +27,33 @@ class StepAP214_AppliedExternalIdentificationAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write tool for AppliedExternalIdentificationAssignment
|
||||
class RWStepAP214_RWAppliedExternalIdentificationAssignment
|
||||
class RWStepAP214_RWAppliedExternalIdentificationAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Empty constructor
|
||||
Standard_HIDDEN RWStepAP214_RWAppliedExternalIdentificationAssignment();
|
||||
|
||||
|
||||
//! Reads AppliedExternalIdentificationAssignment
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AppliedExternalIdentificationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedExternalIdentificationAssignment)& ent) const;
|
||||
|
||||
//! Writes AppliedExternalIdentificationAssignment
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AppliedExternalIdentificationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedExternalIdentificationAssignment)& ent) const;
|
||||
|
||||
//! Fills data for graph (shared items)
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AppliedExternalIdentificationAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AppliedExternalIdentificationAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAppliedExternalIdentificationAssignment_HeaderFile
|
||||
|
@@ -25,45 +25,47 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepAP214_RWAppliedGroupAssignment
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
RWStepAP214_RWAppliedGroupAssignment::RWStepAP214_RWAppliedGroupAssignment ()
|
||||
{
|
||||
}
|
||||
//=================================================================================================
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
RWStepAP214_RWAppliedGroupAssignment::RWStepAP214_RWAppliedGroupAssignment() {}
|
||||
|
||||
void RWStepAP214_RWAppliedGroupAssignment::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedGroupAssignment) &ent) const
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWAppliedGroupAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedGroupAssignment)& ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,2,ach,"applied_group_assignment") ) return;
|
||||
if (!data->CheckNbParams(num, 2, ach, "applied_group_assignment"))
|
||||
return;
|
||||
|
||||
// Inherited fields of GroupAssignment
|
||||
|
||||
Handle(StepBasic_Group) aGroupAssignment_AssignedGroup;
|
||||
data->ReadEntity (num, 1, "group_assignment.assigned_group", ach, STANDARD_TYPE(StepBasic_Group), aGroupAssignment_AssignedGroup);
|
||||
data->ReadEntity(num,
|
||||
1,
|
||||
"group_assignment.assigned_group",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_Group),
|
||||
aGroupAssignment_AssignedGroup);
|
||||
|
||||
// Own fields of AppliedGroupAssignment
|
||||
|
||||
Handle(StepAP214_HArray1OfGroupItem) anItems;
|
||||
Standard_Integer sub2 = 0;
|
||||
if ( data->ReadSubList (num, 2, "items", ach, sub2) ) {
|
||||
Standard_Integer sub2 = 0;
|
||||
if (data->ReadSubList(num, 2, "items", ach, sub2))
|
||||
{
|
||||
Standard_Integer num2 = sub2;
|
||||
Standard_Integer nb0 = data->NbParams(num2);
|
||||
Standard_Integer nb0 = data->NbParams(num2);
|
||||
if (nb0)
|
||||
{
|
||||
anItems = new StepAP214_HArray1OfGroupItem (1, nb0);
|
||||
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
|
||||
anItems = new StepAP214_HArray1OfGroupItem(1, nb0);
|
||||
for (Standard_Integer i0 = 1; i0 <= nb0; i0++)
|
||||
{
|
||||
StepAP214_GroupItem anIt0;
|
||||
data->ReadEntity (num2, i0, "items", ach, anIt0);
|
||||
data->ReadEntity(num2, i0, "items", ach, anIt0);
|
||||
anItems->SetValue(i0, anIt0);
|
||||
}
|
||||
}
|
||||
@@ -72,51 +74,49 @@ void RWStepAP214_RWAppliedGroupAssignment::ReadStep (const Handle(StepData_StepR
|
||||
ent->Init(aGroupAssignment_AssignedGroup, anItems);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWAppliedGroupAssignment::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedGroupAssignment) &ent) const
|
||||
void RWStepAP214_RWAppliedGroupAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedGroupAssignment)& ent) const
|
||||
{
|
||||
|
||||
// Inherited fields of GroupAssignment
|
||||
|
||||
SW.Send (ent->StepBasic_GroupAssignment::AssignedGroup());
|
||||
SW.Send(ent->StepBasic_GroupAssignment::AssignedGroup());
|
||||
|
||||
// Own fields of AppliedGroupAssignment
|
||||
|
||||
SW.OpenSub();
|
||||
if (!ent->Items().IsNull())
|
||||
{
|
||||
for (Standard_Integer i1=1; i1 <= ent->Items()->Length(); i1++ ) {
|
||||
for (Standard_Integer i1 = 1; i1 <= ent->Items()->Length(); i1++)
|
||||
{
|
||||
StepAP214_GroupItem Var0 = ent->Items()->Value(i1);
|
||||
SW.Send (Var0.Value());
|
||||
SW.Send(Var0.Value());
|
||||
}
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWAppliedGroupAssignment::Share (const Handle(StepAP214_AppliedGroupAssignment) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAppliedGroupAssignment::Share(
|
||||
const Handle(StepAP214_AppliedGroupAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Inherited fields of GroupAssignment
|
||||
|
||||
iter.AddItem (ent->StepBasic_GroupAssignment::AssignedGroup());
|
||||
iter.AddItem(ent->StepBasic_GroupAssignment::AssignedGroup());
|
||||
|
||||
// Own fields of AppliedGroupAssignment
|
||||
if (!ent->Items().IsNull())
|
||||
{
|
||||
for (Standard_Integer i2=1; i2 <= ent->Items()->Length(); i2++ ) {
|
||||
for (Standard_Integer i2 = 1; i2 <= ent->Items()->Length(); i2++)
|
||||
{
|
||||
StepAP214_GroupItem Var0 = ent->Items()->Value(i2);
|
||||
iter.AddItem (Var0.Value());
|
||||
iter.AddItem(Var0.Value());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -27,48 +27,31 @@ class StepAP214_AppliedGroupAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write tool for AppliedGroupAssignment
|
||||
class RWStepAP214_RWAppliedGroupAssignment
|
||||
class RWStepAP214_RWAppliedGroupAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Empty constructor
|
||||
Standard_HIDDEN RWStepAP214_RWAppliedGroupAssignment();
|
||||
|
||||
|
||||
//! Reads AppliedGroupAssignment
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AppliedGroupAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedGroupAssignment)& ent) const;
|
||||
|
||||
//! Writes AppliedGroupAssignment
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AppliedGroupAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedGroupAssignment)& ent) const;
|
||||
|
||||
//! Fills data for graph (shared items)
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AppliedGroupAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AppliedGroupAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAppliedGroupAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAppliedOrganizationAssignment.pxx"
|
||||
@@ -23,61 +22,66 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAppliedOrganizationAssignment::RWStepAP214_RWAppliedOrganizationAssignment () {}
|
||||
RWStepAP214_RWAppliedOrganizationAssignment::RWStepAP214_RWAppliedOrganizationAssignment() {}
|
||||
|
||||
void RWStepAP214_RWAppliedOrganizationAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedOrganizationAssignment)& ent) const
|
||||
void RWStepAP214_RWAppliedOrganizationAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedOrganizationAssignment)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"applied_organization_assignment")) return;
|
||||
if (!data->CheckNbParams(num, 3, ach, "applied_organization_assignment"))
|
||||
return;
|
||||
|
||||
// --- inherited field : assignedOrganization ---
|
||||
|
||||
|
||||
Handle(StepBasic_Organization) aAssignedOrganization;
|
||||
data->ReadEntity(num, 1,"assigned_organization", ach, STANDARD_TYPE(StepBasic_Organization), aAssignedOrganization);
|
||||
|
||||
data->ReadEntity(num,
|
||||
1,
|
||||
"assigned_organization",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_Organization),
|
||||
aAssignedOrganization);
|
||||
|
||||
// --- inherited field : role ---
|
||||
|
||||
Handle(StepBasic_OrganizationRole) aRole;
|
||||
data->ReadEntity(num, 2,"role", ach, STANDARD_TYPE(StepBasic_OrganizationRole), aRole);
|
||||
|
||||
data->ReadEntity(num, 2, "role", ach, STANDARD_TYPE(StepBasic_OrganizationRole), aRole);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
Handle(StepAP214_HArray1OfOrganizationItem) aItems;
|
||||
StepAP214_OrganizationItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList (num,3,"items",ach,nsub3)) {
|
||||
StepAP214_OrganizationItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num, 3, "items", ach, nsub3))
|
||||
{
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfOrganizationItem (1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
|
||||
Standard_Boolean stat3 = data->ReadEntity
|
||||
(nsub3,i3,"items",ach,aItemsItem);
|
||||
if (stat3) aItems->SetValue(i3,aItemsItem);
|
||||
aItems = new StepAP214_HArray1OfOrganizationItem(1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3++)
|
||||
{
|
||||
Standard_Boolean stat3 = data->ReadEntity(nsub3, i3, "items", ach, aItemsItem);
|
||||
if (stat3)
|
||||
aItems->SetValue(i3, aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedOrganization, aRole, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAppliedOrganizationAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedOrganizationAssignment)& ent) const
|
||||
void RWStepAP214_RWAppliedOrganizationAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedOrganizationAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedOrganization ---
|
||||
|
||||
SW.Send(ent->AssignedOrganization());
|
||||
|
||||
|
||||
// --- inherited field role ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
@@ -85,22 +89,23 @@ void RWStepAP214_RWAppliedOrganizationAssignment::WriteStep
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3 ++) {
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAppliedOrganizationAssignment::Share(const Handle(StepAP214_AppliedOrganizationAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAppliedOrganizationAssignment::Share(
|
||||
const Handle(StepAP214_AppliedOrganizationAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedOrganization());
|
||||
iter.GetOneItem(ent->Role());
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3=1; is3<=nbElem3; is3 ++) {
|
||||
for (Standard_Integer is3 = 1; is3 <= nbElem3; is3++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@@ -28,44 +28,27 @@ class StepAP214_AppliedOrganizationAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AppliedOrganizationAssignment
|
||||
class RWStepAP214_RWAppliedOrganizationAssignment
|
||||
class RWStepAP214_RWAppliedOrganizationAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAppliedOrganizationAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AppliedOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AppliedOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AppliedOrganizationAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AppliedOrganizationAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAppliedOrganizationAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAppliedPersonAndOrganizationAssignment.pxx"
|
||||
@@ -23,61 +22,69 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAppliedPersonAndOrganizationAssignment::RWStepAP214_RWAppliedPersonAndOrganizationAssignment () {}
|
||||
|
||||
void RWStepAP214_RWAppliedPersonAndOrganizationAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedPersonAndOrganizationAssignment)& ent) const
|
||||
RWStepAP214_RWAppliedPersonAndOrganizationAssignment::
|
||||
RWStepAP214_RWAppliedPersonAndOrganizationAssignment()
|
||||
{
|
||||
}
|
||||
|
||||
void RWStepAP214_RWAppliedPersonAndOrganizationAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedPersonAndOrganizationAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"applied_person_and_organization_assignment")) return;
|
||||
if (!data->CheckNbParams(num, 3, ach, "applied_person_and_organization_assignment"))
|
||||
return;
|
||||
|
||||
// --- inherited field : assignedPersonAndOrganization ---
|
||||
|
||||
|
||||
Handle(StepBasic_PersonAndOrganization) aAssignedPersonAndOrganization;
|
||||
data->ReadEntity(num, 1,"assigned_person_and_organization", ach, STANDARD_TYPE(StepBasic_PersonAndOrganization), aAssignedPersonAndOrganization);
|
||||
|
||||
data->ReadEntity(num,
|
||||
1,
|
||||
"assigned_person_and_organization",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_PersonAndOrganization),
|
||||
aAssignedPersonAndOrganization);
|
||||
|
||||
// --- inherited field : role ---
|
||||
|
||||
|
||||
Handle(StepBasic_PersonAndOrganizationRole) aRole;
|
||||
data->ReadEntity(num, 2,"role", ach, STANDARD_TYPE(StepBasic_PersonAndOrganizationRole), aRole);
|
||||
|
||||
data->ReadEntity(num, 2, "role", ach, STANDARD_TYPE(StepBasic_PersonAndOrganizationRole), aRole);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
|
||||
Handle(StepAP214_HArray1OfPersonAndOrganizationItem) aItems;
|
||||
StepAP214_PersonAndOrganizationItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList (num,3,"items",ach,nsub3)) {
|
||||
StepAP214_PersonAndOrganizationItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num, 3, "items", ach, nsub3))
|
||||
{
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfPersonAndOrganizationItem (1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
|
||||
Standard_Boolean stat3 = data->ReadEntity
|
||||
(nsub3,i3,"items",ach,aItemsItem);
|
||||
if (stat3) aItems->SetValue(i3,aItemsItem);
|
||||
aItems = new StepAP214_HArray1OfPersonAndOrganizationItem(1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3++)
|
||||
{
|
||||
Standard_Boolean stat3 = data->ReadEntity(nsub3, i3, "items", ach, aItemsItem);
|
||||
if (stat3)
|
||||
aItems->SetValue(i3, aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedPersonAndOrganization, aRole, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAppliedPersonAndOrganizationAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedPersonAndOrganizationAssignment)& ent) const
|
||||
void RWStepAP214_RWAppliedPersonAndOrganizationAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedPersonAndOrganizationAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedPersonAndOrganization ---
|
||||
|
||||
SW.Send(ent->AssignedPersonAndOrganization());
|
||||
|
||||
|
||||
// --- inherited field role ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
@@ -85,22 +92,23 @@ void RWStepAP214_RWAppliedPersonAndOrganizationAssignment::WriteStep
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3 ++) {
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAppliedPersonAndOrganizationAssignment::Share(const Handle(StepAP214_AppliedPersonAndOrganizationAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAppliedPersonAndOrganizationAssignment::Share(
|
||||
const Handle(StepAP214_AppliedPersonAndOrganizationAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedPersonAndOrganization());
|
||||
iter.GetOneItem(ent->Role());
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3=1; is3<=nbElem3; is3 ++) {
|
||||
for (Standard_Integer is3 = 1; is3 <= nbElem3; is3++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@@ -28,44 +28,29 @@ class StepAP214_AppliedPersonAndOrganizationAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AppliedPersonAndOrganizationAssignment
|
||||
class RWStepAP214_RWAppliedPersonAndOrganizationAssignment
|
||||
class RWStepAP214_RWAppliedPersonAndOrganizationAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAppliedPersonAndOrganizationAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AppliedPersonAndOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AppliedPersonAndOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AppliedPersonAndOrganizationAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedPersonAndOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedPersonAndOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AppliedPersonAndOrganizationAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAppliedPersonAndOrganizationAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAppliedPresentedItem.pxx"
|
||||
@@ -21,64 +20,64 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAppliedPresentedItem::RWStepAP214_RWAppliedPresentedItem () {}
|
||||
RWStepAP214_RWAppliedPresentedItem::RWStepAP214_RWAppliedPresentedItem() {}
|
||||
|
||||
void RWStepAP214_RWAppliedPresentedItem::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedPresentedItem)& ent) const
|
||||
void RWStepAP214_RWAppliedPresentedItem::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedPresentedItem)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"applied_presented_item")) return;
|
||||
|
||||
if (!data->CheckNbParams(num, 1, ach, "applied_presented_item"))
|
||||
return;
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
|
||||
Handle(StepAP214_HArray1OfPresentedItemSelect) aItems;
|
||||
StepAP214_PresentedItemSelect anent1;
|
||||
Standard_Integer nsub1;
|
||||
if (data->ReadSubList (num,1,"items",ach,nsub1)) {
|
||||
StepAP214_PresentedItemSelect anent1;
|
||||
Standard_Integer nsub1;
|
||||
if (data->ReadSubList(num, 1, "items", ach, nsub1))
|
||||
{
|
||||
Standard_Integer nb1 = data->NbParams(nsub1);
|
||||
aItems = new StepAP214_HArray1OfPresentedItemSelect (1, nb1);
|
||||
for (Standard_Integer i1 = 1; i1 <= nb1; i1 ++) {
|
||||
Standard_Boolean stat1 = data->ReadEntity
|
||||
(nsub1, i1,"items", ach, anent1);
|
||||
if (stat1) aItems->SetValue(i1, anent1);
|
||||
aItems = new StepAP214_HArray1OfPresentedItemSelect(1, nb1);
|
||||
for (Standard_Integer i1 = 1; i1 <= nb1; i1++)
|
||||
{
|
||||
Standard_Boolean stat1 = data->ReadEntity(nsub1, i1, "items", ach, anent1);
|
||||
if (stat1)
|
||||
aItems->SetValue(i1, anent1);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAppliedPresentedItem::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedPresentedItem)& ent) const
|
||||
void RWStepAP214_RWAppliedPresentedItem::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedPresentedItem)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i1 = 1; i1 <= ent->NbItems(); i1 ++) {
|
||||
for (Standard_Integer i1 = 1; i1 <= ent->NbItems(); i1++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i1).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAppliedPresentedItem::Share(const Handle(StepAP214_AppliedPresentedItem)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAppliedPresentedItem::Share(const Handle(StepAP214_AppliedPresentedItem)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
Standard_Integer nbElem1 = ent->NbItems();
|
||||
for (Standard_Integer is1=1; is1<=nbElem1; is1 ++) {
|
||||
for (Standard_Integer is1 = 1; is1 <= nbElem1; is1++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is1).Value());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@@ -28,44 +28,27 @@ class StepAP214_AppliedPresentedItem;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AppliedPresentedItem
|
||||
class RWStepAP214_RWAppliedPresentedItem
|
||||
class RWStepAP214_RWAppliedPresentedItem
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAppliedPresentedItem();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AppliedPresentedItem)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AppliedPresentedItem)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AppliedPresentedItem)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedPresentedItem)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedPresentedItem)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AppliedPresentedItem)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAppliedPresentedItem_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAppliedSecurityClassificationAssignment.pxx"
|
||||
@@ -22,50 +21,58 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAppliedSecurityClassificationAssignment::RWStepAP214_RWAppliedSecurityClassificationAssignment () {}
|
||||
RWStepAP214_RWAppliedSecurityClassificationAssignment::
|
||||
RWStepAP214_RWAppliedSecurityClassificationAssignment()
|
||||
{
|
||||
}
|
||||
|
||||
void RWStepAP214_RWAppliedSecurityClassificationAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedSecurityClassificationAssignment)& ent) const
|
||||
void RWStepAP214_RWAppliedSecurityClassificationAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedSecurityClassificationAssignment)& ent) const
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,2,ach,"applied_security_classification_assignment")) return;
|
||||
|
||||
|
||||
if (!data->CheckNbParams(num, 2, ach, "applied_security_classification_assignment"))
|
||||
return;
|
||||
|
||||
// --- inherited field : assignedSecurityClassification ---
|
||||
|
||||
|
||||
Handle(StepBasic_SecurityClassification) aAssignedSecurityClassification;
|
||||
data->ReadEntity(num, 1,"assigned_security_classification", ach, STANDARD_TYPE(StepBasic_SecurityClassification), aAssignedSecurityClassification);
|
||||
|
||||
data->ReadEntity(num,
|
||||
1,
|
||||
"assigned_security_classification",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_SecurityClassification),
|
||||
aAssignedSecurityClassification);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
|
||||
Handle(StepAP214_HArray1OfSecurityClassificationItem) aItems;
|
||||
StepAP214_SecurityClassificationItem anent2;
|
||||
Standard_Integer nsub2;
|
||||
if (data->ReadSubList (num,2,"items",ach,nsub2)) {
|
||||
StepAP214_SecurityClassificationItem anent2;
|
||||
Standard_Integer nsub2;
|
||||
if (data->ReadSubList(num, 2, "items", ach, nsub2))
|
||||
{
|
||||
Standard_Integer nb2 = data->NbParams(nsub2);
|
||||
aItems = new StepAP214_HArray1OfSecurityClassificationItem (1, nb2);
|
||||
for (Standard_Integer i2 = 1; i2 <= nb2; i2 ++) {
|
||||
Standard_Boolean stat2 = data->ReadEntity
|
||||
(nsub2, i2,"items", ach, anent2);
|
||||
if (stat2) aItems->SetValue(i2, anent2);
|
||||
aItems = new StepAP214_HArray1OfSecurityClassificationItem(1, nb2);
|
||||
for (Standard_Integer i2 = 1; i2 <= nb2; i2++)
|
||||
{
|
||||
Standard_Boolean stat2 = data->ReadEntity(nsub2, i2, "items", ach, anent2);
|
||||
if (stat2)
|
||||
aItems->SetValue(i2, anent2);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedSecurityClassification, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAppliedSecurityClassificationAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedSecurityClassificationAssignment)& ent) const
|
||||
void RWStepAP214_RWAppliedSecurityClassificationAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedSecurityClassificationAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedSecurityClassification ---
|
||||
@@ -75,22 +82,23 @@ void RWStepAP214_RWAppliedSecurityClassificationAssignment::WriteStep
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i2 = 1; i2 <= ent->NbItems(); i2 ++) {
|
||||
for (Standard_Integer i2 = 1; i2 <= ent->NbItems(); i2++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i2).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAppliedSecurityClassificationAssignment::Share(const Handle(StepAP214_AppliedSecurityClassificationAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAppliedSecurityClassificationAssignment::Share(
|
||||
const Handle(StepAP214_AppliedSecurityClassificationAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedSecurityClassification());
|
||||
|
||||
Standard_Integer nbElem2 = ent->NbItems();
|
||||
for (Standard_Integer is2=1; is2<=nbElem2; is2 ++) {
|
||||
for (Standard_Integer is2 = 1; is2 <= nbElem2; is2++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is2).Value());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@@ -28,44 +28,28 @@ class StepAP214_AppliedSecurityClassificationAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
|
||||
class RWStepAP214_RWAppliedSecurityClassificationAssignment
|
||||
class RWStepAP214_RWAppliedSecurityClassificationAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAppliedSecurityClassificationAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AppliedSecurityClassificationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AppliedSecurityClassificationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AppliedSecurityClassificationAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AppliedSecurityClassificationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AppliedSecurityClassificationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AppliedSecurityClassificationAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAppliedSecurityClassificationAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAutoDesignActualDateAndTimeAssignment.pxx"
|
||||
@@ -23,88 +22,95 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAutoDesignActualDateAndTimeAssignment::RWStepAP214_RWAutoDesignActualDateAndTimeAssignment () {}
|
||||
|
||||
void RWStepAP214_RWAutoDesignActualDateAndTimeAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignActualDateAndTimeAssignment)& ent) const
|
||||
RWStepAP214_RWAutoDesignActualDateAndTimeAssignment::
|
||||
RWStepAP214_RWAutoDesignActualDateAndTimeAssignment()
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"auto_design_actual_date_and_time_assignment")) return;
|
||||
|
||||
// --- inherited field : assignedDateAndTime ---
|
||||
|
||||
Handle(StepBasic_DateAndTime) aAssignedDateAndTime;
|
||||
data->ReadEntity(num, 1,"assigned_date_and_time", ach, STANDARD_TYPE(StepBasic_DateAndTime), aAssignedDateAndTime);
|
||||
|
||||
// --- inherited field : role ---
|
||||
|
||||
Handle(StepBasic_DateTimeRole) aRole;
|
||||
data->ReadEntity(num, 2,"role", ach, STANDARD_TYPE(StepBasic_DateTimeRole), aRole);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
Handle(StepAP214_HArray1OfAutoDesignDateAndTimeItem) aItems;
|
||||
StepAP214_AutoDesignDateAndTimeItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num,3,"items",ach,nsub3)) {
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignDateAndTimeItem (1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
|
||||
Standard_Boolean stat3 = data->ReadEntity
|
||||
(nsub3,i3,"items",ach,aItemsItem);
|
||||
if (stat3) aItems->SetValue(i3,aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedDateAndTime, aRole, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignActualDateAndTimeAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignActualDateAndTimeAssignment)& ent) const
|
||||
void RWStepAP214_RWAutoDesignActualDateAndTimeAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignActualDateAndTimeAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedDateAndTime ---
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
SW.Send(ent->AssignedDateAndTime());
|
||||
if (!data->CheckNbParams(num, 3, ach, "auto_design_actual_date_and_time_assignment"))
|
||||
return;
|
||||
|
||||
// --- inherited field role ---
|
||||
// --- inherited field : assignedDateAndTime ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
Handle(StepBasic_DateAndTime) aAssignedDateAndTime;
|
||||
data->ReadEntity(num,
|
||||
1,
|
||||
"assigned_date_and_time",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_DateAndTime),
|
||||
aAssignedDateAndTime);
|
||||
|
||||
// --- own field : items ---
|
||||
// --- inherited field : role ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3 ++) {
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
Handle(StepBasic_DateTimeRole) aRole;
|
||||
data->ReadEntity(num, 2, "role", ach, STANDARD_TYPE(StepBasic_DateTimeRole), aRole);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
Handle(StepAP214_HArray1OfAutoDesignDateAndTimeItem) aItems;
|
||||
StepAP214_AutoDesignDateAndTimeItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num, 3, "items", ach, nsub3))
|
||||
{
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignDateAndTimeItem(1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3++)
|
||||
{
|
||||
Standard_Boolean stat3 = data->ReadEntity(nsub3, i3, "items", ach, aItemsItem);
|
||||
if (stat3)
|
||||
aItems->SetValue(i3, aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
ent->Init(aAssignedDateAndTime, aRole, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignActualDateAndTimeAssignment::Share(const Handle(StepAP214_AutoDesignActualDateAndTimeAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAutoDesignActualDateAndTimeAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignActualDateAndTimeAssignment)& ent) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedDateAndTime());
|
||||
// --- inherited field assignedDateAndTime ---
|
||||
|
||||
SW.Send(ent->AssignedDateAndTime());
|
||||
|
||||
iter.GetOneItem(ent->Role());
|
||||
// --- inherited field role ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3=1; is3<=nbElem3; is3 ++) {
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
void RWStepAP214_RWAutoDesignActualDateAndTimeAssignment::Share(
|
||||
const Handle(StepAP214_AutoDesignActualDateAndTimeAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedDateAndTime());
|
||||
|
||||
iter.GetOneItem(ent->Role());
|
||||
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3 = 1; is3 <= nbElem3; is3++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
}
|
||||
|
@@ -28,44 +28,29 @@ class StepAP214_AutoDesignActualDateAndTimeAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AutoDesignActualDateAndTimeAssignment
|
||||
class RWStepAP214_RWAutoDesignActualDateAndTimeAssignment
|
||||
class RWStepAP214_RWAutoDesignActualDateAndTimeAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAutoDesignActualDateAndTimeAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AutoDesignActualDateAndTimeAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AutoDesignActualDateAndTimeAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AutoDesignActualDateAndTimeAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignActualDateAndTimeAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignActualDateAndTimeAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AutoDesignActualDateAndTimeAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAutoDesignActualDateAndTimeAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAutoDesignActualDateAssignment.pxx"
|
||||
@@ -23,88 +22,87 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAutoDesignActualDateAssignment::RWStepAP214_RWAutoDesignActualDateAssignment () {}
|
||||
RWStepAP214_RWAutoDesignActualDateAssignment::RWStepAP214_RWAutoDesignActualDateAssignment() {}
|
||||
|
||||
void RWStepAP214_RWAutoDesignActualDateAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignActualDateAssignment)& ent) const
|
||||
void RWStepAP214_RWAutoDesignActualDateAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignActualDateAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
if (!data->CheckNbParams(num, 3, ach, "auto_design_actual_date_assignment"))
|
||||
return;
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"auto_design_actual_date_assignment")) return;
|
||||
// --- inherited field : assignedDate ---
|
||||
|
||||
// --- inherited field : assignedDate ---
|
||||
Handle(StepBasic_Date) aAssignedDate;
|
||||
data->ReadEntity(num, 1, "assigned_date", ach, STANDARD_TYPE(StepBasic_Date), aAssignedDate);
|
||||
|
||||
Handle(StepBasic_Date) aAssignedDate;
|
||||
data->ReadEntity(num, 1,"assigned_date", ach, STANDARD_TYPE(StepBasic_Date), aAssignedDate);
|
||||
// --- inherited field : role ---
|
||||
|
||||
// --- inherited field : role ---
|
||||
Handle(StepBasic_DateRole) aRole;
|
||||
data->ReadEntity(num, 2, "role", ach, STANDARD_TYPE(StepBasic_DateRole), aRole);
|
||||
|
||||
Handle(StepBasic_DateRole) aRole;
|
||||
data->ReadEntity(num, 2,"role", ach, STANDARD_TYPE(StepBasic_DateRole), aRole);
|
||||
// --- own field : items ---
|
||||
|
||||
// --- own field : items ---
|
||||
Handle(StepAP214_HArray1OfAutoDesignDatedItem) aItems;
|
||||
StepAP214_AutoDesignDatedItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num, 3, "items", ach, nsub3))
|
||||
{
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignDatedItem(1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3++)
|
||||
{
|
||||
Standard_Boolean stat3 = data->ReadEntity(nsub3, i3, "items", ach, aItemsItem);
|
||||
if (stat3)
|
||||
aItems->SetValue(i3, aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
Handle(StepAP214_HArray1OfAutoDesignDatedItem) aItems;
|
||||
StepAP214_AutoDesignDatedItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num,3,"items",ach,nsub3)) {
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignDatedItem (1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
|
||||
Standard_Boolean stat3 = data->ReadEntity
|
||||
(nsub3,i3,"items",ach,aItemsItem);
|
||||
if (stat3) aItems->SetValue(i3,aItemsItem);
|
||||
}
|
||||
}
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedDate, aRole, aItems);
|
||||
ent->Init(aAssignedDate, aRole, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignActualDateAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignActualDateAssignment)& ent) const
|
||||
void RWStepAP214_RWAutoDesignActualDateAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignActualDateAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedDate ---
|
||||
// --- inherited field assignedDate ---
|
||||
|
||||
SW.Send(ent->AssignedDate());
|
||||
SW.Send(ent->AssignedDate());
|
||||
|
||||
// --- inherited field role ---
|
||||
// --- inherited field role ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
SW.Send(ent->Role());
|
||||
|
||||
// --- own field : items ---
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3 ++) {
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignActualDateAssignment::Share(const Handle(StepAP214_AutoDesignActualDateAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAutoDesignActualDateAssignment::Share(
|
||||
const Handle(StepAP214_AutoDesignActualDateAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedDate());
|
||||
iter.GetOneItem(ent->AssignedDate());
|
||||
|
||||
iter.GetOneItem(ent->Role());
|
||||
|
||||
iter.GetOneItem(ent->Role());
|
||||
|
||||
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3=1; is3<=nbElem3; is3 ++) {
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3 = 1; is3 <= nbElem3; is3++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -28,44 +28,27 @@ class StepAP214_AutoDesignActualDateAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AutoDesignActualDateAssignment
|
||||
class RWStepAP214_RWAutoDesignActualDateAssignment
|
||||
class RWStepAP214_RWAutoDesignActualDateAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAutoDesignActualDateAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AutoDesignActualDateAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AutoDesignActualDateAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AutoDesignActualDateAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignActualDateAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignActualDateAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AutoDesignActualDateAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAutoDesignActualDateAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAutoDesignApprovalAssignment.pxx"
|
||||
@@ -22,76 +21,81 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAutoDesignApprovalAssignment::RWStepAP214_RWAutoDesignApprovalAssignment () {}
|
||||
RWStepAP214_RWAutoDesignApprovalAssignment::RWStepAP214_RWAutoDesignApprovalAssignment() {}
|
||||
|
||||
void RWStepAP214_RWAutoDesignApprovalAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignApprovalAssignment)& ent) const
|
||||
void RWStepAP214_RWAutoDesignApprovalAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignApprovalAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
if (!data->CheckNbParams(num, 2, ach, "auto_design_approval_assignment"))
|
||||
return;
|
||||
|
||||
if (!data->CheckNbParams(num,2,ach,"auto_design_approval_assignment")) return;
|
||||
// --- inherited field : assignedApproval ---
|
||||
|
||||
// --- inherited field : assignedApproval ---
|
||||
Handle(StepBasic_Approval) aAssignedApproval;
|
||||
data->ReadEntity(num,
|
||||
1,
|
||||
"assigned_approval",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_Approval),
|
||||
aAssignedApproval);
|
||||
|
||||
Handle(StepBasic_Approval) aAssignedApproval;
|
||||
data->ReadEntity(num, 1,"assigned_approval", ach, STANDARD_TYPE(StepBasic_Approval), aAssignedApproval);
|
||||
// --- own field : items ---
|
||||
|
||||
// --- own field : items ---
|
||||
Handle(StepAP214_HArray1OfAutoDesignGeneralOrgItem) aItems;
|
||||
StepAP214_AutoDesignGeneralOrgItem aItemsItem;
|
||||
Standard_Integer nsub2;
|
||||
if (data->ReadSubList(num, 2, "items", ach, nsub2))
|
||||
{
|
||||
Standard_Integer nb2 = data->NbParams(nsub2);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignGeneralOrgItem(1, nb2);
|
||||
for (Standard_Integer i2 = 1; i2 <= nb2; i2++)
|
||||
{
|
||||
Standard_Boolean stat2 = data->ReadEntity(nsub2, i2, "items", ach, aItemsItem);
|
||||
if (stat2)
|
||||
aItems->SetValue(i2, aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
Handle(StepAP214_HArray1OfAutoDesignGeneralOrgItem) aItems;
|
||||
StepAP214_AutoDesignGeneralOrgItem aItemsItem;
|
||||
Standard_Integer nsub2;
|
||||
if (data->ReadSubList (num,2,"items",ach,nsub2)) {
|
||||
Standard_Integer nb2 = data->NbParams(nsub2);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignGeneralOrgItem (1, nb2);
|
||||
for (Standard_Integer i2 = 1; i2 <= nb2; i2 ++) {
|
||||
Standard_Boolean stat2 = data->ReadEntity
|
||||
(nsub2,i2,"items",ach,aItemsItem);
|
||||
if (stat2) aItems->SetValue(i2,aItemsItem);
|
||||
}
|
||||
}
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedApproval, aItems);
|
||||
ent->Init(aAssignedApproval, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignApprovalAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignApprovalAssignment)& ent) const
|
||||
void RWStepAP214_RWAutoDesignApprovalAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignApprovalAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedApproval ---
|
||||
// --- inherited field assignedApproval ---
|
||||
|
||||
SW.Send(ent->AssignedApproval());
|
||||
SW.Send(ent->AssignedApproval());
|
||||
|
||||
// --- own field : items ---
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i2 = 1; i2 <= ent->NbItems(); i2 ++) {
|
||||
SW.Send(ent->ItemsValue(i2).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i2 = 1; i2 <= ent->NbItems(); i2++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i2).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignApprovalAssignment::Share(const Handle(StepAP214_AutoDesignApprovalAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAutoDesignApprovalAssignment::Share(
|
||||
const Handle(StepAP214_AutoDesignApprovalAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedApproval());
|
||||
|
||||
|
||||
Standard_Integer nbElem2 = ent->NbItems();
|
||||
for (Standard_Integer is2=1; is2<=nbElem2; is2 ++) {
|
||||
iter.GetOneItem(ent->ItemsValue(is2).Value());
|
||||
}
|
||||
iter.GetOneItem(ent->AssignedApproval());
|
||||
|
||||
Standard_Integer nbElem2 = ent->NbItems();
|
||||
for (Standard_Integer is2 = 1; is2 <= nbElem2; is2++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is2).Value());
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -28,44 +28,27 @@ class StepAP214_AutoDesignApprovalAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AutoDesignApprovalAssignment
|
||||
class RWStepAP214_RWAutoDesignApprovalAssignment
|
||||
class RWStepAP214_RWAutoDesignApprovalAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAutoDesignApprovalAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AutoDesignApprovalAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AutoDesignApprovalAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AutoDesignApprovalAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignApprovalAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignApprovalAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AutoDesignApprovalAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAutoDesignApprovalAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAutoDesignDateAndPersonAssignment.pxx"
|
||||
@@ -23,88 +22,94 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAutoDesignDateAndPersonAssignment::RWStepAP214_RWAutoDesignDateAndPersonAssignment () {}
|
||||
|
||||
void RWStepAP214_RWAutoDesignDateAndPersonAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignDateAndPersonAssignment)& ent) const
|
||||
RWStepAP214_RWAutoDesignDateAndPersonAssignment::RWStepAP214_RWAutoDesignDateAndPersonAssignment()
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"auto_design_date_and_person_assignment")) return;
|
||||
|
||||
// --- inherited field : assignedPersonAndOrganization ---
|
||||
|
||||
Handle(StepBasic_PersonAndOrganization) aAssignedPersonAndOrganization;
|
||||
data->ReadEntity(num, 1,"assigned_person_and_organization", ach, STANDARD_TYPE(StepBasic_PersonAndOrganization), aAssignedPersonAndOrganization);
|
||||
|
||||
// --- inherited field : role ---
|
||||
|
||||
Handle(StepBasic_PersonAndOrganizationRole) aRole;
|
||||
data->ReadEntity(num, 2,"role", ach, STANDARD_TYPE(StepBasic_PersonAndOrganizationRole), aRole);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
Handle(StepAP214_HArray1OfAutoDesignDateAndPersonItem) aItems;
|
||||
StepAP214_AutoDesignDateAndPersonItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList (num,3,"items",ach,nsub3)) {
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignDateAndPersonItem (1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
|
||||
Standard_Boolean stat3 = data->ReadEntity
|
||||
(nsub3,i3,"items",ach,aItemsItem);
|
||||
if (stat3) aItems->SetValue(i3,aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedPersonAndOrganization, aRole, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignDateAndPersonAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignDateAndPersonAssignment)& ent) const
|
||||
void RWStepAP214_RWAutoDesignDateAndPersonAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignDateAndPersonAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedPersonAndOrganization ---
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
SW.Send(ent->AssignedPersonAndOrganization());
|
||||
if (!data->CheckNbParams(num, 3, ach, "auto_design_date_and_person_assignment"))
|
||||
return;
|
||||
|
||||
// --- inherited field role ---
|
||||
// --- inherited field : assignedPersonAndOrganization ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
Handle(StepBasic_PersonAndOrganization) aAssignedPersonAndOrganization;
|
||||
data->ReadEntity(num,
|
||||
1,
|
||||
"assigned_person_and_organization",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_PersonAndOrganization),
|
||||
aAssignedPersonAndOrganization);
|
||||
|
||||
// --- own field : items ---
|
||||
// --- inherited field : role ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3 ++) {
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
Handle(StepBasic_PersonAndOrganizationRole) aRole;
|
||||
data->ReadEntity(num, 2, "role", ach, STANDARD_TYPE(StepBasic_PersonAndOrganizationRole), aRole);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
Handle(StepAP214_HArray1OfAutoDesignDateAndPersonItem) aItems;
|
||||
StepAP214_AutoDesignDateAndPersonItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num, 3, "items", ach, nsub3))
|
||||
{
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignDateAndPersonItem(1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3++)
|
||||
{
|
||||
Standard_Boolean stat3 = data->ReadEntity(nsub3, i3, "items", ach, aItemsItem);
|
||||
if (stat3)
|
||||
aItems->SetValue(i3, aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
ent->Init(aAssignedPersonAndOrganization, aRole, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignDateAndPersonAssignment::Share(const Handle(StepAP214_AutoDesignDateAndPersonAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAutoDesignDateAndPersonAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignDateAndPersonAssignment)& ent) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedPersonAndOrganization());
|
||||
// --- inherited field assignedPersonAndOrganization ---
|
||||
|
||||
SW.Send(ent->AssignedPersonAndOrganization());
|
||||
|
||||
iter.GetOneItem(ent->Role());
|
||||
// --- inherited field role ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3=1; is3<=nbElem3; is3 ++) {
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
void RWStepAP214_RWAutoDesignDateAndPersonAssignment::Share(
|
||||
const Handle(StepAP214_AutoDesignDateAndPersonAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedPersonAndOrganization());
|
||||
|
||||
iter.GetOneItem(ent->Role());
|
||||
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3 = 1; is3 <= nbElem3; is3++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
}
|
||||
|
@@ -28,44 +28,29 @@ class StepAP214_AutoDesignDateAndPersonAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AutoDesignDateAndPersonAssignment
|
||||
class RWStepAP214_RWAutoDesignDateAndPersonAssignment
|
||||
class RWStepAP214_RWAutoDesignDateAndPersonAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAutoDesignDateAndPersonAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AutoDesignDateAndPersonAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AutoDesignDateAndPersonAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AutoDesignDateAndPersonAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignDateAndPersonAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignDateAndPersonAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AutoDesignDateAndPersonAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAutoDesignDateAndPersonAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAutoDesignDocumentReference.pxx"
|
||||
@@ -23,76 +22,79 @@
|
||||
#include <StepData_StepWriter.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
RWStepAP214_RWAutoDesignDocumentReference::RWStepAP214_RWAutoDesignDocumentReference () { }
|
||||
RWStepAP214_RWAutoDesignDocumentReference::RWStepAP214_RWAutoDesignDocumentReference() {}
|
||||
|
||||
void RWStepAP214_RWAutoDesignDocumentReference::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignDocumentReference)& ent) const
|
||||
void RWStepAP214_RWAutoDesignDocumentReference::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignDocumentReference)& ent) const
|
||||
{
|
||||
// --- Number of Parameter Control ---
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"auto_deesign_document_reference")) return;
|
||||
if (!data->CheckNbParams(num, 3, ach, "auto_deesign_document_reference"))
|
||||
return;
|
||||
|
||||
// --- inherited field : assigned_document
|
||||
// --- inherited field : assigned_document
|
||||
|
||||
Handle(StepBasic_Document) adoc;
|
||||
data->ReadEntity
|
||||
(num, 1,"assigned_document", ach, STANDARD_TYPE(StepBasic_Document), adoc);
|
||||
Handle(StepBasic_Document) adoc;
|
||||
data->ReadEntity(num, 1, "assigned_document", ach, STANDARD_TYPE(StepBasic_Document), adoc);
|
||||
|
||||
// --- inherited field : source ---
|
||||
// --- inherited field : source ---
|
||||
|
||||
Handle(TCollection_HAsciiString) asource;
|
||||
data->ReadString (num,2,"source",ach,asource);
|
||||
Handle(TCollection_HAsciiString) asource;
|
||||
data->ReadString(num, 2, "source", ach, asource);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
Handle(StepAP214_HArray1OfAutoDesignReferencingItem) aItems;
|
||||
StepAP214_AutoDesignReferencingItem anItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList (num,3,"items",ach,nsub3)) {
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignReferencingItem (1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
|
||||
Standard_Boolean stat3 = data->ReadEntity
|
||||
(nsub3, i3,"item", ach, anItem);
|
||||
if (stat3) aItems->SetValue(i3, anItem);
|
||||
}
|
||||
}
|
||||
Handle(StepAP214_HArray1OfAutoDesignReferencingItem) aItems;
|
||||
StepAP214_AutoDesignReferencingItem anItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num, 3, "items", ach, nsub3))
|
||||
{
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignReferencingItem(1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3++)
|
||||
{
|
||||
Standard_Boolean stat3 = data->ReadEntity(nsub3, i3, "item", ach, anItem);
|
||||
if (stat3)
|
||||
aItems->SetValue(i3, anItem);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
ent->Init (adoc,asource,aItems);
|
||||
ent->Init(adoc, asource, aItems);
|
||||
}
|
||||
|
||||
void RWStepAP214_RWAutoDesignDocumentReference::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignDocumentReference)& ent) const
|
||||
void RWStepAP214_RWAutoDesignDocumentReference::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignDocumentReference)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field : assigned_document ---
|
||||
// --- inherited field : assigned_document ---
|
||||
|
||||
SW.Send(ent->AssignedDocument());
|
||||
SW.Send(ent->AssignedDocument());
|
||||
|
||||
// --- inherited field : source ---
|
||||
// --- inherited field : source ---
|
||||
|
||||
SW.Send(ent->Source());
|
||||
SW.Send(ent->Source());
|
||||
|
||||
// --- own field : items ---
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3 ++) {
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignDocumentReference::Share(const Handle(StepAP214_AutoDesignDocumentReference)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAutoDesignDocumentReference::Share(
|
||||
const Handle(StepAP214_AutoDesignDocumentReference)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
iter.AddItem (ent->AssignedDocument());
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3 ++)
|
||||
iter.AddItem (ent->ItemsValue(i3).Value());
|
||||
iter.AddItem(ent->AssignedDocument());
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3++)
|
||||
iter.AddItem(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
|
@@ -28,44 +28,27 @@ class StepAP214_AutoDesignDocumentReference;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AutoDesignDocumentReference
|
||||
class RWStepAP214_RWAutoDesignDocumentReference
|
||||
class RWStepAP214_RWAutoDesignDocumentReference
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAutoDesignDocumentReference();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AutoDesignDocumentReference)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AutoDesignDocumentReference)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AutoDesignDocumentReference)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignDocumentReference)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignDocumentReference)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AutoDesignDocumentReference)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAutoDesignDocumentReference_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAutoDesignGroupAssignment.pxx"
|
||||
@@ -22,76 +21,76 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAutoDesignGroupAssignment::RWStepAP214_RWAutoDesignGroupAssignment () {}
|
||||
RWStepAP214_RWAutoDesignGroupAssignment::RWStepAP214_RWAutoDesignGroupAssignment() {}
|
||||
|
||||
void RWStepAP214_RWAutoDesignGroupAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignGroupAssignment)& ent) const
|
||||
void RWStepAP214_RWAutoDesignGroupAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignGroupAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
if (!data->CheckNbParams(num, 2, ach, "auto_design_group_assignment"))
|
||||
return;
|
||||
|
||||
if (!data->CheckNbParams(num,2,ach,"auto_design_group_assignment")) return;
|
||||
// --- inherited field : assignedGroup ---
|
||||
|
||||
// --- inherited field : assignedGroup ---
|
||||
Handle(StepBasic_Group) aAssignedGroup;
|
||||
data->ReadEntity(num, 1, "assigned_group", ach, STANDARD_TYPE(StepBasic_Group), aAssignedGroup);
|
||||
|
||||
Handle(StepBasic_Group) aAssignedGroup;
|
||||
data->ReadEntity(num, 1,"assigned_group", ach, STANDARD_TYPE(StepBasic_Group), aAssignedGroup);
|
||||
// --- own field : items ---
|
||||
|
||||
// --- own field : items ---
|
||||
Handle(StepAP214_HArray1OfAutoDesignGroupedItem) aItems;
|
||||
StepAP214_AutoDesignGroupedItem aItemsItem;
|
||||
Standard_Integer nsub2;
|
||||
if (data->ReadSubList(num, 2, "items", ach, nsub2))
|
||||
{
|
||||
Standard_Integer nb2 = data->NbParams(nsub2);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignGroupedItem(1, nb2);
|
||||
for (Standard_Integer i2 = 1; i2 <= nb2; i2++)
|
||||
{
|
||||
Standard_Boolean stat2 = data->ReadEntity(nsub2, i2, "items", ach, aItemsItem);
|
||||
if (stat2)
|
||||
aItems->SetValue(i2, aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
Handle(StepAP214_HArray1OfAutoDesignGroupedItem) aItems;
|
||||
StepAP214_AutoDesignGroupedItem aItemsItem;
|
||||
Standard_Integer nsub2;
|
||||
if (data->ReadSubList (num,2,"items",ach,nsub2)) {
|
||||
Standard_Integer nb2 = data->NbParams(nsub2);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignGroupedItem (1, nb2);
|
||||
for (Standard_Integer i2 = 1; i2 <= nb2; i2 ++) {
|
||||
Standard_Boolean stat2 = data->ReadEntity
|
||||
(nsub2,i2,"items",ach,aItemsItem);
|
||||
if (stat2) aItems->SetValue(i2,aItemsItem);
|
||||
}
|
||||
}
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedGroup, aItems);
|
||||
ent->Init(aAssignedGroup, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignGroupAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignGroupAssignment)& ent) const
|
||||
void RWStepAP214_RWAutoDesignGroupAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignGroupAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedGroup ---
|
||||
// --- inherited field assignedGroup ---
|
||||
|
||||
SW.Send(ent->AssignedGroup());
|
||||
SW.Send(ent->AssignedGroup());
|
||||
|
||||
// --- own field : items ---
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i2 = 1; i2 <= ent->NbItems(); i2 ++) {
|
||||
SW.Send(ent->ItemsValue(i2).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i2 = 1; i2 <= ent->NbItems(); i2++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i2).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignGroupAssignment::Share(const Handle(StepAP214_AutoDesignGroupAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAutoDesignGroupAssignment::Share(
|
||||
const Handle(StepAP214_AutoDesignGroupAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedGroup());
|
||||
|
||||
|
||||
Standard_Integer nbElem2 = ent->NbItems();
|
||||
for (Standard_Integer is2=1; is2<=nbElem2; is2 ++) {
|
||||
iter.GetOneItem(ent->ItemsValue(is2).Value());
|
||||
}
|
||||
iter.GetOneItem(ent->AssignedGroup());
|
||||
|
||||
Standard_Integer nbElem2 = ent->NbItems();
|
||||
for (Standard_Integer is2 = 1; is2 <= nbElem2; is2++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is2).Value());
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -28,44 +28,27 @@ class StepAP214_AutoDesignGroupAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AutoDesignGroupAssignment
|
||||
class RWStepAP214_RWAutoDesignGroupAssignment
|
||||
class RWStepAP214_RWAutoDesignGroupAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAutoDesignGroupAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AutoDesignGroupAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AutoDesignGroupAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AutoDesignGroupAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignGroupAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignGroupAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AutoDesignGroupAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAutoDesignGroupAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAutoDesignNominalDateAndTimeAssignment.pxx"
|
||||
@@ -22,88 +21,95 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAutoDesignNominalDateAndTimeAssignment::RWStepAP214_RWAutoDesignNominalDateAndTimeAssignment () {}
|
||||
|
||||
void RWStepAP214_RWAutoDesignNominalDateAndTimeAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignNominalDateAndTimeAssignment)& ent) const
|
||||
RWStepAP214_RWAutoDesignNominalDateAndTimeAssignment::
|
||||
RWStepAP214_RWAutoDesignNominalDateAndTimeAssignment()
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"auto_design_nominal_date_and_time_assignment")) return;
|
||||
|
||||
// --- inherited field : assignedDateAndTime ---
|
||||
|
||||
Handle(StepBasic_DateAndTime) aAssignedDateAndTime;
|
||||
data->ReadEntity(num, 1,"assigned_date_and_time", ach, STANDARD_TYPE(StepBasic_DateAndTime), aAssignedDateAndTime);
|
||||
|
||||
// --- inherited field : role ---
|
||||
|
||||
Handle(StepBasic_DateTimeRole) aRole;
|
||||
data->ReadEntity(num, 2,"role", ach, STANDARD_TYPE(StepBasic_DateTimeRole), aRole);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
Handle(StepAP214_HArray1OfAutoDesignDateAndTimeItem) aItems;
|
||||
StepAP214_AutoDesignDateAndTimeItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList (num,3,"items",ach,nsub3)) {
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignDateAndTimeItem (1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
|
||||
Standard_Boolean stat3 = data->ReadEntity
|
||||
(nsub3,i3,"items",ach,aItemsItem);
|
||||
if (stat3) aItems->SetValue(i3,aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedDateAndTime, aRole, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignNominalDateAndTimeAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignNominalDateAndTimeAssignment)& ent) const
|
||||
void RWStepAP214_RWAutoDesignNominalDateAndTimeAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignNominalDateAndTimeAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedDateAndTime ---
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
SW.Send(ent->AssignedDateAndTime());
|
||||
if (!data->CheckNbParams(num, 3, ach, "auto_design_nominal_date_and_time_assignment"))
|
||||
return;
|
||||
|
||||
// --- inherited field role ---
|
||||
// --- inherited field : assignedDateAndTime ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
Handle(StepBasic_DateAndTime) aAssignedDateAndTime;
|
||||
data->ReadEntity(num,
|
||||
1,
|
||||
"assigned_date_and_time",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_DateAndTime),
|
||||
aAssignedDateAndTime);
|
||||
|
||||
// --- own field : items ---
|
||||
// --- inherited field : role ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3 ++) {
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
Handle(StepBasic_DateTimeRole) aRole;
|
||||
data->ReadEntity(num, 2, "role", ach, STANDARD_TYPE(StepBasic_DateTimeRole), aRole);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
Handle(StepAP214_HArray1OfAutoDesignDateAndTimeItem) aItems;
|
||||
StepAP214_AutoDesignDateAndTimeItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num, 3, "items", ach, nsub3))
|
||||
{
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignDateAndTimeItem(1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3++)
|
||||
{
|
||||
Standard_Boolean stat3 = data->ReadEntity(nsub3, i3, "items", ach, aItemsItem);
|
||||
if (stat3)
|
||||
aItems->SetValue(i3, aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
ent->Init(aAssignedDateAndTime, aRole, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignNominalDateAndTimeAssignment::Share(const Handle(StepAP214_AutoDesignNominalDateAndTimeAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAutoDesignNominalDateAndTimeAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignNominalDateAndTimeAssignment)& ent) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedDateAndTime());
|
||||
// --- inherited field assignedDateAndTime ---
|
||||
|
||||
SW.Send(ent->AssignedDateAndTime());
|
||||
|
||||
iter.GetOneItem(ent->Role());
|
||||
// --- inherited field role ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3=1; is3<=nbElem3; is3 ++) {
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
void RWStepAP214_RWAutoDesignNominalDateAndTimeAssignment::Share(
|
||||
const Handle(StepAP214_AutoDesignNominalDateAndTimeAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedDateAndTime());
|
||||
|
||||
iter.GetOneItem(ent->Role());
|
||||
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3 = 1; is3 <= nbElem3; is3++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
}
|
||||
|
@@ -28,44 +28,29 @@ class StepAP214_AutoDesignNominalDateAndTimeAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AutoDesignNominalDateAndTimeAssignment
|
||||
class RWStepAP214_RWAutoDesignNominalDateAndTimeAssignment
|
||||
class RWStepAP214_RWAutoDesignNominalDateAndTimeAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAutoDesignNominalDateAndTimeAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AutoDesignNominalDateAndTimeAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AutoDesignNominalDateAndTimeAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AutoDesignNominalDateAndTimeAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignNominalDateAndTimeAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignNominalDateAndTimeAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AutoDesignNominalDateAndTimeAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAutoDesignNominalDateAndTimeAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAutoDesignNominalDateAssignment.pxx"
|
||||
@@ -22,88 +21,87 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAutoDesignNominalDateAssignment::RWStepAP214_RWAutoDesignNominalDateAssignment () {}
|
||||
RWStepAP214_RWAutoDesignNominalDateAssignment::RWStepAP214_RWAutoDesignNominalDateAssignment() {}
|
||||
|
||||
void RWStepAP214_RWAutoDesignNominalDateAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignNominalDateAssignment)& ent) const
|
||||
void RWStepAP214_RWAutoDesignNominalDateAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignNominalDateAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
if (!data->CheckNbParams(num, 3, ach, "auto_design_nominal_date_assignment"))
|
||||
return;
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"auto_design_nominal_date_assignment")) return;
|
||||
// --- inherited field : assignedDate ---
|
||||
|
||||
// --- inherited field : assignedDate ---
|
||||
Handle(StepBasic_Date) aAssignedDate;
|
||||
data->ReadEntity(num, 1, "assigned_date", ach, STANDARD_TYPE(StepBasic_Date), aAssignedDate);
|
||||
|
||||
Handle(StepBasic_Date) aAssignedDate;
|
||||
data->ReadEntity(num, 1,"assigned_date", ach, STANDARD_TYPE(StepBasic_Date), aAssignedDate);
|
||||
// --- inherited field : role ---
|
||||
|
||||
// --- inherited field : role ---
|
||||
Handle(StepBasic_DateRole) aRole;
|
||||
data->ReadEntity(num, 2, "role", ach, STANDARD_TYPE(StepBasic_DateRole), aRole);
|
||||
|
||||
Handle(StepBasic_DateRole) aRole;
|
||||
data->ReadEntity(num, 2,"role", ach, STANDARD_TYPE(StepBasic_DateRole), aRole);
|
||||
// --- own field : items ---
|
||||
|
||||
// --- own field : items ---
|
||||
Handle(StepAP214_HArray1OfAutoDesignDatedItem) aItems;
|
||||
StepAP214_AutoDesignDatedItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num, 3, "items", ach, nsub3))
|
||||
{
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignDatedItem(1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3++)
|
||||
{
|
||||
Standard_Boolean stat3 = data->ReadEntity(nsub3, i3, "items", ach, aItemsItem);
|
||||
if (stat3)
|
||||
aItems->SetValue(i3, aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
Handle(StepAP214_HArray1OfAutoDesignDatedItem) aItems;
|
||||
StepAP214_AutoDesignDatedItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList (num,3,"items",ach,nsub3)) {
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignDatedItem (1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
|
||||
Standard_Boolean stat3 = data->ReadEntity
|
||||
(nsub3,i3,"items",ach,aItemsItem);
|
||||
if (stat3) aItems->SetValue(i3,aItemsItem);
|
||||
}
|
||||
}
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedDate, aRole, aItems);
|
||||
ent->Init(aAssignedDate, aRole, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignNominalDateAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignNominalDateAssignment)& ent) const
|
||||
void RWStepAP214_RWAutoDesignNominalDateAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignNominalDateAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedDate ---
|
||||
// --- inherited field assignedDate ---
|
||||
|
||||
SW.Send(ent->AssignedDate());
|
||||
SW.Send(ent->AssignedDate());
|
||||
|
||||
// --- inherited field role ---
|
||||
// --- inherited field role ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
SW.Send(ent->Role());
|
||||
|
||||
// --- own field : items ---
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3 ++) {
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignNominalDateAssignment::Share(const Handle(StepAP214_AutoDesignNominalDateAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAutoDesignNominalDateAssignment::Share(
|
||||
const Handle(StepAP214_AutoDesignNominalDateAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedDate());
|
||||
iter.GetOneItem(ent->AssignedDate());
|
||||
|
||||
iter.GetOneItem(ent->Role());
|
||||
|
||||
iter.GetOneItem(ent->Role());
|
||||
|
||||
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3=1; is3<=nbElem3; is3 ++) {
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3 = 1; is3 <= nbElem3; is3++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -28,44 +28,28 @@ class StepAP214_AutoDesignNominalDateAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AutoDesignNominalDateAssignment
|
||||
class RWStepAP214_RWAutoDesignNominalDateAssignment
|
||||
class RWStepAP214_RWAutoDesignNominalDateAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAutoDesignNominalDateAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AutoDesignNominalDateAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AutoDesignNominalDateAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AutoDesignNominalDateAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignNominalDateAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignNominalDateAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AutoDesignNominalDateAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAutoDesignNominalDateAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAutoDesignOrganizationAssignment.pxx"
|
||||
@@ -22,88 +21,92 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAutoDesignOrganizationAssignment::RWStepAP214_RWAutoDesignOrganizationAssignment () {}
|
||||
RWStepAP214_RWAutoDesignOrganizationAssignment::RWStepAP214_RWAutoDesignOrganizationAssignment() {}
|
||||
|
||||
void RWStepAP214_RWAutoDesignOrganizationAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignOrganizationAssignment)& ent) const
|
||||
void RWStepAP214_RWAutoDesignOrganizationAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignOrganizationAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
if (!data->CheckNbParams(num, 3, ach, "auto_design_organization_assignment"))
|
||||
return;
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"auto_design_organization_assignment")) return;
|
||||
// --- inherited field : assignedOrganization ---
|
||||
|
||||
// --- inherited field : assignedOrganization ---
|
||||
Handle(StepBasic_Organization) aAssignedOrganization;
|
||||
data->ReadEntity(num,
|
||||
1,
|
||||
"assigned_organization",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_Organization),
|
||||
aAssignedOrganization);
|
||||
|
||||
Handle(StepBasic_Organization) aAssignedOrganization;
|
||||
data->ReadEntity(num, 1,"assigned_organization", ach, STANDARD_TYPE(StepBasic_Organization), aAssignedOrganization);
|
||||
// --- inherited field : role ---
|
||||
|
||||
// --- inherited field : role ---
|
||||
Handle(StepBasic_OrganizationRole) aRole;
|
||||
data->ReadEntity(num, 2, "role", ach, STANDARD_TYPE(StepBasic_OrganizationRole), aRole);
|
||||
|
||||
Handle(StepBasic_OrganizationRole) aRole;
|
||||
data->ReadEntity(num, 2,"role", ach, STANDARD_TYPE(StepBasic_OrganizationRole), aRole);
|
||||
// --- own field : items ---
|
||||
|
||||
// --- own field : items ---
|
||||
Handle(StepAP214_HArray1OfAutoDesignGeneralOrgItem) aItems;
|
||||
StepAP214_AutoDesignGeneralOrgItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num, 3, "items", ach, nsub3))
|
||||
{
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignGeneralOrgItem(1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3++)
|
||||
{
|
||||
Standard_Boolean stat3 = data->ReadEntity(nsub3, i3, "items", ach, aItemsItem);
|
||||
if (stat3)
|
||||
aItems->SetValue(i3, aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
Handle(StepAP214_HArray1OfAutoDesignGeneralOrgItem) aItems;
|
||||
StepAP214_AutoDesignGeneralOrgItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList (num,3,"items",ach,nsub3)) {
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignGeneralOrgItem (1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
|
||||
Standard_Boolean stat3 = data->ReadEntity
|
||||
(nsub3,i3,"items",ach,aItemsItem);
|
||||
if (stat3) aItems->SetValue(i3,aItemsItem);
|
||||
}
|
||||
}
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedOrganization, aRole, aItems);
|
||||
ent->Init(aAssignedOrganization, aRole, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignOrganizationAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignOrganizationAssignment)& ent) const
|
||||
void RWStepAP214_RWAutoDesignOrganizationAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignOrganizationAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedOrganization ---
|
||||
// --- inherited field assignedOrganization ---
|
||||
|
||||
SW.Send(ent->AssignedOrganization());
|
||||
SW.Send(ent->AssignedOrganization());
|
||||
|
||||
// --- inherited field role ---
|
||||
// --- inherited field role ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
SW.Send(ent->Role());
|
||||
|
||||
// --- own field : items ---
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3 ++) {
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignOrganizationAssignment::Share(const Handle(StepAP214_AutoDesignOrganizationAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAutoDesignOrganizationAssignment::Share(
|
||||
const Handle(StepAP214_AutoDesignOrganizationAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedOrganization());
|
||||
iter.GetOneItem(ent->AssignedOrganization());
|
||||
|
||||
iter.GetOneItem(ent->Role());
|
||||
|
||||
iter.GetOneItem(ent->Role());
|
||||
|
||||
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3=1; is3<=nbElem3; is3 ++) {
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3 = 1; is3 <= nbElem3; is3++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -28,44 +28,29 @@ class StepAP214_AutoDesignOrganizationAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AutoDesignOrganizationAssignment
|
||||
class RWStepAP214_RWAutoDesignOrganizationAssignment
|
||||
class RWStepAP214_RWAutoDesignOrganizationAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAutoDesignOrganizationAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AutoDesignOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AutoDesignOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AutoDesignOrganizationAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AutoDesignOrganizationAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAutoDesignOrganizationAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAutoDesignPersonAndOrganizationAssignment.pxx"
|
||||
@@ -22,88 +21,95 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAutoDesignPersonAndOrganizationAssignment::RWStepAP214_RWAutoDesignPersonAndOrganizationAssignment () {}
|
||||
|
||||
void RWStepAP214_RWAutoDesignPersonAndOrganizationAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignPersonAndOrganizationAssignment)& ent) const
|
||||
RWStepAP214_RWAutoDesignPersonAndOrganizationAssignment::
|
||||
RWStepAP214_RWAutoDesignPersonAndOrganizationAssignment()
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,3,ach,"auto_design_person_and_organization_assignment")) return;
|
||||
|
||||
// --- inherited field : assignedPersonAndOrganization ---
|
||||
|
||||
Handle(StepBasic_PersonAndOrganization) aAssignedPersonAndOrganization;
|
||||
data->ReadEntity(num, 1,"assigned_person_and_organization", ach, STANDARD_TYPE(StepBasic_PersonAndOrganization), aAssignedPersonAndOrganization);
|
||||
|
||||
// --- inherited field : role ---
|
||||
|
||||
Handle(StepBasic_PersonAndOrganizationRole) aRole;
|
||||
data->ReadEntity(num, 2,"role", ach, STANDARD_TYPE(StepBasic_PersonAndOrganizationRole), aRole);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
Handle(StepAP214_HArray1OfAutoDesignGeneralOrgItem) aItems;
|
||||
StepAP214_AutoDesignGeneralOrgItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList (num,3,"items",ach,nsub3)) {
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignGeneralOrgItem (1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
|
||||
Standard_Boolean stat3 = data->ReadEntity
|
||||
(nsub3,i3,"items",ach,aItemsItem);
|
||||
if (stat3) aItems->SetValue(i3,aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedPersonAndOrganization, aRole, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignPersonAndOrganizationAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignPersonAndOrganizationAssignment)& ent) const
|
||||
void RWStepAP214_RWAutoDesignPersonAndOrganizationAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignPersonAndOrganizationAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedPersonAndOrganization ---
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
SW.Send(ent->AssignedPersonAndOrganization());
|
||||
if (!data->CheckNbParams(num, 3, ach, "auto_design_person_and_organization_assignment"))
|
||||
return;
|
||||
|
||||
// --- inherited field role ---
|
||||
// --- inherited field : assignedPersonAndOrganization ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
Handle(StepBasic_PersonAndOrganization) aAssignedPersonAndOrganization;
|
||||
data->ReadEntity(num,
|
||||
1,
|
||||
"assigned_person_and_organization",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_PersonAndOrganization),
|
||||
aAssignedPersonAndOrganization);
|
||||
|
||||
// --- own field : items ---
|
||||
// --- inherited field : role ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3 ++) {
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
Handle(StepBasic_PersonAndOrganizationRole) aRole;
|
||||
data->ReadEntity(num, 2, "role", ach, STANDARD_TYPE(StepBasic_PersonAndOrganizationRole), aRole);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
Handle(StepAP214_HArray1OfAutoDesignGeneralOrgItem) aItems;
|
||||
StepAP214_AutoDesignGeneralOrgItem aItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList(num, 3, "items", ach, nsub3))
|
||||
{
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignGeneralOrgItem(1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3++)
|
||||
{
|
||||
Standard_Boolean stat3 = data->ReadEntity(nsub3, i3, "items", ach, aItemsItem);
|
||||
if (stat3)
|
||||
aItems->SetValue(i3, aItemsItem);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
ent->Init(aAssignedPersonAndOrganization, aRole, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignPersonAndOrganizationAssignment::Share(const Handle(StepAP214_AutoDesignPersonAndOrganizationAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAutoDesignPersonAndOrganizationAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignPersonAndOrganizationAssignment)& ent) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedPersonAndOrganization());
|
||||
// --- inherited field assignedPersonAndOrganization ---
|
||||
|
||||
SW.Send(ent->AssignedPersonAndOrganization());
|
||||
|
||||
iter.GetOneItem(ent->Role());
|
||||
// --- inherited field role ---
|
||||
|
||||
SW.Send(ent->Role());
|
||||
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3=1; is3<=nbElem3; is3 ++) {
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i3 = 1; i3 <= ent->NbItems(); i3++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i3).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
void RWStepAP214_RWAutoDesignPersonAndOrganizationAssignment::Share(
|
||||
const Handle(StepAP214_AutoDesignPersonAndOrganizationAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedPersonAndOrganization());
|
||||
|
||||
iter.GetOneItem(ent->Role());
|
||||
|
||||
Standard_Integer nbElem3 = ent->NbItems();
|
||||
for (Standard_Integer is3 = 1; is3 <= nbElem3; is3++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is3).Value());
|
||||
}
|
||||
}
|
||||
|
@@ -28,44 +28,29 @@ class StepAP214_AutoDesignPersonAndOrganizationAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AutoDesignPersonAndOrganizationAssignment
|
||||
class RWStepAP214_RWAutoDesignPersonAndOrganizationAssignment
|
||||
class RWStepAP214_RWAutoDesignPersonAndOrganizationAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAutoDesignPersonAndOrganizationAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AutoDesignPersonAndOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AutoDesignPersonAndOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AutoDesignPersonAndOrganizationAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignPersonAndOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignPersonAndOrganizationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AutoDesignPersonAndOrganizationAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAutoDesignPersonAndOrganizationAssignment_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAutoDesignPresentedItem.pxx"
|
||||
@@ -21,64 +20,66 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAutoDesignPresentedItem::RWStepAP214_RWAutoDesignPresentedItem () {}
|
||||
RWStepAP214_RWAutoDesignPresentedItem::RWStepAP214_RWAutoDesignPresentedItem() {}
|
||||
|
||||
void RWStepAP214_RWAutoDesignPresentedItem::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignPresentedItem)& ent) const
|
||||
void RWStepAP214_RWAutoDesignPresentedItem::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignPresentedItem)& ent) const
|
||||
{
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
if (!data->CheckNbParams(num, 1, ach, "auto_design_presented_item"))
|
||||
return;
|
||||
|
||||
if (!data->CheckNbParams(num,1,ach,"auto_design_presented_item")) return;
|
||||
// --- own field : items ---
|
||||
|
||||
// --- own field : items ---
|
||||
Handle(StepAP214_HArray1OfAutoDesignPresentedItemSelect) aItems;
|
||||
StepAP214_AutoDesignPresentedItemSelect anent1;
|
||||
Standard_Integer nsub1;
|
||||
if (data->ReadSubList(num, 1, "items", ach, nsub1))
|
||||
{
|
||||
Standard_Integer nb1 = data->NbParams(nsub1);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignPresentedItemSelect(1, nb1);
|
||||
for (Standard_Integer i1 = 1; i1 <= nb1; i1++)
|
||||
{
|
||||
Standard_Boolean stat1 =
|
||||
data->ReadEntity(nsub1, i1, "auto_design_displayed_item", ach, anent1);
|
||||
if (stat1)
|
||||
aItems->SetValue(i1, anent1);
|
||||
}
|
||||
}
|
||||
|
||||
Handle(StepAP214_HArray1OfAutoDesignPresentedItemSelect) aItems;
|
||||
StepAP214_AutoDesignPresentedItemSelect anent1;
|
||||
Standard_Integer nsub1;
|
||||
if (data->ReadSubList (num,1,"items",ach,nsub1)) {
|
||||
Standard_Integer nb1 = data->NbParams(nsub1);
|
||||
aItems = new StepAP214_HArray1OfAutoDesignPresentedItemSelect (1, nb1);
|
||||
for (Standard_Integer i1 = 1; i1 <= nb1; i1 ++) {
|
||||
Standard_Boolean stat1 = data->ReadEntity
|
||||
(nsub1, i1,"auto_design_displayed_item", ach, anent1);
|
||||
if (stat1) aItems->SetValue(i1, anent1);
|
||||
}
|
||||
}
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aItems);
|
||||
ent->Init(aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignPresentedItem::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignPresentedItem)& ent) const
|
||||
void RWStepAP214_RWAutoDesignPresentedItem::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignPresentedItem)& ent) const
|
||||
{
|
||||
|
||||
// --- own field : items ---
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i1 = 1; i1 <= ent->NbItems(); i1 ++) {
|
||||
SW.Send(ent->ItemsValue(i1).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i1 = 1; i1 <= ent->NbItems(); i1++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i1).Value());
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignPresentedItem::Share(const Handle(StepAP214_AutoDesignPresentedItem)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAutoDesignPresentedItem::Share(
|
||||
const Handle(StepAP214_AutoDesignPresentedItem)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
Standard_Integer nbElem1 = ent->NbItems();
|
||||
for (Standard_Integer is1=1; is1<=nbElem1; is1 ++) {
|
||||
iter.GetOneItem(ent->ItemsValue(is1).Value());
|
||||
}
|
||||
|
||||
Standard_Integer nbElem1 = ent->NbItems();
|
||||
for (Standard_Integer is1 = 1; is1 <= nbElem1; is1++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is1).Value());
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -28,44 +28,27 @@ class StepAP214_AutoDesignPresentedItem;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AutoDesignPresentedItem
|
||||
class RWStepAP214_RWAutoDesignPresentedItem
|
||||
class RWStepAP214_RWAutoDesignPresentedItem
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAutoDesignPresentedItem();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AutoDesignPresentedItem)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AutoDesignPresentedItem)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AutoDesignPresentedItem)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignPresentedItem)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignPresentedItem)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_AutoDesignPresentedItem)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAutoDesignPresentedItem_HeaderFile
|
||||
|
@@ -11,7 +11,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include "RWStepAP214_RWAutoDesignSecurityClassificationAssignment.pxx"
|
||||
@@ -22,76 +21,89 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
RWStepAP214_RWAutoDesignSecurityClassificationAssignment::RWStepAP214_RWAutoDesignSecurityClassificationAssignment () {}
|
||||
|
||||
void RWStepAP214_RWAutoDesignSecurityClassificationAssignment::ReadStep
|
||||
(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignSecurityClassificationAssignment)& ent) const
|
||||
RWStepAP214_RWAutoDesignSecurityClassificationAssignment::
|
||||
RWStepAP214_RWAutoDesignSecurityClassificationAssignment()
|
||||
{
|
||||
|
||||
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
if (!data->CheckNbParams(num,2,ach,"auto_design_security_classification_assignment")) return;
|
||||
|
||||
// --- inherited field : assignedSecurityClassification ---
|
||||
|
||||
Handle(StepBasic_SecurityClassification) aAssignedSecurityClassification;
|
||||
data->ReadEntity(num, 1,"assigned_security_classification", ach, STANDARD_TYPE(StepBasic_SecurityClassification), aAssignedSecurityClassification);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
Handle(StepBasic_HArray1OfApproval) aItems;
|
||||
Handle(StepBasic_Approval) anent2;
|
||||
Standard_Integer nsub2;
|
||||
if (data->ReadSubList (num,2,"items",ach,nsub2)) {
|
||||
Standard_Integer nb2 = data->NbParams(nsub2);
|
||||
aItems = new StepBasic_HArray1OfApproval (1, nb2);
|
||||
for (Standard_Integer i2 = 1; i2 <= nb2; i2 ++) {
|
||||
Standard_Boolean stat2 = data->ReadEntity
|
||||
(nsub2, i2,"auto_design_security_classified_item", ach, STANDARD_TYPE(StepBasic_Approval), anent2);
|
||||
if (stat2) aItems->SetValue(i2, anent2);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
|
||||
ent->Init(aAssignedSecurityClassification, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignSecurityClassificationAssignment::WriteStep
|
||||
(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignSecurityClassificationAssignment)& ent) const
|
||||
void RWStepAP214_RWAutoDesignSecurityClassificationAssignment::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignSecurityClassificationAssignment)& ent) const
|
||||
{
|
||||
|
||||
// --- inherited field assignedSecurityClassification ---
|
||||
// --- Number of Parameter Control ---
|
||||
|
||||
SW.Send(ent->AssignedSecurityClassification());
|
||||
if (!data->CheckNbParams(num, 2, ach, "auto_design_security_classification_assignment"))
|
||||
return;
|
||||
|
||||
// --- own field : items ---
|
||||
// --- inherited field : assignedSecurityClassification ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i2 = 1; i2 <= ent->NbItems(); i2 ++) {
|
||||
SW.Send(ent->ItemsValue(i2));
|
||||
}
|
||||
SW.CloseSub();
|
||||
Handle(StepBasic_SecurityClassification) aAssignedSecurityClassification;
|
||||
data->ReadEntity(num,
|
||||
1,
|
||||
"assigned_security_classification",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_SecurityClassification),
|
||||
aAssignedSecurityClassification);
|
||||
|
||||
// --- own field : items ---
|
||||
|
||||
Handle(StepBasic_HArray1OfApproval) aItems;
|
||||
Handle(StepBasic_Approval) anent2;
|
||||
Standard_Integer nsub2;
|
||||
if (data->ReadSubList(num, 2, "items", ach, nsub2))
|
||||
{
|
||||
Standard_Integer nb2 = data->NbParams(nsub2);
|
||||
aItems = new StepBasic_HArray1OfApproval(1, nb2);
|
||||
for (Standard_Integer i2 = 1; i2 <= nb2; i2++)
|
||||
{
|
||||
Standard_Boolean stat2 = data->ReadEntity(nsub2,
|
||||
i2,
|
||||
"auto_design_security_classified_item",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_Approval),
|
||||
anent2);
|
||||
if (stat2)
|
||||
aItems->SetValue(i2, anent2);
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
||||
ent->Init(aAssignedSecurityClassification, aItems);
|
||||
}
|
||||
|
||||
|
||||
void RWStepAP214_RWAutoDesignSecurityClassificationAssignment::Share(const Handle(StepAP214_AutoDesignSecurityClassificationAssignment)& ent, Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWAutoDesignSecurityClassificationAssignment::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignSecurityClassificationAssignment)& ent) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedSecurityClassification());
|
||||
// --- inherited field assignedSecurityClassification ---
|
||||
|
||||
SW.Send(ent->AssignedSecurityClassification());
|
||||
|
||||
Standard_Integer nbElem2 = ent->NbItems();
|
||||
for (Standard_Integer is2=1; is2<=nbElem2; is2 ++) {
|
||||
iter.GetOneItem(ent->ItemsValue(is2));
|
||||
}
|
||||
// --- own field : items ---
|
||||
|
||||
SW.OpenSub();
|
||||
for (Standard_Integer i2 = 1; i2 <= ent->NbItems(); i2++)
|
||||
{
|
||||
SW.Send(ent->ItemsValue(i2));
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
void RWStepAP214_RWAutoDesignSecurityClassificationAssignment::Share(
|
||||
const Handle(StepAP214_AutoDesignSecurityClassificationAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
iter.GetOneItem(ent->AssignedSecurityClassification());
|
||||
|
||||
Standard_Integer nbElem2 = ent->NbItems();
|
||||
for (Standard_Integer is2 = 1; is2 <= nbElem2; is2++)
|
||||
{
|
||||
iter.GetOneItem(ent->ItemsValue(is2));
|
||||
}
|
||||
}
|
||||
|
@@ -28,44 +28,30 @@ class StepAP214_AutoDesignSecurityClassificationAssignment;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write Module for AutoDesignSecurityClassificationAssignment
|
||||
class RWStepAP214_RWAutoDesignSecurityClassificationAssignment
|
||||
class RWStepAP214_RWAutoDesignSecurityClassificationAssignment
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_RWAutoDesignSecurityClassificationAssignment();
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_AutoDesignSecurityClassificationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_AutoDesignSecurityClassificationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_AutoDesignSecurityClassificationAssignment)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_AutoDesignSecurityClassificationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_AutoDesignSecurityClassificationAssignment)& ent) const;
|
||||
|
||||
Standard_HIDDEN void Share(
|
||||
const Handle(StepAP214_AutoDesignSecurityClassificationAssignment)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWAutoDesignSecurityClassificationAssignment_HeaderFile
|
||||
|
@@ -21,73 +21,62 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepAP214_RWClass
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
RWStepAP214_RWClass::RWStepAP214_RWClass ()
|
||||
{
|
||||
}
|
||||
//=================================================================================================
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
RWStepAP214_RWClass::RWStepAP214_RWClass() {}
|
||||
|
||||
void RWStepAP214_RWClass::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_Class) &ent) const
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWClass::ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_Class)& ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,2,ach,"class") ) return;
|
||||
if (!data->CheckNbParams(num, 2, ach, "class"))
|
||||
return;
|
||||
|
||||
// Inherited fields of Group
|
||||
|
||||
Handle(TCollection_HAsciiString) aGroup_Name;
|
||||
data->ReadString (num, 1, "group.name", ach, aGroup_Name);
|
||||
data->ReadString(num, 1, "group.name", ach, aGroup_Name);
|
||||
|
||||
Handle(TCollection_HAsciiString) aGroup_Description;
|
||||
Standard_Boolean hasGroup_Description = Standard_True;
|
||||
if ( data->IsParamDefined (num,2) ) {
|
||||
data->ReadString (num, 2, "group.description", ach, aGroup_Description);
|
||||
Standard_Boolean hasGroup_Description = Standard_True;
|
||||
if (data->IsParamDefined(num, 2))
|
||||
{
|
||||
data->ReadString(num, 2, "group.description", ach, aGroup_Description);
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
hasGroup_Description = Standard_False;
|
||||
}
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aGroup_Name,
|
||||
hasGroup_Description,
|
||||
aGroup_Description);
|
||||
ent->Init(aGroup_Name, hasGroup_Description, aGroup_Description);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWClass::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_Class) &ent) const
|
||||
void RWStepAP214_RWClass::WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_Class)& ent) const
|
||||
{
|
||||
|
||||
// Inherited fields of Group
|
||||
|
||||
SW.Send (ent->StepBasic_Group::Name());
|
||||
SW.Send(ent->StepBasic_Group::Name());
|
||||
|
||||
if ( ent->StepBasic_Group::HasDescription() ) {
|
||||
SW.Send (ent->StepBasic_Group::Description());
|
||||
if (ent->StepBasic_Group::HasDescription())
|
||||
{
|
||||
SW.Send(ent->StepBasic_Group::Description());
|
||||
}
|
||||
else SW.SendUndef();
|
||||
else
|
||||
SW.SendUndef();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWClass::Share (const Handle(StepAP214_Class) &,
|
||||
Interface_EntityIterator&) const
|
||||
void RWStepAP214_RWClass::Share(const Handle(StepAP214_Class)&, Interface_EntityIterator&) const
|
||||
{
|
||||
// Inherited fields of Group
|
||||
}
|
||||
|
@@ -27,48 +27,30 @@ class StepAP214_Class;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write tool for Class
|
||||
class RWStepAP214_RWClass
|
||||
class RWStepAP214_RWClass
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Empty constructor
|
||||
Standard_HIDDEN RWStepAP214_RWClass();
|
||||
|
||||
|
||||
//! Reads Class
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_Class)& ent) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_Class)& ent) const;
|
||||
|
||||
//! Writes Class
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_Class)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(StepData_StepWriter& SW, const Handle(StepAP214_Class)& ent) const;
|
||||
|
||||
//! Fills data for graph (shared items)
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_Class)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_Class)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWClass_HeaderFile
|
||||
|
@@ -23,48 +23,50 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepAP214_RWExternallyDefinedClass
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
RWStepAP214_RWExternallyDefinedClass::RWStepAP214_RWExternallyDefinedClass ()
|
||||
{
|
||||
}
|
||||
//=================================================================================================
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
RWStepAP214_RWExternallyDefinedClass::RWStepAP214_RWExternallyDefinedClass() {}
|
||||
|
||||
void RWStepAP214_RWExternallyDefinedClass::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_ExternallyDefinedClass) &ent) const
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWExternallyDefinedClass::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_ExternallyDefinedClass)& ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,4,ach,"externally_defined_class") ) return;
|
||||
if (!data->CheckNbParams(num, 4, ach, "externally_defined_class"))
|
||||
return;
|
||||
|
||||
// Inherited fields of Group
|
||||
|
||||
Handle(TCollection_HAsciiString) aGroup_Name;
|
||||
data->ReadString (num, 1, "group.name", ach, aGroup_Name);
|
||||
data->ReadString(num, 1, "group.name", ach, aGroup_Name);
|
||||
|
||||
Handle(TCollection_HAsciiString) aGroup_Description;
|
||||
Standard_Boolean hasGroup_Description = Standard_True;
|
||||
if ( data->IsParamDefined (num,2) ) {
|
||||
data->ReadString (num, 2, "group.description", ach, aGroup_Description);
|
||||
Standard_Boolean hasGroup_Description = Standard_True;
|
||||
if (data->IsParamDefined(num, 2))
|
||||
{
|
||||
data->ReadString(num, 2, "group.description", ach, aGroup_Description);
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
hasGroup_Description = Standard_False;
|
||||
}
|
||||
|
||||
// Inherited fields of ExternallyDefinedItem
|
||||
|
||||
StepBasic_SourceItem aExternallyDefinedItem_ItemId;
|
||||
data->ReadEntity (num, 3, "externally_defined_item.item_id", ach, aExternallyDefinedItem_ItemId);
|
||||
data->ReadEntity(num, 3, "externally_defined_item.item_id", ach, aExternallyDefinedItem_ItemId);
|
||||
|
||||
Handle(StepBasic_ExternalSource) aExternallyDefinedItem_Source;
|
||||
data->ReadEntity (num, 4, "externally_defined_item.source", ach, STANDARD_TYPE(StepBasic_ExternalSource), aExternallyDefinedItem_Source);
|
||||
data->ReadEntity(num,
|
||||
4,
|
||||
"externally_defined_item.source",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_ExternalSource),
|
||||
aExternallyDefinedItem_Source);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aGroup_Name,
|
||||
@@ -74,45 +76,43 @@ void RWStepAP214_RWExternallyDefinedClass::ReadStep (const Handle(StepData_StepR
|
||||
aExternallyDefinedItem_Source);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWExternallyDefinedClass::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_ExternallyDefinedClass) &ent) const
|
||||
void RWStepAP214_RWExternallyDefinedClass::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_ExternallyDefinedClass)& ent) const
|
||||
{
|
||||
|
||||
// Inherited fields of Group
|
||||
|
||||
SW.Send (ent->StepBasic_Group::Name());
|
||||
SW.Send(ent->StepBasic_Group::Name());
|
||||
|
||||
if ( ent->StepBasic_Group::HasDescription() ) {
|
||||
SW.Send (ent->StepBasic_Group::Description());
|
||||
if (ent->StepBasic_Group::HasDescription())
|
||||
{
|
||||
SW.Send(ent->StepBasic_Group::Description());
|
||||
}
|
||||
else SW.SendUndef();
|
||||
else
|
||||
SW.SendUndef();
|
||||
|
||||
// Inherited fields of ExternallyDefinedItem
|
||||
|
||||
SW.Send (ent->ExternallyDefinedItem()->ItemId().Value());
|
||||
SW.Send(ent->ExternallyDefinedItem()->ItemId().Value());
|
||||
|
||||
SW.Send (ent->ExternallyDefinedItem()->Source());
|
||||
SW.Send(ent->ExternallyDefinedItem()->Source());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWExternallyDefinedClass::Share (const Handle(StepAP214_ExternallyDefinedClass) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWExternallyDefinedClass::Share(
|
||||
const Handle(StepAP214_ExternallyDefinedClass)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Inherited fields of Group
|
||||
|
||||
// Inherited fields of ExternallyDefinedItem
|
||||
|
||||
iter.AddItem (ent->ExternallyDefinedItem()->ItemId().Value());
|
||||
iter.AddItem(ent->ExternallyDefinedItem()->ItemId().Value());
|
||||
|
||||
iter.AddItem (ent->ExternallyDefinedItem()->Source());
|
||||
iter.AddItem(ent->ExternallyDefinedItem()->Source());
|
||||
}
|
||||
|
@@ -27,48 +27,31 @@ class StepAP214_ExternallyDefinedClass;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write tool for ExternallyDefinedClass
|
||||
class RWStepAP214_RWExternallyDefinedClass
|
||||
class RWStepAP214_RWExternallyDefinedClass
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Empty constructor
|
||||
Standard_HIDDEN RWStepAP214_RWExternallyDefinedClass();
|
||||
|
||||
|
||||
//! Reads ExternallyDefinedClass
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_ExternallyDefinedClass)& ent) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_ExternallyDefinedClass)& ent) const;
|
||||
|
||||
//! Writes ExternallyDefinedClass
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_ExternallyDefinedClass)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_ExternallyDefinedClass)& ent) const;
|
||||
|
||||
//! Fills data for graph (shared items)
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_ExternallyDefinedClass)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_ExternallyDefinedClass)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWExternallyDefinedClass_HeaderFile
|
||||
|
@@ -23,51 +23,53 @@
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepAP214_RWExternallyDefinedGeneralProperty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
RWStepAP214_RWExternallyDefinedGeneralProperty::RWStepAP214_RWExternallyDefinedGeneralProperty ()
|
||||
{
|
||||
}
|
||||
//=================================================================================================
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
RWStepAP214_RWExternallyDefinedGeneralProperty::RWStepAP214_RWExternallyDefinedGeneralProperty() {}
|
||||
|
||||
void RWStepAP214_RWExternallyDefinedGeneralProperty::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_ExternallyDefinedGeneralProperty) &ent) const
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWExternallyDefinedGeneralProperty::ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_ExternallyDefinedGeneralProperty)& ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,5,ach,"externally_defined_general_property") ) return;
|
||||
if (!data->CheckNbParams(num, 5, ach, "externally_defined_general_property"))
|
||||
return;
|
||||
|
||||
// Inherited fields of GeneralProperty
|
||||
|
||||
Handle(TCollection_HAsciiString) aGeneralProperty_Id;
|
||||
data->ReadString (num, 1, "general_property.id", ach, aGeneralProperty_Id);
|
||||
data->ReadString(num, 1, "general_property.id", ach, aGeneralProperty_Id);
|
||||
|
||||
Handle(TCollection_HAsciiString) aGeneralProperty_Name;
|
||||
data->ReadString (num, 2, "general_property.name", ach, aGeneralProperty_Name);
|
||||
data->ReadString(num, 2, "general_property.name", ach, aGeneralProperty_Name);
|
||||
|
||||
Handle(TCollection_HAsciiString) aGeneralProperty_Description;
|
||||
Standard_Boolean hasGeneralProperty_Description = Standard_True;
|
||||
if ( data->IsParamDefined (num,3) ) {
|
||||
data->ReadString (num, 3, "general_property.description", ach, aGeneralProperty_Description);
|
||||
Standard_Boolean hasGeneralProperty_Description = Standard_True;
|
||||
if (data->IsParamDefined(num, 3))
|
||||
{
|
||||
data->ReadString(num, 3, "general_property.description", ach, aGeneralProperty_Description);
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
hasGeneralProperty_Description = Standard_False;
|
||||
}
|
||||
|
||||
// Inherited fields of ExternallyDefinedItem
|
||||
|
||||
StepBasic_SourceItem aExternallyDefinedItem_ItemId;
|
||||
data->ReadEntity (num, 4, "externally_defined_item.item_id", ach, aExternallyDefinedItem_ItemId);
|
||||
data->ReadEntity(num, 4, "externally_defined_item.item_id", ach, aExternallyDefinedItem_ItemId);
|
||||
|
||||
Handle(StepBasic_ExternalSource) aExternallyDefinedItem_Source;
|
||||
data->ReadEntity (num, 5, "externally_defined_item.source", ach, STANDARD_TYPE(StepBasic_ExternalSource), aExternallyDefinedItem_Source);
|
||||
data->ReadEntity(num,
|
||||
5,
|
||||
"externally_defined_item.source",
|
||||
ach,
|
||||
STANDARD_TYPE(StepBasic_ExternalSource),
|
||||
aExternallyDefinedItem_Source);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aGeneralProperty_Id,
|
||||
@@ -78,47 +80,45 @@ void RWStepAP214_RWExternallyDefinedGeneralProperty::ReadStep (const Handle(Step
|
||||
aExternallyDefinedItem_Source);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWExternallyDefinedGeneralProperty::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_ExternallyDefinedGeneralProperty) &ent) const
|
||||
void RWStepAP214_RWExternallyDefinedGeneralProperty::WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_ExternallyDefinedGeneralProperty)& ent) const
|
||||
{
|
||||
|
||||
// Inherited fields of GeneralProperty
|
||||
|
||||
SW.Send (ent->StepBasic_GeneralProperty::Id());
|
||||
SW.Send(ent->StepBasic_GeneralProperty::Id());
|
||||
|
||||
SW.Send (ent->StepBasic_GeneralProperty::Name());
|
||||
SW.Send(ent->StepBasic_GeneralProperty::Name());
|
||||
|
||||
if ( ent->StepBasic_GeneralProperty::HasDescription() ) {
|
||||
SW.Send (ent->StepBasic_GeneralProperty::Description());
|
||||
if (ent->StepBasic_GeneralProperty::HasDescription())
|
||||
{
|
||||
SW.Send(ent->StepBasic_GeneralProperty::Description());
|
||||
}
|
||||
else SW.SendUndef();
|
||||
else
|
||||
SW.SendUndef();
|
||||
|
||||
// Inherited fields of ExternallyDefinedItem
|
||||
|
||||
SW.Send (ent->ExternallyDefinedItem()->ItemId().Value());
|
||||
SW.Send(ent->ExternallyDefinedItem()->ItemId().Value());
|
||||
|
||||
SW.Send (ent->ExternallyDefinedItem()->Source());
|
||||
SW.Send(ent->ExternallyDefinedItem()->Source());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWExternallyDefinedGeneralProperty::Share (const Handle(StepAP214_ExternallyDefinedGeneralProperty) &ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
void RWStepAP214_RWExternallyDefinedGeneralProperty::Share(
|
||||
const Handle(StepAP214_ExternallyDefinedGeneralProperty)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
|
||||
// Inherited fields of GeneralProperty
|
||||
|
||||
// Inherited fields of ExternallyDefinedItem
|
||||
|
||||
iter.AddItem (ent->ExternallyDefinedItem()->ItemId().Value());
|
||||
iter.AddItem(ent->ExternallyDefinedItem()->ItemId().Value());
|
||||
|
||||
iter.AddItem (ent->ExternallyDefinedItem()->Source());
|
||||
iter.AddItem(ent->ExternallyDefinedItem()->Source());
|
||||
}
|
||||
|
@@ -27,48 +27,33 @@ class StepAP214_ExternallyDefinedGeneralProperty;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write tool for ExternallyDefinedGeneralProperty
|
||||
class RWStepAP214_RWExternallyDefinedGeneralProperty
|
||||
class RWStepAP214_RWExternallyDefinedGeneralProperty
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Empty constructor
|
||||
Standard_HIDDEN RWStepAP214_RWExternallyDefinedGeneralProperty();
|
||||
|
||||
|
||||
//! Reads ExternallyDefinedGeneralProperty
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_ExternallyDefinedGeneralProperty)& ent) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_ExternallyDefinedGeneralProperty)& ent) const;
|
||||
|
||||
//! Writes ExternallyDefinedGeneralProperty
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_ExternallyDefinedGeneralProperty)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_ExternallyDefinedGeneralProperty)& ent) const;
|
||||
|
||||
//! Fills data for graph (shared items)
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_ExternallyDefinedGeneralProperty)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_ExternallyDefinedGeneralProperty)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWExternallyDefinedGeneralProperty_HeaderFile
|
||||
|
@@ -22,83 +22,72 @@
|
||||
#include <StepData_StepWriter.hxx>
|
||||
#include <StepRepr_RepresentationItem.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : RWStepAP214_RWRepItemGroup
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
RWStepAP214_RWRepItemGroup::RWStepAP214_RWRepItemGroup ()
|
||||
{
|
||||
}
|
||||
//=================================================================================================
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
RWStepAP214_RWRepItemGroup::RWStepAP214_RWRepItemGroup() {}
|
||||
|
||||
void RWStepAP214_RWRepItemGroup::ReadStep (const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_RepItemGroup) &ent) const
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWRepItemGroup::ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_RepItemGroup)& ent) const
|
||||
{
|
||||
// Check number of parameters
|
||||
if ( ! data->CheckNbParams(num,3,ach,"rep_item_group") ) return;
|
||||
if (!data->CheckNbParams(num, 3, ach, "rep_item_group"))
|
||||
return;
|
||||
|
||||
// Inherited fields of Group
|
||||
|
||||
Handle(TCollection_HAsciiString) aGroup_Name;
|
||||
data->ReadString (num, 1, "group.name", ach, aGroup_Name);
|
||||
data->ReadString(num, 1, "group.name", ach, aGroup_Name);
|
||||
|
||||
Handle(TCollection_HAsciiString) aGroup_Description;
|
||||
Standard_Boolean hasGroup_Description = Standard_True;
|
||||
if ( data->IsParamDefined (num,2) ) {
|
||||
data->ReadString (num, 2, "group.description", ach, aGroup_Description);
|
||||
Standard_Boolean hasGroup_Description = Standard_True;
|
||||
if (data->IsParamDefined(num, 2))
|
||||
{
|
||||
data->ReadString(num, 2, "group.description", ach, aGroup_Description);
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
hasGroup_Description = Standard_False;
|
||||
}
|
||||
|
||||
// Inherited fields of RepresentationItem
|
||||
|
||||
Handle(TCollection_HAsciiString) aRepresentationItem_Name;
|
||||
data->ReadString (num, 3, "representation_item.name", ach, aRepresentationItem_Name);
|
||||
data->ReadString(num, 3, "representation_item.name", ach, aRepresentationItem_Name);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aGroup_Name,
|
||||
hasGroup_Description,
|
||||
aGroup_Description,
|
||||
aRepresentationItem_Name);
|
||||
ent->Init(aGroup_Name, hasGroup_Description, aGroup_Description, aRepresentationItem_Name);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : WriteStep
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWRepItemGroup::WriteStep (StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_RepItemGroup) &ent) const
|
||||
void RWStepAP214_RWRepItemGroup::WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_RepItemGroup)& ent) const
|
||||
{
|
||||
|
||||
// Inherited fields of Group
|
||||
|
||||
SW.Send (ent->StepBasic_Group::Name());
|
||||
SW.Send(ent->StepBasic_Group::Name());
|
||||
|
||||
if ( ent->StepBasic_Group::HasDescription() ) {
|
||||
SW.Send (ent->StepBasic_Group::Description());
|
||||
if (ent->StepBasic_Group::HasDescription())
|
||||
{
|
||||
SW.Send(ent->StepBasic_Group::Description());
|
||||
}
|
||||
else SW.SendUndef();
|
||||
else
|
||||
SW.SendUndef();
|
||||
|
||||
// Inherited fields of RepresentationItem
|
||||
|
||||
SW.Send (ent->RepresentationItem()->Name());
|
||||
SW.Send(ent->RepresentationItem()->Name());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Share
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void RWStepAP214_RWRepItemGroup::Share (const Handle(StepAP214_RepItemGroup)&,
|
||||
Interface_EntityIterator&) const
|
||||
void RWStepAP214_RWRepItemGroup::Share(const Handle(StepAP214_RepItemGroup)&,
|
||||
Interface_EntityIterator&) const
|
||||
{
|
||||
// Inherited fields of Group
|
||||
// Inherited fields of RepresentationItem
|
||||
|
@@ -27,48 +27,31 @@ class StepAP214_RepItemGroup;
|
||||
class StepData_StepWriter;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
//! Read & Write tool for RepItemGroup
|
||||
class RWStepAP214_RWRepItemGroup
|
||||
class RWStepAP214_RWRepItemGroup
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Empty constructor
|
||||
Standard_HIDDEN RWStepAP214_RWRepItemGroup();
|
||||
|
||||
|
||||
//! Reads RepItemGroup
|
||||
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP214_RepItemGroup)& ent) const;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(StepAP214_RepItemGroup)& ent) const;
|
||||
|
||||
//! Writes RepItemGroup
|
||||
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP214_RepItemGroup)& ent) const;
|
||||
|
||||
Standard_HIDDEN void WriteStep(StepData_StepWriter& SW,
|
||||
const Handle(StepAP214_RepItemGroup)& ent) const;
|
||||
|
||||
//! Fills data for graph (shared items)
|
||||
Standard_HIDDEN void Share (const Handle(StepAP214_RepItemGroup)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
|
||||
|
||||
Standard_HIDDEN void Share(const Handle(StepAP214_RepItemGroup)& ent,
|
||||
Interface_EntityIterator& iter) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_RWRepItemGroup_HeaderFile
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -28,7 +28,6 @@ class Interface_Check;
|
||||
class Standard_Transient;
|
||||
class StepData_StepWriter;
|
||||
|
||||
|
||||
class RWStepAP214_ReadWriteModule;
|
||||
DEFINE_STANDARD_HANDLE(RWStepAP214_ReadWriteModule, StepData_ReadWriteModule)
|
||||
|
||||
@@ -37,52 +36,45 @@ class RWStepAP214_ReadWriteModule : public StepData_ReadWriteModule
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_HIDDEN RWStepAP214_ReadWriteModule();
|
||||
|
||||
|
||||
//! associates a positive Case Number to each type of StepAP214 entity,
|
||||
//! given as a String defined in the EXPRESS form
|
||||
Standard_HIDDEN Standard_Integer CaseStep (const TCollection_AsciiString& atype) const Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN Standard_Integer
|
||||
CaseStep(const TCollection_AsciiString& atype) const Standard_OVERRIDE;
|
||||
|
||||
//! associates a positive Case Number to each type of StepAP214 Complex entity,
|
||||
//! given as a String defined in the EXPRESS form
|
||||
Standard_HIDDEN virtual Standard_Integer CaseStep (const TColStd_SequenceOfAsciiString& types) const Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN virtual Standard_Integer CaseStep(
|
||||
const TColStd_SequenceOfAsciiString& types) const Standard_OVERRIDE;
|
||||
|
||||
//! returns True if the Case Number corresponds to a Complex Type
|
||||
Standard_HIDDEN virtual Standard_Boolean IsComplex (const Standard_Integer CN) const Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN virtual Standard_Boolean IsComplex(const Standard_Integer CN) const
|
||||
Standard_OVERRIDE;
|
||||
|
||||
//! returns a StepType (defined in EXPRESS form which belongs to a
|
||||
//! Type of Entity, identified by its CaseNumber determined by Protocol
|
||||
Standard_HIDDEN const TCollection_AsciiString& StepType (const Standard_Integer CN) const Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN virtual Standard_Boolean ComplexType (const Standard_Integer CN, TColStd_SequenceOfAsciiString& types) const Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN void ReadStep (const Standard_Integer CN, const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN void WriteStep (const Standard_Integer CN, StepData_StepWriter& SW, const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
|
||||
Standard_HIDDEN const TCollection_AsciiString& StepType(const Standard_Integer CN) const
|
||||
Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN virtual Standard_Boolean ComplexType(const Standard_Integer CN,
|
||||
TColStd_SequenceOfAsciiString& types) const
|
||||
Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN void ReadStep(const Standard_Integer CN,
|
||||
const Handle(StepData_StepReaderData)& data,
|
||||
const Standard_Integer num,
|
||||
Handle(Interface_Check)& ach,
|
||||
const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
|
||||
|
||||
Standard_HIDDEN void WriteStep(const Standard_Integer CN,
|
||||
StepData_StepWriter& SW,
|
||||
const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(RWStepAP214_ReadWriteModule,StepData_ReadWriteModule)
|
||||
DEFINE_STANDARD_RTTIEXT(RWStepAP214_ReadWriteModule, StepData_ReadWriteModule)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _RWStepAP214_ReadWriteModule_HeaderFile
|
||||
|
Reference in New Issue
Block a user