Open CASCADE Technology 6.6.0
Public Member Functions | Static Public Member Functions
BinLDrivers_DocumentSection Class Reference

More or less independent part of the saved/restored document
that is distinct from OCAF data themselves but may be referred
by them.

#include <BinLDrivers_DocumentSection.hxx>

Public Member Functions

 BinLDrivers_DocumentSection ()
 Empty constructor

 BinLDrivers_DocumentSection (const TCollection_AsciiString &theName, const Standard_Boolean isPostRead)
 Constructor

const TCollection_AsciiStringName () const
 Query the name of the section.

Standard_Boolean IsPostRead () const
 Query the status: if the Section should be read after OCAF;
False means that the Section is read before starting to
read OCAF data.

Standard_Size Offset () const
 Query the offset of the section in the persistent file

void SetOffset (const Standard_Size theOffset)
 Set the offset of the section in the persistent file

Standard_Size Length () const
 Query the length of the section in the persistent file

void SetLength (const Standard_Size theLength)
 Set the length of the section in the persistent file

void WriteTOC (Standard_OStream &theOS)
 Create a Section entry in the Document TOC (list of sections)

void Write (Standard_OStream &theOS, const Standard_Size theOffset)
 Save Offset and Length data into the Section entry
in the Document TOC (list of sections)

Static Public Member Functions

static void ReadTOC (BinLDrivers_DocumentSection &theSection, Standard_IStream &theIS)
 Fill a DocumentSection instance from the data that are read
from TOC.


Constructor & Destructor Documentation

BinLDrivers_DocumentSection::BinLDrivers_DocumentSection ( )
BinLDrivers_DocumentSection::BinLDrivers_DocumentSection ( const TCollection_AsciiString theName,
const Standard_Boolean  isPostRead 
)

Member Function Documentation

Standard_Boolean BinLDrivers_DocumentSection::IsPostRead ( ) const
Standard_Size BinLDrivers_DocumentSection::Length ( ) const
const TCollection_AsciiString& BinLDrivers_DocumentSection::Name ( ) const
Standard_Size BinLDrivers_DocumentSection::Offset ( ) const
static void BinLDrivers_DocumentSection::ReadTOC ( BinLDrivers_DocumentSection theSection,
Standard_IStream &  theIS 
) [static]
void BinLDrivers_DocumentSection::SetLength ( const Standard_Size  theLength)
void BinLDrivers_DocumentSection::SetOffset ( const Standard_Size  theOffset)
void BinLDrivers_DocumentSection::Write ( Standard_OStream theOS,
const Standard_Size  theOffset 
)
void BinLDrivers_DocumentSection::WriteTOC ( Standard_OStream theOS)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines