Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:36

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   
0033   //! Returns a driver corresponding to <aGUID>. Used for plugin.
0034   Standard_EXPORT static const Handle(Standard_Transient)& Factory
0035                         (const Standard_GUID& aGUID);
0036 
0037   //! Defines format "TObjXml" and registers its read and write drivers
0038   //! in the specified application
0039   Standard_EXPORT static void DefineFormat (const Handle(TDocStd_Application)& theApp);
0040 
0041   Standard_EXPORT static void AddDrivers
0042                         (const Handle(XmlMDF_ADriverTable)& aDriverTable,
0043                          const Handle(Message_Messenger)& anMsgDrv);
0044 
0045 };
0046 
0047 #endif
0048 
0049 #ifdef _MSC_VER
0050 #pragma once
0051 #endif