b311480e |
1 | // Created on: 1997-11-17 |
2 | // Created by: Jean-Louis Frenkel |
3 | // Copyright (c) 1997-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
7fd59977 |
16 | |
42cf5bc1 |
17 | |
7fd59977 |
18 | #include <CDF_Application.hxx> |
42cf5bc1 |
19 | #include <CDF_MetaDataDriver.hxx> |
7fd59977 |
20 | #include <CDF_Session.hxx> |
42cf5bc1 |
21 | #include <CDM_Document.hxx> |
22 | #include <CDM_MetaData.hxx> |
23 | #include <PCDM_ReferenceIterator.hxx> |
24 | #include <Standard_NotImplemented.hxx> |
25 | #include <Standard_Type.hxx> |
26 | #include <TCollection_ExtendedString.hxx> |
7fd59977 |
27 | |
28 | //======================================================================= |
29 | //function : CDF_MetaDataDriver |
30 | //purpose : |
31 | //======================================================================= |
7fd59977 |
32 | CDF_MetaDataDriver::CDF_MetaDataDriver() {} |
33 | |
34 | //======================================================================= |
35 | //function : HasVersion |
36 | //purpose : |
37 | //======================================================================= |
38 | |
39 | Standard_Boolean CDF_MetaDataDriver::HasVersion(const TCollection_ExtendedString& ,const TCollection_ExtendedString& ) { |
40 | return Standard_True; |
41 | } |
42 | |
43 | //======================================================================= |
44 | //function : HasVersionCapability |
45 | //purpose : |
46 | //======================================================================= |
47 | |
48 | //======================================================================= |
49 | //function : HasVersionCapability |
50 | //purpose : |
51 | //======================================================================= |
52 | |
53 | Standard_Boolean CDF_MetaDataDriver::HasVersionCapability() { |
54 | return Standard_False; |
55 | } |
56 | //======================================================================= |
57 | //function : CreateDependsOn |
58 | //purpose : |
59 | //======================================================================= |
60 | |
61 | void CDF_MetaDataDriver::CreateDependsOn(const Handle(CDM_MetaData)& , |
62 | const Handle(CDM_MetaData)& ) {} |
63 | |
64 | //======================================================================= |
65 | //function : CreateReference |
66 | //purpose : |
67 | //======================================================================= |
68 | |
69 | void CDF_MetaDataDriver::CreateReference(const Handle(CDM_MetaData)& ,const Handle(CDM_MetaData)& , const Standard_Integer , const Standard_Integer ) {} |
70 | |
71 | //======================================================================= |
72 | //function : ReferenceIterator |
73 | //purpose : |
74 | //======================================================================= |
75 | |
76 | Handle(PCDM_ReferenceIterator) CDF_MetaDataDriver::ReferenceIterator() { |
77 | return new PCDM_ReferenceIterator(CDF_Session::CurrentSession()->CurrentApplication()->MessageDriver()); |
78 | } |
79 | |
80 | //======================================================================= |
81 | //function : Find |
82 | //purpose : |
83 | //======================================================================= |
84 | |
85 | Standard_Boolean CDF_MetaDataDriver::Find(const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName) { |
86 | TCollection_ExtendedString aVersion; |
87 | return Find(aFolder,aName,aVersion); |
88 | } |
89 | //======================================================================= |
90 | //function : MetaData |
91 | //purpose : |
92 | //======================================================================= |
93 | |
94 | Handle(CDM_MetaData) CDF_MetaDataDriver::MetaData(const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName) { |
95 | TCollection_ExtendedString aVersion; |
96 | return MetaData(aFolder,aName,aVersion); |
97 | } |
98 | //======================================================================= |
99 | //function : LastVersion |
100 | //purpose : |
101 | //======================================================================= |
102 | |
103 | Handle(CDM_MetaData) CDF_MetaDataDriver::LastVersion(const Handle(CDM_MetaData)& aMetaData) { |
104 | return aMetaData; |
105 | } |
106 | //======================================================================= |
107 | //function : SetName |
108 | //purpose : |
109 | //======================================================================= |
110 | |
111 | TCollection_ExtendedString CDF_MetaDataDriver::SetName(const Handle(CDM_Document)& , const TCollection_ExtendedString& aName) { |
112 | return aName; |
113 | } |