1 // Created on: 1997-11-17
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.
18 #include <CDF_Application.hxx>
19 #include <CDF_MetaDataDriver.hxx>
20 #include <CDF_Session.hxx>
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>
28 //=======================================================================
29 //function : CDF_MetaDataDriver
31 //=======================================================================
32 CDF_MetaDataDriver::CDF_MetaDataDriver() {}
34 //=======================================================================
35 //function : HasVersion
37 //=======================================================================
39 Standard_Boolean CDF_MetaDataDriver::HasVersion(const TCollection_ExtendedString& ,const TCollection_ExtendedString& ) {
43 //=======================================================================
44 //function : HasVersionCapability
46 //=======================================================================
48 //=======================================================================
49 //function : HasVersionCapability
51 //=======================================================================
53 Standard_Boolean CDF_MetaDataDriver::HasVersionCapability() {
54 return Standard_False;
56 //=======================================================================
57 //function : CreateDependsOn
59 //=======================================================================
61 void CDF_MetaDataDriver::CreateDependsOn(const Handle(CDM_MetaData)& ,
62 const Handle(CDM_MetaData)& ) {}
64 //=======================================================================
65 //function : CreateReference
67 //=======================================================================
69 void CDF_MetaDataDriver::CreateReference(const Handle(CDM_MetaData)& ,const Handle(CDM_MetaData)& , const Standard_Integer , const Standard_Integer ) {}
71 //=======================================================================
72 //function : ReferenceIterator
74 //=======================================================================
76 Handle(PCDM_ReferenceIterator) CDF_MetaDataDriver::ReferenceIterator() {
77 return new PCDM_ReferenceIterator(CDF_Session::CurrentSession()->CurrentApplication()->MessageDriver());
80 //=======================================================================
83 //=======================================================================
85 Standard_Boolean CDF_MetaDataDriver::Find(const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName) {
86 TCollection_ExtendedString aVersion;
87 return Find(aFolder,aName,aVersion);
89 //=======================================================================
92 //=======================================================================
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);
98 //=======================================================================
99 //function : LastVersion
101 //=======================================================================
103 Handle(CDM_MetaData) CDF_MetaDataDriver::LastVersion(const Handle(CDM_MetaData)& aMetaData) {
106 //=======================================================================
109 //=======================================================================
111 TCollection_ExtendedString CDF_MetaDataDriver::SetName(const Handle(CDM_Document)& , const TCollection_ExtendedString& aName) {