1 // Created on: 1997-08-01
2 // Created by: Jean-Louis Frenkel
3 // Copyright (c) 1997-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _PCDM_HeaderFile
18 #define _PCDM_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <Standard_Boolean.hxx>
25 #include <PCDM_TypeOfFileDriver.hxx>
26 #include <PCDM_BaseDriverPointer.hxx>
28 class PCDM_StorageDriver;
30 class TCollection_ExtendedString;
31 class CDM_Application;
32 class TCollection_AsciiString;
36 class PCDM_RetrievalDriver;
37 class PCDM_StorageDriver;
38 class PCDM_ReferenceIterator;
40 class PCDM_ReadWriter;
41 class PCDM_ReadWriter_1;
52 Standard_EXPORT static Standard_Boolean FindStorageDriver (const Handle(CDM_Document)& aDocument);
54 //! gets in the EuclidDesktop resource the plugin
55 //! identifier of the driver plugs the driver.
56 Standard_EXPORT static Handle(PCDM_StorageDriver) StorageDriver (const Handle(CDM_Document)& aDocument);
58 //! returns a schema to be used during a Store or Retrieve
60 //! Schema will plug the schema defined by
61 //! the SchemaName method.
62 Standard_EXPORT static Handle(Storage_Schema) Schema (const TCollection_ExtendedString& aSchemaName, const Handle(CDM_Application)& anApplication);
76 Standard_EXPORT static PCDM_TypeOfFileDriver FileDriverType (const TCollection_AsciiString& aFileName, PCDM_BaseDriverPointer& aBaseDriver);
80 friend class PCDM_Document;
81 friend class PCDM_Reader;
82 friend class PCDM_Writer;
83 friend class PCDM_RetrievalDriver;
84 friend class PCDM_StorageDriver;
85 friend class PCDM_ReferenceIterator;
86 friend class PCDM_Reference;
87 friend class PCDM_ReadWriter;
88 friend class PCDM_ReadWriter_1;
98 #endif // _PCDM_HeaderFile