// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _BinLDrivers_DocumentRetrievalDriver_HeaderFile #define _BinLDrivers_DocumentRetrievalDriver_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_BinLDrivers_DocumentRetrievalDriver_HeaderFile #include #endif #ifndef _BinObjMgt_Persistent_HeaderFile #include #endif #ifndef _Handle_BinMDF_ADriverTable_HeaderFile #include #endif #ifndef _BinObjMgt_RRelocationTable_HeaderFile #include #endif #ifndef _Handle_CDM_MessageDriver_HeaderFile #include #endif #ifndef _TColStd_MapOfInteger_HeaderFile #include #endif #ifndef _BinLDrivers_VectorOfDocumentSection_HeaderFile #include #endif #ifndef _PCDM_RetrievalDriver_HeaderFile #include #endif #ifndef _Handle_PCDM_Document_HeaderFile #include #endif #ifndef _Handle_CDM_Document_HeaderFile #include #endif #ifndef _Handle_CDM_Application_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_IStream_HeaderFile #include #endif #ifndef _Storage_Position_HeaderFile #include #endif #ifndef _Handle_Storage_HeaderData_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif class BinMDF_ADriverTable; class CDM_MessageDriver; class TCollection_ExtendedString; class PCDM_Document; class CDM_Document; class CDM_Application; class TDF_Label; class TCollection_AsciiString; class Storage_HeaderData; class BinLDrivers_DocumentSection; class BinLDrivers_DocumentRetrievalDriver : public PCDM_RetrievalDriver { public: //! Constructor
Standard_EXPORT BinLDrivers_DocumentRetrievalDriver(); //! pure virtual method definition
Standard_EXPORT virtual TCollection_ExtendedString SchemaName() const; //! pure virtual method definition
Standard_EXPORT virtual void Make(const Handle(PCDM_Document)& PD,const Handle(CDM_Document)& TD) ; //! pure virtual method definition
Standard_EXPORT virtual Handle_CDM_Document CreateDocument() ; //! retrieves the content of the file into a new Document.
Standard_EXPORT virtual void Read(const TCollection_ExtendedString& theFileName,const Handle(CDM_Document)& theNewDocument,const Handle(CDM_Application)& theApplication) ; Standard_EXPORT virtual Handle_BinMDF_ADriverTable AttributeDrivers(const Handle(CDM_MessageDriver)& theMsgDriver) ; DEFINE_STANDARD_RTTI(BinLDrivers_DocumentRetrievalDriver) protected: //! Read the tree from the stream to
Standard_EXPORT virtual Standard_Integer ReadSubTree(Standard_IStream& theIS,const TDF_Label& theData) ; //! Read the info section of theFile into theData,
//! return a file position corresponding to the info
//! section end
Standard_EXPORT Storage_Position ReadInfoSection(const TCollection_AsciiString& theFile,Handle(Storage_HeaderData)& theData) ; //! define the procedure of reading a section to file.
Standard_EXPORT virtual void ReadSection(BinLDrivers_DocumentSection& theSection,const Handle(CDM_Document)& theDoc,Standard_IStream& theIS) ; Standard_EXPORT virtual void ReadShapeSection(BinLDrivers_DocumentSection& theSection,Standard_IStream& theIS,const Standard_Boolean isMess = Standard_False) ; Standard_EXPORT virtual void CheckShapeSection(const Storage_Position& thePos,Standard_IStream& theIS) ; Standard_EXPORT virtual void PropagateDocumentVersion(const Standard_Integer theVersion) ; //! write theMessage to the MessageDriver of the
//! Application
Standard_EXPORT void WriteMessage(const TCollection_ExtendedString& theMessage) ; Handle_BinMDF_ADriverTable myDrivers; BinObjMgt_RRelocationTable myRelocTable; private: BinObjMgt_Persistent myPAtt; Handle_CDM_MessageDriver myMsgDriver; TColStd_MapOfInteger myMapUnsupported; BinLDrivers_VectorOfDocumentSection mySections; }; // other Inline functions and methods (like "C++: function call" methods) #endif