Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:00

0001 // Created on: 2004-11-24
0002 // Created by: Edward AGAPOV
0003 // Copyright (c) 2004-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 // The original implementation Copyright: (C) RINA S.p.A
0017 
0018 
0019 #ifndef BinTObjDrivers_ReferenceDriver_HeaderFile
0020 #define BinTObjDrivers_ReferenceDriver_HeaderFile
0021 
0022 #include <BinMDF_ADriver.hxx>
0023 
0024 class BinTObjDrivers_ReferenceDriver : public BinMDF_ADriver 
0025 {
0026 
0027  public:
0028 
0029   Standard_EXPORT BinTObjDrivers_ReferenceDriver
0030                          (const Handle(Message_Messenger)& theMessageDriver);
0031   // constructor
0032 
0033   Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
0034   // Creates a new attribute
0035 
0036   Standard_EXPORT Standard_Boolean Paste
0037                          (const BinObjMgt_Persistent&  Source,
0038                           const Handle(TDF_Attribute)& Target,
0039                           BinObjMgt_RRelocationTable&  RelocTable) const Standard_OVERRIDE;
0040   // Translate the contents of <aSource> and put it
0041   // into <aTarget>, using the relocation table
0042   // <aRelocTable> to keep the sharings.
0043 
0044   Standard_EXPORT void Paste
0045                          (const Handle(TDF_Attribute)& Source,
0046                           BinObjMgt_Persistent&        Target,
0047                           BinObjMgt_SRelocationTable&  RelocTable) const Standard_OVERRIDE;
0048   // Translate the contents of <aSource> and put it
0049   // into <aTarget>, using the relocation table
0050   // <aRelocTable> to keep the sharings.
0051   // Store master and referred labels as entry, the other model referred 
0052   // as entry in model-container
0053   // The reference pointing nowhere is not stored 
0054 
0055  public:
0056   // CASCADE RTTI
0057   DEFINE_STANDARD_RTTIEXT(BinTObjDrivers_ReferenceDriver,BinMDF_ADriver)
0058 };
0059 
0060 // Define handle class
0061 DEFINE_STANDARD_HANDLE(BinTObjDrivers_ReferenceDriver,BinMDF_ADriver)
0062 
0063 
0064 
0065 #endif
0066 
0067 #ifdef _MSC_VER
0068 #pragma once
0069 #endif