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