File indexing completed on 2025-01-18 10:04:59
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _StdLDrivers_DocumentRetrievalDriver_HeaderFile
0015 #define _StdLDrivers_DocumentRetrievalDriver_HeaderFile
0016
0017 #include <PCDM_RetrievalDriver.hxx>
0018 #include <Storage_Error.hxx>
0019
0020 class StdObjMgt_MapOfInstantiators;
0021 class StdObjMgt_Persistent;
0022
0023
0024 class StdLDrivers_DocumentRetrievalDriver : public PCDM_RetrievalDriver
0025 {
0026 public:
0027
0028
0029 Standard_EXPORT virtual void Read (const TCollection_ExtendedString& theFileName,
0030 const Handle(CDM_Document)& theNewDocument,
0031 const Handle(CDM_Application)& theApplication,
0032 const Handle(PCDM_ReaderFilter)& theFilter = Handle(PCDM_ReaderFilter)(),
0033 const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
0034
0035
0036 Standard_EXPORT virtual void Read (Standard_IStream& theIStream,
0037 const Handle(Storage_Data)& theStorageData,
0038 const Handle(CDM_Document)& theDoc,
0039 const Handle(CDM_Application)& theApplication,
0040 const Handle(PCDM_ReaderFilter)& theFilter = Handle(PCDM_ReaderFilter)(),
0041 const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
0042
0043 DEFINE_STANDARD_RTTIEXT (StdLDrivers_DocumentRetrievalDriver, PCDM_RetrievalDriver)
0044
0045 protected:
0046
0047 Standard_EXPORT virtual void bindTypes (StdObjMgt_MapOfInstantiators& theMap);
0048
0049 private:
0050
0051 Handle(StdObjMgt_Persistent) read (
0052 const TCollection_ExtendedString& theFileName,
0053 Storage_HeaderData& theHeaderData);
0054
0055
0056 Standard_EXPORT void raiseOnStorageError (Storage_Error theError);
0057 };
0058
0059 #endif