File indexing completed on 2025-01-18 10:03:20
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _CDF_MetaDataDriver_HeaderFile
0018 #define _CDF_MetaDataDriver_HeaderFile
0019
0020 #include <Standard_Type.hxx>
0021
0022 class CDM_MetaData;
0023 class TCollection_ExtendedString;
0024 class CDM_Document;
0025 class PCDM_ReferenceIterator;
0026 class Message_Messenger;
0027
0028 class CDF_MetaDataDriver;
0029 DEFINE_STANDARD_HANDLE(CDF_MetaDataDriver, Standard_Transient)
0030
0031
0032
0033 class CDF_MetaDataDriver : public Standard_Transient
0034 {
0035
0036 public:
0037
0038
0039
0040
0041
0042 Standard_EXPORT virtual Standard_Boolean HasVersionCapability();
0043
0044
0045
0046 Standard_EXPORT virtual void CreateDependsOn (const Handle(CDM_MetaData)& aFirstData, const Handle(CDM_MetaData)& aSecondData);
0047
0048 Standard_EXPORT virtual void CreateReference (const Handle(CDM_MetaData)& aFrom, const Handle(CDM_MetaData)& aTo, const Standard_Integer aReferenceIdentifier, const Standard_Integer aToDocumentVersion);
0049
0050
0051 Standard_EXPORT virtual Standard_Boolean HasVersion (const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName);
0052
0053 Standard_EXPORT virtual TCollection_ExtendedString BuildFileName (const Handle(CDM_Document)& aDocument) = 0;
0054
0055
0056
0057
0058
0059 Standard_EXPORT virtual TCollection_ExtendedString SetName (const Handle(CDM_Document)& aDocument, const TCollection_ExtendedString& aName);
0060
0061
0062
0063
0064 Standard_EXPORT virtual Standard_Boolean Find (const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName, const TCollection_ExtendedString& aVersion) = 0;
0065
0066 Standard_EXPORT virtual Standard_Boolean HasReadPermission (const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName, const TCollection_ExtendedString& aVersion) = 0;
0067
0068
0069
0070
0071
0072
0073
0074
0075 Standard_EXPORT virtual Handle(CDM_MetaData) MetaData (const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName, const TCollection_ExtendedString& aVersion) = 0;
0076
0077
0078
0079
0080
0081
0082
0083
0084
0085 Standard_EXPORT virtual Handle(CDM_MetaData) LastVersion (const Handle(CDM_MetaData)& aMetaData);
0086
0087
0088
0089
0090
0091
0092 Standard_EXPORT virtual Handle(CDM_MetaData) CreateMetaData (const Handle(CDM_Document)& aDocument, const TCollection_ExtendedString& aFileName) = 0;
0093
0094 Standard_EXPORT virtual Standard_Boolean FindFolder (const TCollection_ExtendedString& aFolder) = 0;
0095
0096 Standard_EXPORT virtual TCollection_ExtendedString DefaultFolder() = 0;
0097
0098 Standard_EXPORT virtual Handle(PCDM_ReferenceIterator) ReferenceIterator(const Handle(Message_Messenger)& theMessageDriver);
0099
0100
0101 Standard_EXPORT Standard_Boolean Find (const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName);
0102
0103
0104 Standard_EXPORT Handle(CDM_MetaData) MetaData (const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName);
0105
0106
0107
0108
0109 DEFINE_STANDARD_RTTIEXT(CDF_MetaDataDriver,Standard_Transient)
0110
0111 protected:
0112
0113
0114 Standard_EXPORT CDF_MetaDataDriver();
0115
0116
0117
0118 private:
0119
0120
0121
0122
0123 };
0124
0125
0126
0127
0128
0129
0130
0131 #endif