Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:35

0001 // Created on: 2001-07-25
0002 // Created by: Julia DOROVSKIKH
0003 // Copyright (c) 2001-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _XmlLDrivers_DocumentRetrievalDriver_HeaderFile
0017 #define _XmlLDrivers_DocumentRetrievalDriver_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021 
0022 #include <XmlObjMgt_RRelocationTable.hxx>
0023 #include <TCollection_ExtendedString.hxx>
0024 #include <PCDM_RetrievalDriver.hxx>
0025 #include <XmlObjMgt_Element.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <Storage_Data.hxx>
0028 class XmlMDF_ADriverTable;
0029 class CDM_Document;
0030 class CDM_Application;
0031 class Message_Messenger;
0032 class XmlMDF_ADriver;
0033 
0034 
0035 class XmlLDrivers_DocumentRetrievalDriver;
0036 DEFINE_STANDARD_HANDLE(XmlLDrivers_DocumentRetrievalDriver, PCDM_RetrievalDriver)
0037 
0038 
0039 class XmlLDrivers_DocumentRetrievalDriver : public PCDM_RetrievalDriver
0040 {
0041 
0042 public:
0043 
0044   
0045   Standard_EXPORT XmlLDrivers_DocumentRetrievalDriver();
0046   
0047   Standard_EXPORT virtual void Read (const TCollection_ExtendedString& theFileName, 
0048                                      const Handle(CDM_Document)& theNewDocument,
0049                                      const Handle(CDM_Application)& theApplication, 
0050                                      const Handle(PCDM_ReaderFilter)& theFilter = Handle(PCDM_ReaderFilter)(),
0051                                      const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
0052 
0053   Standard_EXPORT virtual void Read (Standard_IStream&               theIStream,
0054                                      const Handle(Storage_Data)&     theStorageData,
0055                                      const Handle(CDM_Document)&     theDoc,
0056                                      const Handle(CDM_Application)&  theApplication,
0057                                      const Handle(PCDM_ReaderFilter)& theFilter = Handle(PCDM_ReaderFilter)(),
0058                                      const Message_ProgressRange& theRange= Message_ProgressRange()) Standard_OVERRIDE;
0059   
0060   Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver);
0061 
0062 
0063 
0064 
0065   DEFINE_STANDARD_RTTIEXT(XmlLDrivers_DocumentRetrievalDriver,PCDM_RetrievalDriver)
0066 
0067 protected:
0068 
0069   
0070   Standard_EXPORT virtual void ReadFromDomDocument (const XmlObjMgt_Element& theDomElement, 
0071                                                     const Handle(CDM_Document)& theNewDocument, 
0072                                                     const Handle(CDM_Application)& theApplication, 
0073                                                     const Message_ProgressRange& theRange = Message_ProgressRange());
0074   
0075   Standard_EXPORT virtual Standard_Boolean MakeDocument (const XmlObjMgt_Element& thePDoc, 
0076                                                          const Handle(CDM_Document)& theTDoc, 
0077                                                          const Message_ProgressRange& theRange = Message_ProgressRange());
0078   
0079   Standard_EXPORT virtual Handle(XmlMDF_ADriver) ReadShapeSection
0080                                    (const XmlObjMgt_Element& thePDoc,
0081                                     const Handle(Message_Messenger)& theMsgDriver,
0082                                     const Message_ProgressRange& theRange = Message_ProgressRange());
0083   
0084   Standard_EXPORT virtual void ShapeSetCleaning (const Handle(XmlMDF_ADriver)& theDriver);
0085 
0086   Handle(XmlMDF_ADriverTable) myDrivers;
0087   XmlObjMgt_RRelocationTable  myRelocTable;
0088   TCollection_ExtendedString  myFileName;
0089 
0090 
0091 private:
0092 
0093 
0094 
0095 
0096 };
0097 
0098 
0099 
0100 
0101 
0102 
0103 
0104 #endif // _XmlLDrivers_DocumentRetrievalDriver_HeaderFile