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 IMPLEMENT_STANDARD_RTTIEXT(CDF_MetaDataDriver,Standard_Transient)
30 //=======================================================================
31 //function : CDF_MetaDataDriver
33 //=======================================================================
34 CDF_MetaDataDriver::CDF_MetaDataDriver() {}
36 //=======================================================================
37 //function : HasVersion
39 //=======================================================================
41 Standard_Boolean CDF_MetaDataDriver::HasVersion(const TCollection_ExtendedString& ,const TCollection_ExtendedString& ) {
45 //=======================================================================
46 //function : HasVersionCapability
48 //=======================================================================
50 //=======================================================================
51 //function : HasVersionCapability
53 //=======================================================================
55 Standard_Boolean CDF_MetaDataDriver::HasVersionCapability() {
56 return Standard_False;
58 //=======================================================================
59 //function : CreateDependsOn
61 //=======================================================================
63 void CDF_MetaDataDriver::CreateDependsOn(const Handle(CDM_MetaData)& ,
64 const Handle(CDM_MetaData)& ) {}
66 //=======================================================================
67 //function : CreateReference
69 //=======================================================================
71 void CDF_MetaDataDriver::CreateReference(const Handle(CDM_MetaData)& ,const Handle(CDM_MetaData)& , const Standard_Integer , const Standard_Integer ) {}
73 //=======================================================================
74 //function : ReferenceIterator
76 //=======================================================================
78 Handle(PCDM_ReferenceIterator) CDF_MetaDataDriver::ReferenceIterator() {
79 return new PCDM_ReferenceIterator(CDF_Session::CurrentSession()->CurrentApplication()->MessageDriver());
82 //=======================================================================
85 //=======================================================================
87 Standard_Boolean CDF_MetaDataDriver::Find(const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName) {
88 TCollection_ExtendedString aVersion;
89 return Find(aFolder,aName,aVersion);
91 //=======================================================================
94 //=======================================================================
96 Handle(CDM_MetaData) CDF_MetaDataDriver::MetaData(const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName) {
97 TCollection_ExtendedString aVersion;
98 return MetaData(aFolder,aName,aVersion);
100 //=======================================================================
101 //function : LastVersion
103 //=======================================================================
105 Handle(CDM_MetaData) CDF_MetaDataDriver::LastVersion(const Handle(CDM_MetaData)& aMetaData) {
108 //=======================================================================
111 //=======================================================================
113 TCollection_ExtendedString CDF_MetaDataDriver::SetName(const Handle(CDM_Document)& , const TCollection_ExtendedString& aName) {