|
||||
File indexing completed on 2025-01-18 10:05:36
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 #ifndef XmlTObjDrivers_ModelDriver_HeaderFile 0019 #define XmlTObjDrivers_ModelDriver_HeaderFile 0020 0021 #include <XmlMDF_ADriver.hxx> 0022 0023 class XmlTObjDrivers_ModelDriver : public XmlMDF_ADriver 0024 { 0025 0026 public: 0027 0028 Standard_EXPORT XmlTObjDrivers_ModelDriver 0029 (const Handle(Message_Messenger)& theMessageDriver); 0030 // constructor 0031 0032 Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE; 0033 // Creates a new attribute 0034 0035 Standard_EXPORT Standard_Boolean Paste 0036 (const XmlObjMgt_Persistent& Source, 0037 const Handle(TDF_Attribute)& Target, 0038 XmlObjMgt_RRelocationTable& RelocTable) const Standard_OVERRIDE; 0039 // Translate the contents of <aSource> and put it 0040 // into <aTarget>, using the relocation table 0041 // <aRelocTable> to keep the sharings. 0042 // Set CurrentModel of TObj_Persistence into Target TObj_TModel 0043 // if its GUID and GUID stored in Source are same 0044 0045 Standard_EXPORT void Paste 0046 (const Handle(TDF_Attribute)& Source, 0047 XmlObjMgt_Persistent& Target, 0048 XmlObjMgt_SRelocationTable& RelocTable) const Standard_OVERRIDE; 0049 // Translate the contents of <aSource> and put it 0050 // into <aTarget>, using the relocation table 0051 // <aRelocTable> to keep the sharings. 0052 // a Model is stored as its GUID 0053 0054 public: 0055 // CASCADE RTTI 0056 DEFINE_STANDARD_RTTIEXT(XmlTObjDrivers_ModelDriver,XmlMDF_ADriver) 0057 }; 0058 0059 // Define handle class 0060 DEFINE_STANDARD_HANDLE(XmlTObjDrivers_ModelDriver,XmlMDF_ADriver) 0061 0062 0063 #endif 0064 0065 #ifdef _MSC_VER 0066 #pragma once 0067 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |