Open CASCADE Technology
7.5.0
|
More or less independent part of the saved/restored document that is distinct from OCAF data themselves but may be referred by them. More...
#include <BinLDrivers_DocumentSection.hxx>
Public Member Functions | |
BinLDrivers_DocumentSection () | |
Empty constructor. More... | |
BinLDrivers_DocumentSection (const TCollection_AsciiString &theName, const Standard_Boolean isPostRead) | |
Constructor. More... | |
const TCollection_AsciiString & | Name () const |
Query the name of the section. More... | |
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. More... | |
uint64_t | Offset () const |
Query the offset of the section in the persistent file. More... | |
void | SetOffset (const uint64_t theOffset) |
Set the offset of the section in the persistent file. More... | |
uint64_t | Length () const |
Query the length of the section in the persistent file. More... | |
void | SetLength (const uint64_t theLength) |
Set the length of the section in the persistent file. More... | |
void | WriteTOC (Standard_OStream &theOS) |
Create a Section entry in the Document TOC (list of sections) More... | |
void | Write (Standard_OStream &theOS, const uint64_t theOffset) |
Save Offset and Length data into the Section entry in the Document TOC (list of sections) More... | |
Static Public Member Functions | |
static void | ReadTOC (BinLDrivers_DocumentSection &theSection, Standard_IStream &theIS, const Standard_Integer theDocFormatVersion) |
Fill a DocumentSection instance from the data that are read from TOC. More... | |
More or less independent part of the saved/restored document that is distinct from OCAF data themselves but may be referred by them.
BinLDrivers_DocumentSection::BinLDrivers_DocumentSection | ( | ) |
Empty constructor.
BinLDrivers_DocumentSection::BinLDrivers_DocumentSection | ( | const TCollection_AsciiString & | theName, |
const Standard_Boolean | isPostRead | ||
) |
Constructor.
Standard_Boolean BinLDrivers_DocumentSection::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.
uint64_t BinLDrivers_DocumentSection::Length | ( | ) | const |
Query the length of the section in the persistent file.
const TCollection_AsciiString& BinLDrivers_DocumentSection::Name | ( | ) | const |
Query the name of the section.
uint64_t BinLDrivers_DocumentSection::Offset | ( | ) | const |
Query the offset of the section in the persistent file.
|
static |
Fill a DocumentSection instance from the data that are read from TOC.
void BinLDrivers_DocumentSection::SetLength | ( | const uint64_t | theLength | ) |
Set the length of the section in the persistent file.
void BinLDrivers_DocumentSection::SetOffset | ( | const uint64_t | theOffset | ) |
Set the offset of the section in the persistent file.
void BinLDrivers_DocumentSection::Write | ( | Standard_OStream & | theOS, |
const uint64_t | theOffset | ||
) |
Save Offset and Length data into the Section entry in the Document TOC (list of sections)
void BinLDrivers_DocumentSection::WriteTOC | ( | Standard_OStream & | theOS | ) |
Create a Section entry in the Document TOC (list of sections)