90f24d0a1eb260381268298c62cc86d513aad6db
[occt.git] / src / PCDM / PCDM.hxx
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
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _PCDM_HeaderFile
18 #define _PCDM_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <Standard_Boolean.hxx>
25 #include <PCDM_TypeOfFileDriver.hxx>
26 #include <PCDM_BaseDriverPointer.hxx>
27 class CDM_Document;
28 class PCDM_StorageDriver;
29 class Storage_Schema;
30 class TCollection_ExtendedString;
31 class CDM_Application;
32 class TCollection_AsciiString;
33 class PCDM_Document;
34 class PCDM_Reader;
35 class PCDM_Writer;
36 class PCDM_RetrievalDriver;
37 class PCDM_StorageDriver;
38 class PCDM_ReferenceIterator;
39 class PCDM_Reference;
40 class PCDM_ReadWriter;
41 class PCDM_ReadWriter_1;
42
43
44
45 class PCDM 
46 {
47 public:
48
49   DEFINE_STANDARD_ALLOC
50
51   
52   Standard_EXPORT static Standard_Boolean FindStorageDriver (const Handle(CDM_Document)& aDocument);
53   
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);
57   
58   //! returns a schema to be used during a Store or Retrieve
59   //! operation.
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);
63
64
65
66
67 protected:
68
69
70
71
72
73 private:
74
75   
76   Standard_EXPORT static PCDM_TypeOfFileDriver FileDriverType (const TCollection_AsciiString& aFileName, PCDM_BaseDriverPointer& aBaseDriver);
77
78
79
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;
89
90 };
91
92
93
94
95
96
97
98 #endif // _PCDM_HeaderFile