Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-03 09:18:17

0001 // Created on: 2004-11-24
0002 // Created by: Michael SAZONOV
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_HeaderFile
0019 #define XmlTObjDrivers_HeaderFile
0020 
0021 #include <Standard_GUID.hxx>
0022 
0023 class XmlMDF_ADriverTable;
0024 class Message_Messenger;
0025 class TDocStd_Application;
0026 
0027 //! Class for registering storage/retrieval drivers for TObj XML persistence
0028 
0029 class XmlTObjDrivers
0030 {
0031 public:
0032   //! Returns a driver corresponding to <aGUID>. Used for plugin.
0033   Standard_EXPORT static const occ::handle<Standard_Transient>& Factory(const Standard_GUID& aGUID);
0034 
0035   //! Defines format "TObjXml" and registers its read and write drivers
0036   //! in the specified application
0037   Standard_EXPORT static void DefineFormat(const occ::handle<TDocStd_Application>& theApp);
0038 
0039   Standard_EXPORT static void AddDrivers(const occ::handle<XmlMDF_ADriverTable>& aDriverTable,
0040                                          const occ::handle<Message_Messenger>&   anMsgDrv);
0041 };
0042 
0043 #endif
0044 
0045 #ifdef _MSC_VER
0046 #pragma once
0047 #endif