42cf5bc1 |
1 | // Created on: 1997-01-22 |
2 | // Created by: Mister rmi |
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 _CDF_FWOSDriver_HeaderFile |
18 | #define _CDF_FWOSDriver_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <CDF_MetaDataDriver.hxx> |
24 | #include <Standard_Boolean.hxx> |
25 | class TCollection_ExtendedString; |
26 | class CDM_MetaData; |
27 | class CDM_Document; |
28 | |
29 | |
30 | class CDF_FWOSDriver; |
31 | DEFINE_STANDARD_HANDLE(CDF_FWOSDriver, CDF_MetaDataDriver) |
32 | |
33 | |
34 | class CDF_FWOSDriver : public CDF_MetaDataDriver |
35 | { |
36 | |
37 | public: |
38 | |
39 | |
40 | //! initializes the MetaDatadriver with its specific name. |
41 | Standard_EXPORT CDF_FWOSDriver(); |
42 | |
43 | //! indicate whether a file exists corresponding to the folder and the name |
79104795 |
44 | Standard_EXPORT Standard_Boolean Find (const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName, const TCollection_ExtendedString& aVersion) Standard_OVERRIDE; |
42cf5bc1 |
45 | |
79104795 |
46 | Standard_EXPORT Standard_Boolean HasReadPermission (const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName, const TCollection_ExtendedString& aVersion) Standard_OVERRIDE; |
42cf5bc1 |
47 | |
79104795 |
48 | Standard_EXPORT Standard_Boolean FindFolder (const TCollection_ExtendedString& aFolder) Standard_OVERRIDE; |
42cf5bc1 |
49 | |
79104795 |
50 | Standard_EXPORT TCollection_ExtendedString DefaultFolder() Standard_OVERRIDE; |
42cf5bc1 |
51 | |
79104795 |
52 | Standard_EXPORT TCollection_ExtendedString BuildFileName (const Handle(CDM_Document)& aDocument) Standard_OVERRIDE; |
42cf5bc1 |
53 | |
54 | Standard_EXPORT virtual TCollection_ExtendedString SetName (const Handle(CDM_Document)& aDocument, const TCollection_ExtendedString& aName) Standard_OVERRIDE; |
55 | |
56 | |
57 | |
58 | |
92efcf78 |
59 | DEFINE_STANDARD_RTTIEXT(CDF_FWOSDriver,CDF_MetaDataDriver) |
42cf5bc1 |
60 | |
61 | protected: |
62 | |
63 | |
64 | |
65 | |
66 | private: |
67 | |
68 | |
79104795 |
69 | Standard_EXPORT Handle(CDM_MetaData) MetaData (const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName, const TCollection_ExtendedString& aVersion) Standard_OVERRIDE; |
42cf5bc1 |
70 | |
79104795 |
71 | Standard_EXPORT Handle(CDM_MetaData) CreateMetaData (const Handle(CDM_Document)& aDocument, const TCollection_ExtendedString& aFileName) Standard_OVERRIDE; |
42cf5bc1 |
72 | |
73 | Standard_EXPORT static TCollection_ExtendedString Concatenate (const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName); |
74 | |
75 | Standard_EXPORT Handle(CDM_MetaData) BuildMetaData (const TCollection_ExtendedString& aFileName); |
76 | |
77 | |
78 | |
79 | }; |
80 | |
81 | |
82 | |
83 | |
84 | |
85 | |
86 | |
87 | #endif // _CDF_FWOSDriver_HeaderFile |