1 // Created on: 2000-09-07
2 // Created by: TURIN Anatoliy
3 // Copyright (c) 2000-2015 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #include <StdDrivers.hxx>
17 #include <StdDrivers_DocumentRetrievalDriver.hxx>
19 #include <StdLPersistent.hxx>
20 #include <StdPersistent.hxx>
21 #include <ShapePersistent.hxx>
23 #include <Standard_Failure.hxx>
24 #include <Standard_GUID.hxx>
25 #include <Plugin_Macro.hxx>
27 static Standard_GUID StdRetrievalDriver ("ad696001-5b34-11d1-b5ba-00a0c9064368");
29 //=======================================================================
31 //purpose : Depending from the ID, returns a list of storage
32 // or retrieval attribute drivers. Used for plugin
33 //=======================================================================
34 Handle(Standard_Transient) StdDrivers::Factory (const Standard_GUID& aGUID)
36 if (aGUID == StdRetrievalDriver)
39 cout << "StdDrivers : Retrieval Plugin" << endl;
42 static Handle(StdDrivers_DocumentRetrievalDriver) model_rd = new StdDrivers_DocumentRetrievalDriver;
46 Standard_Failure::Raise ("StdDrivers : unknown GUID");
50 //=======================================================================
51 //function : BindTypes
52 //purpose : Register types
53 //=======================================================================
54 void StdDrivers::BindTypes (StdObjMgt_MapOfInstantiators& theMap)
56 StdLPersistent ::BindTypes (theMap);
57 StdPersistent ::BindTypes (theMap);
58 ShapePersistent::BindTypes (theMap);
63 #pragma warning(disable:4190) /* disable warning on C++ type returned by C function; should be OK for C++ usage */
66 // Declare entry point PLUGINFACTORY