mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
66
src/MDataStd/MDataStd_IntegerListRetrievalDriver.cxx
Executable file
66
src/MDataStd/MDataStd_IntegerListRetrievalDriver.cxx
Executable file
@@ -0,0 +1,66 @@
|
||||
// File: MDataStd_IntegerListRetrievalDriver.cxx
|
||||
// Created: May 29 11:40:00 2007
|
||||
// Author: Vlad Romashko
|
||||
// <vladislav.romashko@opencascade.com>
|
||||
// Copyright: Open CASCADE
|
||||
|
||||
#include <MDataStd_IntegerListRetrievalDriver.ixx>
|
||||
#include <PDataStd_IntegerList.hxx>
|
||||
#include <TDataStd_IntegerList.hxx>
|
||||
#include <MDataStd.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : MDataStd_IntegerListRetrievalDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
MDataStd_IntegerListRetrievalDriver::MDataStd_IntegerListRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ARDriver(theMsgDriver)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Standard_Integer MDataStd_IntegerListRetrievalDriver::VersionNumber() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Handle(Standard_Type) MDataStd_IntegerListRetrievalDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(PDataStd_IntegerList);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Handle(TDF_Attribute) MDataStd_IntegerListRetrievalDriver::NewEmpty () const
|
||||
{
|
||||
return new TDataStd_IntegerList();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void MDataStd_IntegerListRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,
|
||||
const Handle(TDF_Attribute)& Target,
|
||||
const Handle(MDF_RRelocationTable)& ) const
|
||||
{
|
||||
Handle(PDataStd_IntegerList) S = Handle(PDataStd_IntegerList)::DownCast (Source);
|
||||
Handle(TDataStd_IntegerList) T = Handle(TDataStd_IntegerList)::DownCast (Target);
|
||||
|
||||
Standard_Integer i, lower = S->Lower(), upper = S->Upper();
|
||||
for (i = lower; i <= upper; i++)
|
||||
{
|
||||
T->Append(S->Value(i));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user