Integration of OCCT 6.5.0 from SVN
[occt.git] / src / BinTObjDrivers / BinTObjDrivers_ReferenceDriver.hxx
CommitLineData
7fd59977 1// File : BinTObjDrivers_ReferenceDriver.hxx
2// Created : Wed Nov 24 11:32:18 2004
3// Author : Edward AGAPOV
4// Copyright: Open CASCADE 2007
5// The original implementation Copyright: (C) RINA S.p.A
6
7
8#ifndef BinTObjDrivers_ReferenceDriver_HeaderFile
9#define BinTObjDrivers_ReferenceDriver_HeaderFile
10
11#include <TObj_Common.hxx>
12#include <BinMDF_ADriver.hxx>
13
14class BinTObjDrivers_ReferenceDriver : public BinMDF_ADriver
15{
16
17 public:
18
19 Standard_EXPORT BinTObjDrivers_ReferenceDriver
20 (const Handle(CDM_MessageDriver)& theMessageDriver);
21 // constructor
22
23 Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
24 // Creates a new attribute
25
26 Standard_EXPORT Standard_Boolean Paste
27 (const BinObjMgt_Persistent& Source,
28 const Handle(TDF_Attribute)& Target,
29 BinObjMgt_RRelocationTable& RelocTable) const;
30 // Translate the contents of <aSource> and put it
31 // into <aTarget>, using the relocation table
32 // <aRelocTable> to keep the sharings.
33
34 Standard_EXPORT void Paste
35 (const Handle(TDF_Attribute)& Source,
36 BinObjMgt_Persistent& Target,
37 BinObjMgt_SRelocationTable& RelocTable) const;
38 // Translate the contents of <aSource> and put it
39 // into <aTarget>, using the relocation table
40 // <aRelocTable> to keep the sharings.
41 // Store master and referred labels as entry, the other model referred
42 // as entry in model-container
43 // The reference pointing nowhere is not stored
44
45 public:
46 // CASCADE RTTI
47 DEFINE_STANDARD_RTTI(BinTObjDrivers_ReferenceDriver)
48};
49
50// Define handle class
51DEFINE_STANDARD_HANDLE(BinTObjDrivers_ReferenceDriver,BinMDF_ADriver)
52
53
54
55#endif
56
57#ifdef _MSC_VER
58#pragma once
59#endif