Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
BinLDrivers_DocumentStorageDriver Class Reference

persistent implemention of storage a document in a binary file

#include <BinLDrivers_DocumentStorageDriver.hxx>

Inheritance diagram for BinLDrivers_DocumentStorageDriver:
Inheritance graph
[legend]

Public Member Functions

 BinLDrivers_DocumentStorageDriver ()
 Constructor

virtual TCollection_ExtendedString SchemaName () const
 pure virtual method definition

virtual void Write (const Handle< CDM_Document > &theDocument, const TCollection_ExtendedString &theFileName)
 Write <theDocument> to the binary file <theFileName>

virtual Handle_BinMDF_ADriverTable AttributeDrivers (const Handle< CDM_MessageDriver > &theMsgDriver)
void AddSection (const TCollection_AsciiString &theName, const Standard_Boolean isPostRead=Standard_True)
 Create a section that should be written after the OCAF data

Protected Member Functions

void WriteSubTree (const TDF_Label &theData, Standard_OStream &theOS)
 Write the tree under <theLabel> to the stream <theOS>

virtual void WriteSection (const TCollection_AsciiString &theName, const Handle< CDM_Document > &theDoc, Standard_OStream &theOS)
 define the procedure of writing a section to file.

virtual void WriteShapeSection (BinLDrivers_DocumentSection &theDocSection, Standard_OStream &theOS)
 defines the procedure of writing a shape section to file

void WriteMessage (const TCollection_ExtendedString &theMessage)
 write theMessage to the MessageDriver of the
Application

Protected Attributes

Handle_BinMDF_ADriverTable myDrivers
BinObjMgt_SRelocationTable myRelocTable

Constructor & Destructor Documentation


Member Function Documentation

virtual Handle_BinMDF_ADriverTable BinLDrivers_DocumentStorageDriver::AttributeDrivers ( const Handle< CDM_MessageDriver > &  theMsgDriver) [virtual]

Implements PCDM_StorageDriver.

virtual void BinLDrivers_DocumentStorageDriver::Write ( const Handle< CDM_Document > &  theDocument,
const TCollection_ExtendedString theFileName 
) [virtual]

Reimplemented from PCDM_StorageDriver.

virtual void BinLDrivers_DocumentStorageDriver::WriteSection ( const TCollection_AsciiString theName,
const Handle< CDM_Document > &  theDoc,
Standard_OStream theOS 
) [protected, virtual]
virtual void BinLDrivers_DocumentStorageDriver::WriteShapeSection ( BinLDrivers_DocumentSection theDocSection,
Standard_OStream theOS 
) [protected, virtual]

Field Documentation

Handle_BinMDF_ADriverTable BinLDrivers_DocumentStorageDriver::myDrivers [protected]

The documentation for this class was generated from the following file: