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
7 #ifndef BinTObjDrivers_ModelDriver_HeaderFile
8 #define BinTObjDrivers_ModelDriver_HeaderFile
10 #include <TObj_Common.hxx>
11 #include <BinMDF_ADriver.hxx>
13 class BinTObjDrivers_ModelDriver : public BinMDF_ADriver
18 Standard_EXPORT BinTObjDrivers_ModelDriver
19 (const Handle(CDM_MessageDriver)& theMessageDriver);
22 Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
23 // Creates a new attribute
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
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
46 DEFINE_STANDARD_RTTI(BinTObjDrivers_ModelDriver)
49 // Define handle class
50 DEFINE_STANDARD_HANDLE(BinTObjDrivers_ModelDriver,BinMDF_ADriver)