mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-17 06:46:06 +08:00
4ff92abe44
TDocStd_Application class extended to open/save a document of XmlOcaf and BinOcaf format from/to standard SEEKABLE stream object which should support SEEK functionality. Open and SaveAs DRAW commands got new additional argument "-stream" to turn on using of stream functionality. The main changes for BinOcaf format applied in: FSD_BinaryFile class (static method using standard stream added) BinLDrivers_DocumentRetrievalDriver and BinLDrivers_DocumentStorageDriver classes use standard stream object as an argument The main changes for XmlOcaf format applied in: LDOMParser and LDOM_XmlWriter classes use standard stream object as an argument Unused class FSD_Archive and its siblings removed from MFC samples.
103 lines
2.6 KiB
C++
103 lines
2.6 KiB
C++
// Created on: 1997-08-01
|
|
// Created by: Jean-Louis Frenkel
|
|
// Copyright (c) 1997-1999 Matra Datavision
|
|
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
#ifndef _PCDM_HeaderFile
|
|
#define _PCDM_HeaderFile
|
|
|
|
#include <Standard.hxx>
|
|
#include <Standard_DefineAlloc.hxx>
|
|
#include <Standard_Handle.hxx>
|
|
|
|
#include <Standard_IStream.hxx>
|
|
|
|
#include <Standard_Boolean.hxx>
|
|
#include <PCDM_TypeOfFileDriver.hxx>
|
|
#include <PCDM_BaseDriverPointer.hxx>
|
|
class CDM_Document;
|
|
class PCDM_StorageDriver;
|
|
class Storage_Schema;
|
|
class TCollection_ExtendedString;
|
|
class CDM_Application;
|
|
class TCollection_AsciiString;
|
|
class PCDM_Document;
|
|
class PCDM_Reader;
|
|
class PCDM_Writer;
|
|
class PCDM_RetrievalDriver;
|
|
class PCDM_StorageDriver;
|
|
class PCDM_ReferenceIterator;
|
|
class PCDM_Reference;
|
|
class PCDM_ReadWriter;
|
|
class PCDM_ReadWriter_1;
|
|
|
|
|
|
|
|
class PCDM
|
|
{
|
|
public:
|
|
|
|
DEFINE_STANDARD_ALLOC
|
|
|
|
|
|
Standard_EXPORT static Standard_Boolean FindStorageDriver (const Handle(CDM_Document)& aDocument);
|
|
|
|
//! gets in the EuclidDesktop resource the plugin
|
|
//! identifier of the driver plugs the driver.
|
|
Standard_EXPORT static Handle(PCDM_StorageDriver) StorageDriver (const Handle(CDM_Document)& aDocument);
|
|
|
|
//! returns a schema to be used during a Store or Retrieve
|
|
//! operation.
|
|
//! Schema will plug the schema defined by
|
|
//! the SchemaName method.
|
|
Standard_EXPORT static Handle(Storage_Schema) Schema (const TCollection_ExtendedString& aSchemaName, const Handle(CDM_Application)& anApplication);
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
Standard_EXPORT static PCDM_TypeOfFileDriver FileDriverType (const TCollection_AsciiString& aFileName, PCDM_BaseDriverPointer& aBaseDriver);
|
|
|
|
Standard_EXPORT static PCDM_TypeOfFileDriver FileDriverType (Standard_IStream& theIStream, PCDM_BaseDriverPointer& theBaseDriver);
|
|
|
|
|
|
|
|
friend class PCDM_Document;
|
|
friend class PCDM_Reader;
|
|
friend class PCDM_Writer;
|
|
friend class PCDM_RetrievalDriver;
|
|
friend class PCDM_StorageDriver;
|
|
friend class PCDM_ReferenceIterator;
|
|
friend class PCDM_Reference;
|
|
friend class PCDM_ReadWriter;
|
|
friend class PCDM_ReadWriter_1;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _PCDM_HeaderFile
|