Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:00

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 BinTObjDrivers_HeaderFile
0019 #define BinTObjDrivers_HeaderFile
0020 
0021 #include <Standard_GUID.hxx>
0022 
0023 class BinMDF_ADriverTable;
0024 class Message_Messenger;
0025 class TDocStd_Application;
0026 
0027 //! Class for registering storage/retrieval drivers for TObj Bin persistence
0028 
0029 class BinTObjDrivers 
0030 {
0031  public:
0032   // ---------- PUBLIC METHODS ----------
0033 
0034   Standard_EXPORT static const Handle(Standard_Transient)& Factory
0035                         (const Standard_GUID& aGUID);
0036   // Returns a driver corresponding to <aGUID>. Used for plugin.
0037 
0038   //! Defines format "TObjBin" and registers its read and write drivers
0039   //! in the specified application
0040   Standard_EXPORT static void DefineFormat (const Handle(TDocStd_Application)& theApp);
0041 
0042   Standard_EXPORT static void AddDrivers
0043                         (const Handle(BinMDF_ADriverTable)& aDriverTable,
0044                          const Handle(Message_Messenger)&   aMsgDrv);
0045 
0046 };
0047 
0048 #endif
0049 
0050 #ifdef _MSC_VER
0051 #pragma once
0052 #endif