mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
28
src/MFunction/MFunction.cdl
Executable file
28
src/MFunction/MFunction.cdl
Executable file
@@ -0,0 +1,28 @@
|
||||
-- File: MFunction.cdl
|
||||
-- Created: Thu Jun 17 11:48:50 1999
|
||||
-- Author: Vladislav ROMASHKO
|
||||
-- <vro@flox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 1999
|
||||
|
||||
package MFunction
|
||||
|
||||
uses
|
||||
|
||||
PDF,
|
||||
CDM,
|
||||
MDF,
|
||||
TDF
|
||||
|
||||
is
|
||||
|
||||
class FunctionStorageDriver;
|
||||
class FunctionRetrievalDriver;
|
||||
|
||||
AddStorageDrivers(aDriverSeq : ASDriverHSequence from MDF;theMessageDriver : MessageDriver from CDM);
|
||||
---Purpose: Adds the function storage driver to <aDriverSeq>.
|
||||
|
||||
AddRetrievalDrivers(aDriverSeq : ARDriverHSequence from MDF;theMessageDriver : MessageDriver from CDM);
|
||||
---Purpose: Adds the function retrieval driver to <aDriverSeq>.
|
||||
|
||||
end MFunction;
|
||||
|
34
src/MFunction/MFunction.cxx
Executable file
34
src/MFunction/MFunction.cxx
Executable file
@@ -0,0 +1,34 @@
|
||||
// File: MFunction.cxx
|
||||
// Created: Thu Jun 24 09:34:40 1999
|
||||
// Author: Vladislav ROMASHKO
|
||||
// <vro@flox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MFunction.ixx>
|
||||
|
||||
#include <MDF_ARDriverHSequence.hxx>
|
||||
#include <MDF_ASDriverHSequence.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
#include <MFunction_FunctionStorageDriver.hxx>
|
||||
#include <MFunction_FunctionRetrievalDriver.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : AddStorageDrivers
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MFunction::AddStorageDrivers(const Handle(MDF_ASDriverHSequence)& aDriverSeq, const Handle(CDM_MessageDriver)& theMsgDriver)
|
||||
{
|
||||
aDriverSeq->Append(new MFunction_FunctionStorageDriver(theMsgDriver));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : AddRetrievalDrivers
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MFunction::AddRetrievalDrivers(const Handle(MDF_ARDriverHSequence)& aDriverSeq,const Handle(CDM_MessageDriver)& theMsgDriver)
|
||||
{
|
||||
aDriverSeq->Append(new MFunction_FunctionRetrievalDriver(theMsgDriver));
|
||||
}
|
35
src/MFunction/MFunction_FunctionRetrievalDriver.cdl
Executable file
35
src/MFunction/MFunction_FunctionRetrievalDriver.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: MFunction_FunctionRetrievalDriver.cdl
|
||||
-- Created: Thu Jun 17 12:10:22 1999
|
||||
-- Author: Vladislav ROMASHKO
|
||||
-- <vro@flox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 1999
|
||||
|
||||
class FunctionRetrievalDriver from MFunction inherits ARDriver from MDF
|
||||
|
||||
|
||||
uses
|
||||
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
Create(theMessageDriver : MessageDriver from CDM)
|
||||
returns mutable FunctionRetrievalDriver from MFunction;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end FunctionRetrievalDriver;
|
35
src/MFunction/MFunction_FunctionRetrievalDriver.cxx
Executable file
35
src/MFunction/MFunction_FunctionRetrievalDriver.cxx
Executable file
@@ -0,0 +1,35 @@
|
||||
// File: MFunction_FunctionRetrievalDriver.cxx
|
||||
// Created: Thu Jun 17 12:11:20 1999
|
||||
// Author: Vladislav ROMASHKO
|
||||
// <vro@flox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MFunction_FunctionRetrievalDriver.ixx>
|
||||
|
||||
#include <PFunction_Function.hxx>
|
||||
#include <TFunction_Function.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
#include <Standard_NoSuchObject.hxx>
|
||||
|
||||
MFunction_FunctionRetrievalDriver::MFunction_FunctionRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ARDriver(theMsgDriver)
|
||||
{}
|
||||
|
||||
Standard_Integer MFunction_FunctionRetrievalDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
Handle(Standard_Type) MFunction_FunctionRetrievalDriver::SourceType() const
|
||||
{ return STANDARD_TYPE(PFunction_Function); }
|
||||
|
||||
Handle(TDF_Attribute) MFunction_FunctionRetrievalDriver::NewEmpty() const
|
||||
{ return new TFunction_Function(); }
|
||||
|
||||
void MFunction_FunctionRetrievalDriver::Paste (const Handle(PDF_Attribute)& Source,
|
||||
const Handle(TDF_Attribute)& Target,
|
||||
// const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
const Handle(MDF_RRelocationTable)& ) const
|
||||
{
|
||||
Handle(PFunction_Function) S = Handle(PFunction_Function)::DownCast(Source);
|
||||
Handle(TFunction_Function) T = Handle(TFunction_Function)::DownCast(Target);
|
||||
T->SetDriverGUID(S->GetDriverGUID());
|
||||
T->SetFailure(S->GetFailure());
|
||||
}
|
34
src/MFunction/MFunction_FunctionStorageDriver.cdl
Executable file
34
src/MFunction/MFunction_FunctionStorageDriver.cdl
Executable file
@@ -0,0 +1,34 @@
|
||||
-- File: MFunction_FunctionStorageDriver.cdl
|
||||
-- Created: Thu Jun 17 11:52:14 1999
|
||||
-- Author: Vladislav ROMASHKO
|
||||
-- <vro@flox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 1999
|
||||
|
||||
class FunctionStorageDriver from MFunction inherits ASDriver from MDF
|
||||
|
||||
uses
|
||||
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
Create(theMessageDriver : MessageDriver from CDM)
|
||||
returns mutable FunctionStorageDriver from MFunction;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
end FunctionStorageDriver;
|
35
src/MFunction/MFunction_FunctionStorageDriver.cxx
Executable file
35
src/MFunction/MFunction_FunctionStorageDriver.cxx
Executable file
@@ -0,0 +1,35 @@
|
||||
// File: MFunction_FunctionStorageDriver.cxx
|
||||
// Created: Thu Jun 17 11:58:51 1999
|
||||
// Author: Vladislav ROMASHKO
|
||||
// <vro@flox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MFunction_FunctionStorageDriver.ixx>
|
||||
|
||||
#include <TFunction_Function.hxx>
|
||||
#include <PFunction_Function.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
#include <Standard_NoSuchObject.hxx>
|
||||
|
||||
MFunction_FunctionStorageDriver::MFunction_FunctionStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ASDriver(theMsgDriver)
|
||||
{}
|
||||
|
||||
Standard_Integer MFunction_FunctionStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
Handle(Standard_Type) MFunction_FunctionStorageDriver::SourceType() const
|
||||
{ return STANDARD_TYPE(TFunction_Function); }
|
||||
|
||||
Handle(PDF_Attribute) MFunction_FunctionStorageDriver::NewEmpty() const
|
||||
{ return new PFunction_Function(); }
|
||||
|
||||
void MFunction_FunctionStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
|
||||
const Handle(PDF_Attribute)& Target,
|
||||
// const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
const Handle(MDF_SRelocationTable)& ) const
|
||||
{
|
||||
Handle(TFunction_Function) S = Handle(TFunction_Function)::DownCast (Source);
|
||||
Handle(PFunction_Function) T = Handle(PFunction_Function)::DownCast (Target);
|
||||
T->SetDriverGUID(S->GetDriverGUID());
|
||||
T->SetFailure(S->GetFailure());
|
||||
}
|
Reference in New Issue
Block a user