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 | |
17 | #include <CDF_MetaDataDriver.ixx> |
18 | #include <CDF_Application.hxx> |
19 | #include <CDF_Session.hxx> |
20 | |
21 | |
22 | //======================================================================= |
23 | //function : CDF_MetaDataDriver |
24 | //purpose : |
25 | //======================================================================= |
26 | |
27 | CDF_MetaDataDriver::CDF_MetaDataDriver() {} |
28 | |
29 | //======================================================================= |
30 | //function : HasVersion |
31 | //purpose : |
32 | //======================================================================= |
33 | |
34 | Standard_Boolean CDF_MetaDataDriver::HasVersion(const TCollection_ExtendedString& ,const TCollection_ExtendedString& ) { |
35 | return Standard_True; |
36 | } |
37 | |
38 | //======================================================================= |
39 | //function : HasVersionCapability |
40 | //purpose : |
41 | //======================================================================= |
42 | |
43 | //======================================================================= |
44 | //function : HasVersionCapability |
45 | //purpose : |
46 | //======================================================================= |
47 | |
48 | Standard_Boolean CDF_MetaDataDriver::HasVersionCapability() { |
49 | return Standard_False; |
50 | } |
51 | //======================================================================= |
52 | //function : CreateDependsOn |
53 | //purpose : |
54 | //======================================================================= |
55 | |
56 | void CDF_MetaDataDriver::CreateDependsOn(const Handle(CDM_MetaData)& , |
57 | const Handle(CDM_MetaData)& ) {} |
58 | |
59 | //======================================================================= |
60 | //function : CreateReference |
61 | //purpose : |
62 | //======================================================================= |
63 | |
64 | void CDF_MetaDataDriver::CreateReference(const Handle(CDM_MetaData)& ,const Handle(CDM_MetaData)& , const Standard_Integer , const Standard_Integer ) {} |
65 | |
66 | //======================================================================= |
67 | //function : ReferenceIterator |
68 | //purpose : |
69 | //======================================================================= |
70 | |
71 | Handle(PCDM_ReferenceIterator) CDF_MetaDataDriver::ReferenceIterator() { |
72 | return new PCDM_ReferenceIterator(CDF_Session::CurrentSession()->CurrentApplication()->MessageDriver()); |
73 | } |
74 | |
75 | //======================================================================= |
76 | //function : Find |
77 | //purpose : |
78 | //======================================================================= |
79 | |
80 | Standard_Boolean CDF_MetaDataDriver::Find(const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName) { |
81 | TCollection_ExtendedString aVersion; |
82 | return Find(aFolder,aName,aVersion); |
83 | } |
84 | //======================================================================= |
85 | //function : MetaData |
86 | //purpose : |
87 | //======================================================================= |
88 | |
89 | Handle(CDM_MetaData) CDF_MetaDataDriver::MetaData(const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName) { |
90 | TCollection_ExtendedString aVersion; |
91 | return MetaData(aFolder,aName,aVersion); |
92 | } |
93 | //======================================================================= |
94 | //function : LastVersion |
95 | //purpose : |
96 | //======================================================================= |
97 | |
98 | Handle(CDM_MetaData) CDF_MetaDataDriver::LastVersion(const Handle(CDM_MetaData)& aMetaData) { |
99 | return aMetaData; |
100 | } |
101 | //======================================================================= |
102 | //function : SetName |
103 | //purpose : |
104 | //======================================================================= |
105 | |
106 | TCollection_ExtendedString CDF_MetaDataDriver::SetName(const Handle(CDM_Document)& , const TCollection_ExtendedString& aName) { |
107 | return aName; |
108 | } |