From 152efca7b28ad5f55162c64836adbab24b643202 Mon Sep 17 00:00:00 2001 From: pdn Date: Fri, 11 Sep 2015 10:35:37 +0300 Subject: [PATCH] Linux and Mac compilation fixes --- src/BinMPrsStd/BinMPrsStd.cxx | 32 ---- src/BinMPrsStd/BinMPrsStd.hxx | 65 --------- .../BinMPrsStd_AISPresentationDriver.cxx | 137 ------------------ .../BinMPrsStd_AISPresentationDriver.hxx | 72 --------- src/BinMPrsStd/BinMPrsStd_PositionDriver.hxx | 72 --------- src/BinMPrsStd/FILES | 6 - src/TKBin/CMakeLists.txt | 1 - src/TKXml/CMakeLists.txt | 1 - .../XmlMDataXtd_PositionDriver.cxx | 1 - .../XmlMDataXtd_PresentationDriver.cxx | 1 - src/XmlMPrsStd/FILES | 6 - src/XmlMPrsStd/XmlMPrsStd.cxx | 32 ---- src/XmlMPrsStd/XmlMPrsStd.hxx | 65 --------- .../XmlMPrsStd_AISPresentationDriver.hxx | 72 --------- src/XmlMPrsStd/XmlMPrsStd_PositionDriver.hxx | 72 --------- 15 files changed, 635 deletions(-) delete mode 100644 src/BinMPrsStd/BinMPrsStd.cxx delete mode 100644 src/BinMPrsStd/BinMPrsStd.hxx delete mode 100644 src/BinMPrsStd/BinMPrsStd_AISPresentationDriver.cxx delete mode 100644 src/BinMPrsStd/BinMPrsStd_AISPresentationDriver.hxx delete mode 100644 src/BinMPrsStd/BinMPrsStd_PositionDriver.hxx delete mode 100644 src/BinMPrsStd/FILES delete mode 100644 src/XmlMPrsStd/FILES delete mode 100644 src/XmlMPrsStd/XmlMPrsStd.cxx delete mode 100644 src/XmlMPrsStd/XmlMPrsStd.hxx delete mode 100644 src/XmlMPrsStd/XmlMPrsStd_AISPresentationDriver.hxx delete mode 100644 src/XmlMPrsStd/XmlMPrsStd_PositionDriver.hxx diff --git a/src/BinMPrsStd/BinMPrsStd.cxx b/src/BinMPrsStd/BinMPrsStd.cxx deleted file mode 100644 index 76f9a00ee9..0000000000 --- a/src/BinMPrsStd/BinMPrsStd.cxx +++ /dev/null @@ -1,32 +0,0 @@ -// Created on: 2004-05-17 -// Created by: Sergey ZARITCHNY -// Copyright (c) 2004-2014 OPEN CASCADE SAS -// -// This file is part of Open CASCADE Technology software library. -// -// This library is free software; you can redistribute it and/or modify it under -// the terms of the GNU Lesser General Public License version 2.1 as published -// by the Free Software Foundation, with special exception defined in the file -// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -// distribution for complete text of the license and disclaimer of any warranty. -// -// Alternatively, this file may be used under the terms of Open CASCADE -// commercial license or contractual agreement. - - -#include -#include -#include -#include -#include - -//======================================================================= -//function : AddDrivers -//purpose : -//======================================================================= -void BinMPrsStd::AddDrivers (const Handle(BinMDF_ADriverTable)& aDriverTable, - const Handle(CDM_MessageDriver)& aMessageDriver) -{ - aDriverTable->AddDriver (new BinMPrsStd_AISPresentationDriver(aMessageDriver)); - aDriverTable->AddDriver (new BinMPrsStd_PositionDriver(aMessageDriver)); -} diff --git a/src/BinMPrsStd/BinMPrsStd.hxx b/src/BinMPrsStd/BinMPrsStd.hxx deleted file mode 100644 index fb683363a1..0000000000 --- a/src/BinMPrsStd/BinMPrsStd.hxx +++ /dev/null @@ -1,65 +0,0 @@ -// Created on: 2004-05-17 -// Created by: Sergey ZARITCHNY -// Copyright (c) 2004-2014 OPEN CASCADE SAS -// -// This file is part of Open CASCADE Technology software library. -// -// This library is free software; you can redistribute it and/or modify it under -// the terms of the GNU Lesser General Public License version 2.1 as published -// by the Free Software Foundation, with special exception defined in the file -// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -// distribution for complete text of the license and disclaimer of any warranty. -// -// Alternatively, this file may be used under the terms of Open CASCADE -// commercial license or contractual agreement. - -#ifndef _BinMPrsStd_HeaderFile -#define _BinMPrsStd_HeaderFile - -#include -#include -#include - -class BinMDF_ADriverTable; -class CDM_MessageDriver; -class BinMPrsStd_AISPresentationDriver; -class BinMPrsStd_PositionDriver; - - - -class BinMPrsStd -{ -public: - - DEFINE_STANDARD_ALLOC - - - //! Adds the attribute storage-retrieval driver to . - Standard_EXPORT static void AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable, const Handle(CDM_MessageDriver)& theMessageDriver); - - - - -protected: - - - - - -private: - - - - -friend class BinMPrsStd_AISPresentationDriver; -friend class BinMPrsStd_PositionDriver; - -}; - - - - - - - -#endif // _BinMPrsStd_HeaderFile diff --git a/src/BinMPrsStd/BinMPrsStd_AISPresentationDriver.cxx b/src/BinMPrsStd/BinMPrsStd_AISPresentationDriver.cxx deleted file mode 100644 index c01f00c46a..0000000000 --- a/src/BinMPrsStd/BinMPrsStd_AISPresentationDriver.cxx +++ /dev/null @@ -1,137 +0,0 @@ -// Created on: 2004-05-17 -// Created by: Sergey ZARITCHNY -// Copyright (c) 2004-2014 OPEN CASCADE SAS -// -// This file is part of Open CASCADE Technology software library. -// -// This library is free software; you can redistribute it and/or modify it under -// the terms of the GNU Lesser General Public License version 2.1 as published -// by the Free Software Foundation, with special exception defined in the file -// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -// distribution for complete text of the license and disclaimer of any warranty. -// -// Alternatively, this file may be used under the terms of Open CASCADE -// commercial license or contractual agreement. - - -#include -#include -#include -#include -#include -#include -#include -#include - -//======================================================================= -//function : BinMDataStd_AISPresentationDriver -//purpose : Constructor -//======================================================================= -BinMPrsStd_AISPresentationDriver::BinMPrsStd_AISPresentationDriver - (const Handle(CDM_MessageDriver)& theMsgDriver) - : BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TPrsStd_AISPresentation)->Name()) -{ -} - -//======================================================================= -//function : NewEmpty -//purpose : -//======================================================================= - -Handle(TDF_Attribute) BinMPrsStd_AISPresentationDriver::NewEmpty() const -{ - return new TPrsStd_AISPresentation(); -} - -//======================================================================= -//function : Paste -//purpose : persistent -> transient (retrieve) -//======================================================================= - -Standard_Boolean BinMPrsStd_AISPresentationDriver::Paste - (const BinObjMgt_Persistent& theSource, - const Handle(TDF_Attribute)& theTarget, - BinObjMgt_RRelocationTable& ) const -{ - Handle(TPrsStd_AISPresentation) anAtt = Handle(TPrsStd_AISPresentation)::DownCast(theTarget); - Standard_Integer aValue; -//Display status - Standard_Boolean ok = theSource >> aValue; - if (!ok) return ok; - anAtt->SetDisplayed((Standard_Boolean)aValue); - -//GUID - Standard_GUID aGUID; - ok = theSource >> aGUID; - if (!ok) return ok; - anAtt->SetDriverGUID(aGUID); - -//Color - ok = theSource >> aValue; - if (!ok) return ok; - if(aValue != -1) anAtt->SetColor( (Quantity_NameOfColor)(aValue) ); - else anAtt->UnsetColor(); - -//Material - ok = theSource >> aValue; - if (!ok) return ok; - if(aValue != -1) anAtt->SetMaterial( (Graphic3d_NameOfMaterial)(aValue) ); - else anAtt->UnsetMaterial(); - -//Transparency - Standard_Real aRValue; - ok = theSource >> aRValue; - if (!ok) return ok; - if(aRValue != -1.) anAtt->SetTransparency(aRValue); - else anAtt->UnsetTransparency(); - -//Width - ok = theSource >> aRValue; - if (!ok) return ok; - if(aRValue != -1.) anAtt->SetWidth( aRValue ); - else anAtt->UnsetWidth(); - -//Mode - ok = theSource >> aValue; - if (!ok) return ok; - if(aValue != -1) anAtt->SetMode(aValue); - else anAtt->UnsetMode(); - - return ok; -} - -//======================================================================= -//function : Paste -//purpose : transient -> persistent (store) -//======================================================================= - -void BinMPrsStd_AISPresentationDriver::Paste (const Handle(TDF_Attribute)& theSource, - BinObjMgt_Persistent& theTarget, - BinObjMgt_SRelocationTable& ) const -{ - Handle(TPrsStd_AISPresentation) anAtt = Handle(TPrsStd_AISPresentation)::DownCast(theSource); -//1 - theTarget.PutBoolean(anAtt->IsDisplayed());//Bool -//2 - theTarget.PutGUID(anAtt->GetDriverGUID());//GUID -//3 - if(anAtt->HasOwnColor()) - theTarget.PutInteger((Standard_Integer)anAtt->Color());//Color - else theTarget.PutInteger(-1); -//4 - if(anAtt->HasOwnMaterial()) - theTarget.PutInteger((Standard_Integer)anAtt->Material()); - else theTarget.PutInteger(-1); -//5 - if(anAtt->HasOwnTransparency()) - theTarget.PutReal(anAtt->Transparency()); //Real - else theTarget.PutReal(-1.); -//6 - if(anAtt->HasOwnWidth()) - theTarget.PutReal(anAtt->Width());// Real - else theTarget.PutReal(-1.); -//7 - if(anAtt->HasOwnMode()) - theTarget.PutInteger(anAtt->Mode()); //Int - else theTarget.PutInteger(-1); -} diff --git a/src/BinMPrsStd/BinMPrsStd_AISPresentationDriver.hxx b/src/BinMPrsStd/BinMPrsStd_AISPresentationDriver.hxx deleted file mode 100644 index 095a99d101..0000000000 --- a/src/BinMPrsStd/BinMPrsStd_AISPresentationDriver.hxx +++ /dev/null @@ -1,72 +0,0 @@ -// Created on: 2004-05-17 -// Created by: Sergey ZARITCHNY -// Copyright (c) 2004-2014 OPEN CASCADE SAS -// -// This file is part of Open CASCADE Technology software library. -// -// This library is free software; you can redistribute it and/or modify it under -// the terms of the GNU Lesser General Public License version 2.1 as published -// by the Free Software Foundation, with special exception defined in the file -// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -// distribution for complete text of the license and disclaimer of any warranty. -// -// Alternatively, this file may be used under the terms of Open CASCADE -// commercial license or contractual agreement. - -#ifndef _BinMPrsStd_AISPresentationDriver_HeaderFile -#define _BinMPrsStd_AISPresentationDriver_HeaderFile - -#include -#include - -#include -#include -#include -#include -class CDM_MessageDriver; -class TDF_Attribute; -class BinObjMgt_Persistent; - - -class BinMPrsStd_AISPresentationDriver; -DEFINE_STANDARD_HANDLE(BinMPrsStd_AISPresentationDriver, BinMDF_ADriver) - -//! AISPresentation Attribute Driver. -class BinMPrsStd_AISPresentationDriver : public BinMDF_ADriver -{ - -public: - - - Standard_EXPORT BinMPrsStd_AISPresentationDriver(const Handle(CDM_MessageDriver)& theMessageDriver); - - Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const; - - Standard_EXPORT Standard_Boolean Paste (const BinObjMgt_Persistent& Source, const Handle(TDF_Attribute)& Target, BinObjMgt_RRelocationTable& RelocTable) const; - - Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Source, BinObjMgt_Persistent& Target, BinObjMgt_SRelocationTable& RelocTable) const; - - - - - DEFINE_STANDARD_RTTI(BinMPrsStd_AISPresentationDriver,BinMDF_ADriver) - -protected: - - - - -private: - - - - -}; - - - - - - - -#endif // _BinMPrsStd_AISPresentationDriver_HeaderFile diff --git a/src/BinMPrsStd/BinMPrsStd_PositionDriver.hxx b/src/BinMPrsStd/BinMPrsStd_PositionDriver.hxx deleted file mode 100644 index c527f3dae9..0000000000 --- a/src/BinMPrsStd/BinMPrsStd_PositionDriver.hxx +++ /dev/null @@ -1,72 +0,0 @@ -// Created on: 2004-05-17 -// Created by: Sergey ZARITCHNY -// Copyright (c) 2004-2014 OPEN CASCADE SAS -// -// This file is part of Open CASCADE Technology software library. -// -// This library is free software; you can redistribute it and/or modify it under -// the terms of the GNU Lesser General Public License version 2.1 as published -// by the Free Software Foundation, with special exception defined in the file -// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -// distribution for complete text of the license and disclaimer of any warranty. -// -// Alternatively, this file may be used under the terms of Open CASCADE -// commercial license or contractual agreement. - -#ifndef _BinMPrsStd_PositionDriver_HeaderFile -#define _BinMPrsStd_PositionDriver_HeaderFile - -#include -#include - -#include -#include -#include -#include -class CDM_MessageDriver; -class TDF_Attribute; -class BinObjMgt_Persistent; - - -class BinMPrsStd_PositionDriver; -DEFINE_STANDARD_HANDLE(BinMPrsStd_PositionDriver, BinMDF_ADriver) - -//! Position Attribute Driver. -class BinMPrsStd_PositionDriver : public BinMDF_ADriver -{ - -public: - - - Standard_EXPORT BinMPrsStd_PositionDriver(const Handle(CDM_MessageDriver)& theMessageDriver); - - Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const; - - Standard_EXPORT Standard_Boolean Paste (const BinObjMgt_Persistent& Source, const Handle(TDF_Attribute)& Target, BinObjMgt_RRelocationTable& RelocTable) const; - - Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Source, BinObjMgt_Persistent& Target, BinObjMgt_SRelocationTable& RelocTable) const; - - - - - DEFINE_STANDARD_RTTI(BinMPrsStd_PositionDriver,BinMDF_ADriver) - -protected: - - - - -private: - - - - -}; - - - - - - - -#endif // _BinMPrsStd_PositionDriver_HeaderFile diff --git a/src/BinMPrsStd/FILES b/src/BinMPrsStd/FILES deleted file mode 100644 index 0b21d6f35e..0000000000 --- a/src/BinMPrsStd/FILES +++ /dev/null @@ -1,6 +0,0 @@ -BinMPrsStd.cxx -BinMPrsStd.hxx -BinMPrsStd_AISPresentationDriver.cxx -BinMPrsStd_AISPresentationDriver.hxx -BinMPrsStd_PositionDriver.cxx -BinMPrsStd_PositionDriver.hxx diff --git a/src/TKBin/CMakeLists.txt b/src/TKBin/CMakeLists.txt index 327e9ac911..c5493d9261 100644 --- a/src/TKBin/CMakeLists.txt +++ b/src/TKBin/CMakeLists.txt @@ -3,7 +3,6 @@ project(TKBin) set (TOOLKIT_MODULES BinDrivers BinMDataXtd - BinMPrsStd BinMNaming ) diff --git a/src/TKXml/CMakeLists.txt b/src/TKXml/CMakeLists.txt index e4ee3ae74f..9ffce10f2a 100644 --- a/src/TKXml/CMakeLists.txt +++ b/src/TKXml/CMakeLists.txt @@ -4,7 +4,6 @@ set (TOOLKIT_MODULES XmlDrivers XmlMDataXtd XmlMNaming - XmlMPrsStd ) OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit) diff --git a/src/XmlMDataXtd/XmlMDataXtd_PositionDriver.cxx b/src/XmlMDataXtd/XmlMDataXtd_PositionDriver.cxx index d6b4fed9b9..c90172e3f1 100644 --- a/src/XmlMDataXtd/XmlMDataXtd_PositionDriver.cxx +++ b/src/XmlMDataXtd/XmlMDataXtd_PositionDriver.cxx @@ -20,7 +20,6 @@ #include #include #include -#include #include #include diff --git a/src/XmlMDataXtd/XmlMDataXtd_PresentationDriver.cxx b/src/XmlMDataXtd/XmlMDataXtd_PresentationDriver.cxx index 4e50e1873a..e2aa82ee27 100644 --- a/src/XmlMDataXtd/XmlMDataXtd_PresentationDriver.cxx +++ b/src/XmlMDataXtd/XmlMDataXtd_PresentationDriver.cxx @@ -19,7 +19,6 @@ #include #include #include -#include #include #include diff --git a/src/XmlMPrsStd/FILES b/src/XmlMPrsStd/FILES deleted file mode 100644 index 4a2d548cdd..0000000000 --- a/src/XmlMPrsStd/FILES +++ /dev/null @@ -1,6 +0,0 @@ -XmlMPrsStd.cxx -XmlMPrsStd.hxx -XmlMPrsStd_AISPresentationDriver.cxx -XmlMPrsStd_AISPresentationDriver.hxx -XmlMPrsStd_PositionDriver.cxx -XmlMPrsStd_PositionDriver.hxx diff --git a/src/XmlMPrsStd/XmlMPrsStd.cxx b/src/XmlMPrsStd/XmlMPrsStd.cxx deleted file mode 100644 index 8fef9cd914..0000000000 --- a/src/XmlMPrsStd/XmlMPrsStd.cxx +++ /dev/null @@ -1,32 +0,0 @@ -// Created on: 2001-07-09 -// Created by: Julia DOROVSKIKH -// Copyright (c) 2001-2014 OPEN CASCADE SAS -// -// This file is part of Open CASCADE Technology software library. -// -// This library is free software; you can redistribute it and/or modify it under -// the terms of the GNU Lesser General Public License version 2.1 as published -// by the Free Software Foundation, with special exception defined in the file -// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -// distribution for complete text of the license and disclaimer of any warranty. -// -// Alternatively, this file may be used under the terms of Open CASCADE -// commercial license or contractual agreement. - - -#include -#include -#include -#include -#include - -///======================================================================= -//function : AddDrivers -//purpose : -//======================================================================= -void XmlMPrsStd::AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, - const Handle(CDM_MessageDriver)& aMessageDriver) -{ - aDriverTable->AddDriver(new XmlMPrsStd_PositionDriver(aMessageDriver)); - aDriverTable->AddDriver(new XmlMPrsStd_AISPresentationDriver(aMessageDriver)); -} diff --git a/src/XmlMPrsStd/XmlMPrsStd.hxx b/src/XmlMPrsStd/XmlMPrsStd.hxx deleted file mode 100644 index 9dee220662..0000000000 --- a/src/XmlMPrsStd/XmlMPrsStd.hxx +++ /dev/null @@ -1,65 +0,0 @@ -// Created on: 2001-07-09 -// Created by: Julia DOROVSKIKH -// Copyright (c) 2001-2014 OPEN CASCADE SAS -// -// This file is part of Open CASCADE Technology software library. -// -// This library is free software; you can redistribute it and/or modify it under -// the terms of the GNU Lesser General Public License version 2.1 as published -// by the Free Software Foundation, with special exception defined in the file -// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -// distribution for complete text of the license and disclaimer of any warranty. -// -// Alternatively, this file may be used under the terms of Open CASCADE -// commercial license or contractual agreement. - -#ifndef _XmlMPrsStd_HeaderFile -#define _XmlMPrsStd_HeaderFile - -#include -#include -#include - -class XmlMDF_ADriverTable; -class CDM_MessageDriver; -class XmlMPrsStd_PositionDriver; -class XmlMPrsStd_AISPresentationDriver; - - - -class XmlMPrsStd -{ -public: - - DEFINE_STANDARD_ALLOC - - - //! Adds the attribute storage drivers to . - Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(CDM_MessageDriver)& theMessageDriver); - - - - -protected: - - - - - -private: - - - - -friend class XmlMPrsStd_PositionDriver; -friend class XmlMPrsStd_AISPresentationDriver; - -}; - - - - - - - -#endif // _XmlMPrsStd_HeaderFile diff --git a/src/XmlMPrsStd/XmlMPrsStd_AISPresentationDriver.hxx b/src/XmlMPrsStd/XmlMPrsStd_AISPresentationDriver.hxx deleted file mode 100644 index ed31549578..0000000000 --- a/src/XmlMPrsStd/XmlMPrsStd_AISPresentationDriver.hxx +++ /dev/null @@ -1,72 +0,0 @@ -// Created on: 2001-09-04 -// Created by: Julia DOROVSKIKH -// Copyright (c) 2001-2014 OPEN CASCADE SAS -// -// This file is part of Open CASCADE Technology software library. -// -// This library is free software; you can redistribute it and/or modify it under -// the terms of the GNU Lesser General Public License version 2.1 as published -// by the Free Software Foundation, with special exception defined in the file -// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -// distribution for complete text of the license and disclaimer of any warranty. -// -// Alternatively, this file may be used under the terms of Open CASCADE -// commercial license or contractual agreement. - -#ifndef _XmlMPrsStd_AISPresentationDriver_HeaderFile -#define _XmlMPrsStd_AISPresentationDriver_HeaderFile - -#include -#include - -#include -#include -#include -#include -class CDM_MessageDriver; -class TDF_Attribute; -class XmlObjMgt_Persistent; - - -class XmlMPrsStd_AISPresentationDriver; -DEFINE_STANDARD_HANDLE(XmlMPrsStd_AISPresentationDriver, XmlMDF_ADriver) - -//! Attribute Driver. -class XmlMPrsStd_AISPresentationDriver : public XmlMDF_ADriver -{ - -public: - - - Standard_EXPORT XmlMPrsStd_AISPresentationDriver(const Handle(CDM_MessageDriver)& theMessageDriver); - - Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const; - - Standard_EXPORT Standard_Boolean Paste (const XmlObjMgt_Persistent& Source, const Handle(TDF_Attribute)& Target, XmlObjMgt_RRelocationTable& RelocTable) const; - - Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Source, XmlObjMgt_Persistent& Target, XmlObjMgt_SRelocationTable& RelocTable) const; - - - - - DEFINE_STANDARD_RTTI(XmlMPrsStd_AISPresentationDriver,XmlMDF_ADriver) - -protected: - - - - -private: - - - - -}; - - - - - - - -#endif // _XmlMPrsStd_AISPresentationDriver_HeaderFile diff --git a/src/XmlMPrsStd/XmlMPrsStd_PositionDriver.hxx b/src/XmlMPrsStd/XmlMPrsStd_PositionDriver.hxx deleted file mode 100644 index 7a4b86588c..0000000000 --- a/src/XmlMPrsStd/XmlMPrsStd_PositionDriver.hxx +++ /dev/null @@ -1,72 +0,0 @@ -// Created on: 2001-09-04 -// Created by: Julia DOROVSKIKH -// Copyright (c) 2001-2014 OPEN CASCADE SAS -// -// This file is part of Open CASCADE Technology software library. -// -// This library is free software; you can redistribute it and/or modify it under -// the terms of the GNU Lesser General Public License version 2.1 as published -// by the Free Software Foundation, with special exception defined in the file -// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -// distribution for complete text of the license and disclaimer of any warranty. -// -// Alternatively, this file may be used under the terms of Open CASCADE -// commercial license or contractual agreement. - -#ifndef _XmlMPrsStd_PositionDriver_HeaderFile -#define _XmlMPrsStd_PositionDriver_HeaderFile - -#include -#include - -#include -#include -#include -#include -class CDM_MessageDriver; -class TDF_Attribute; -class XmlObjMgt_Persistent; - - -class XmlMPrsStd_PositionDriver; -DEFINE_STANDARD_HANDLE(XmlMPrsStd_PositionDriver, XmlMDF_ADriver) - -//! Attribute Driver. -class XmlMPrsStd_PositionDriver : public XmlMDF_ADriver -{ - -public: - - - Standard_EXPORT XmlMPrsStd_PositionDriver(const Handle(CDM_MessageDriver)& theMessageDriver); - - Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const; - - Standard_EXPORT Standard_Boolean Paste (const XmlObjMgt_Persistent& Source, const Handle(TDF_Attribute)& Target, XmlObjMgt_RRelocationTable& RelocTable) const; - - Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Source, XmlObjMgt_Persistent& Target, XmlObjMgt_SRelocationTable& RelocTable) const; - - - - - DEFINE_STANDARD_RTTI(XmlMPrsStd_PositionDriver,XmlMDF_ADriver) - -protected: - - - - -private: - - - - -}; - - - - - - - -#endif // _XmlMPrsStd_PositionDriver_HeaderFile -- 2.39.5