0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[occt.git] / src / StdDrivers / StdDrivers.cxx
CommitLineData
7ed7467d 1// Created on: 2000-09-07
2// Created by: TURIN Anatoliy
3// Copyright (c) 2000-2015 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
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.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#include <StdDrivers.hxx>
17#include <StdDrivers_DocumentRetrievalDriver.hxx>
18
19#include <StdLPersistent.hxx>
20#include <StdPersistent.hxx>
21#include <ShapePersistent.hxx>
22
23#include <Standard_Failure.hxx>
24#include <Standard_GUID.hxx>
25#include <Plugin_Macro.hxx>
26
6fe96f84 27#include <PCDM_StorageDriver.hxx>
28#include <TDocStd_Application.hxx>
29
7ed7467d 30static Standard_GUID StdRetrievalDriver ("ad696001-5b34-11d1-b5ba-00a0c9064368");
31
32//=======================================================================
33//function : Factory
34//purpose : Depending from the ID, returns a list of storage
35// or retrieval attribute drivers. Used for plugin
36//=======================================================================
37Handle(Standard_Transient) StdDrivers::Factory (const Standard_GUID& aGUID)
38{
39 if (aGUID == StdRetrievalDriver)
40 {
41#ifdef OCCT_DEBUG
42 cout << "StdDrivers : Retrieval Plugin" << endl;
43#endif
44
45 static Handle(StdDrivers_DocumentRetrievalDriver) model_rd = new StdDrivers_DocumentRetrievalDriver;
46 return model_rd;
47 }
48
49 Standard_Failure::Raise ("StdDrivers : unknown GUID");
50 return NULL;
51}
52
6fe96f84 53//=======================================================================
54//function : DefineFormat
55//purpose :
56//=======================================================================
57void StdDrivers::DefineFormat (const Handle(TDocStd_Application)& theApp)
58{
59 theApp->DefineFormat ("MDTV-Standard", "Standard OCAF Document", "std",
60 new StdDrivers_DocumentRetrievalDriver, 0);
61}
62
7ed7467d 63//=======================================================================
64//function : BindTypes
65//purpose : Register types
66//=======================================================================
67void StdDrivers::BindTypes (StdObjMgt_MapOfInstantiators& theMap)
68{
69 StdLPersistent ::BindTypes (theMap);
70 StdPersistent ::BindTypes (theMap);
71 ShapePersistent::BindTypes (theMap);
72}
73
74
75#ifdef _MSC_VER
76#pragma warning(disable:4190) /* disable warning on C++ type returned by C function; should be OK for C++ usage */
77#endif
78
79// Declare entry point PLUGINFACTORY
80PLUGIN (StdDrivers)