Open CASCADE Technology  7.3.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions

FSD_BinaryFile Class Reference

#include <FSD_BinaryFile.hxx>

Inheritance diagram for FSD_BinaryFile:
Inheritance graph
[legend]

Public Member Functions

 FSD_BinaryFile ()
 
Storage_Error Open (const TCollection_AsciiString &aName, const Storage_OpenMode aMode)
 
Standard_Boolean IsEnd ()
 returns True if we are at end of the stream More...
 
Storage_Position Tell ()
 return position in the file. Return -1 upon error. More...
 
Storage_Error BeginWriteInfoSection ()
 
void WriteInfo (const Standard_Integer nbObj, const TCollection_AsciiString &dbVersion, const TCollection_AsciiString &date, const TCollection_AsciiString &schemaName, const TCollection_AsciiString &schemaVersion, const TCollection_ExtendedString &appName, const TCollection_AsciiString &appVersion, const TCollection_ExtendedString &objectType, const TColStd_SequenceOfAsciiString &userInfo)
 
Storage_Error EndWriteInfoSection ()
 
Storage_Error EndWriteInfoSection (Standard_OStream &theOStream)
 
Storage_Error BeginReadInfoSection ()
 
void ReadInfo (Standard_Integer &nbObj, TCollection_AsciiString &dbVersion, TCollection_AsciiString &date, TCollection_AsciiString &schemaName, TCollection_AsciiString &schemaVersion, TCollection_ExtendedString &appName, TCollection_AsciiString &appVersion, TCollection_ExtendedString &objectType, TColStd_SequenceOfAsciiString &userInfo)
 
void ReadCompleteInfo (Standard_IStream &theIStream, Handle< Storage_Data > &theData)
 
Storage_Error EndReadInfoSection ()
 
Storage_Error BeginWriteCommentSection ()
 
Storage_Error BeginWriteCommentSection (Standard_OStream &theOStream)
 
void WriteComment (const TColStd_SequenceOfExtendedString &userComments)
 
Storage_Error EndWriteCommentSection ()
 
Storage_Error EndWriteCommentSection (Standard_OStream &theOStream)
 
Storage_Error BeginReadCommentSection ()
 
void ReadComment (TColStd_SequenceOfExtendedString &userComments)
 
Storage_Error EndReadCommentSection ()
 
Storage_Error BeginWriteTypeSection ()
 
void SetTypeSectionSize (const Standard_Integer aSize)
 
void WriteTypeInformations (const Standard_Integer typeNum, const TCollection_AsciiString &typeName)
 
Storage_Error EndWriteTypeSection ()
 
Storage_Error BeginReadTypeSection ()
 
Standard_Integer TypeSectionSize ()
 
void ReadTypeInformations (Standard_Integer &typeNum, TCollection_AsciiString &typeName)
 
Storage_Error EndReadTypeSection ()
 
Storage_Error BeginWriteRootSection ()
 
void SetRootSectionSize (const Standard_Integer aSize)
 
void WriteRoot (const TCollection_AsciiString &rootName, const Standard_Integer aRef, const TCollection_AsciiString &aType)
 
Storage_Error EndWriteRootSection ()
 
Storage_Error BeginReadRootSection ()
 
Standard_Integer RootSectionSize ()
 
void ReadRoot (TCollection_AsciiString &rootName, Standard_Integer &aRef, TCollection_AsciiString &aType)
 
Storage_Error EndReadRootSection ()
 
Storage_Error BeginWriteRefSection ()
 
void SetRefSectionSize (const Standard_Integer aSize)
 
void WriteReferenceType (const Standard_Integer reference, const Standard_Integer typeNum)
 
Storage_Error EndWriteRefSection ()
 
Storage_Error BeginReadRefSection ()
 
Standard_Integer RefSectionSize ()
 
void ReadReferenceType (Standard_Integer &reference, Standard_Integer &typeNum)
 
Storage_Error EndReadRefSection ()
 
Storage_Error BeginWriteDataSection ()
 
void WritePersistentObjectHeader (const Standard_Integer aRef, const Standard_Integer aType)
 
void BeginWritePersistentObjectData ()
 
void BeginWriteObjectData ()
 
void EndWriteObjectData ()
 
void EndWritePersistentObjectData ()
 
Storage_Error EndWriteDataSection ()
 
Storage_Error BeginReadDataSection ()
 
void ReadPersistentObjectHeader (Standard_Integer &aRef, Standard_Integer &aType)
 
void BeginReadPersistentObjectData ()
 
void BeginReadObjectData ()
 
void EndReadObjectData ()
 
void EndReadPersistentObjectData ()
 
Storage_Error EndReadDataSection ()
 
void SkipObject ()
 
Storage_BaseDriverPutReference (const Standard_Integer aValue)
 
Storage_BaseDriverPutCharacter (const Standard_Character aValue)
 
Storage_BaseDriveroperator<< (const Standard_Character aValue)
 
Storage_BaseDriverPutExtCharacter (const Standard_ExtCharacter aValue)
 
Storage_BaseDriveroperator<< (const Standard_ExtCharacter aValue)
 
Storage_BaseDriverPutInteger (const Standard_Integer aValue)
 
Storage_BaseDriveroperator<< (const Standard_Integer aValue)
 
Storage_BaseDriverPutBoolean (const Standard_Boolean aValue)
 
Storage_BaseDriveroperator<< (const Standard_Boolean aValue)
 
Storage_BaseDriverPutReal (const Standard_Real aValue)
 
Storage_BaseDriveroperator<< (const Standard_Real aValue)
 
Storage_BaseDriverPutShortReal (const Standard_ShortReal aValue)
 
Storage_BaseDriveroperator<< (const Standard_ShortReal aValue)
 
Storage_BaseDriverGetReference (Standard_Integer &aValue)
 
Storage_BaseDriverGetCharacter (Standard_Character &aValue)
 
Storage_BaseDriveroperator>> (Standard_Character &aValue)
 
Storage_BaseDriverGetExtCharacter (Standard_ExtCharacter &aValue)
 
Storage_BaseDriveroperator>> (Standard_ExtCharacter &aValue)
 
Storage_BaseDriverGetInteger (Standard_Integer &aValue)
 
Storage_BaseDriveroperator>> (Standard_Integer &aValue)
 
Storage_BaseDriverGetBoolean (Standard_Boolean &aValue)
 
Storage_BaseDriveroperator>> (Standard_Boolean &aValue)
 
Storage_BaseDriverGetReal (Standard_Real &aValue)
 
Storage_BaseDriveroperator>> (Standard_Real &aValue)
 
Storage_BaseDriverGetShortReal (Standard_ShortReal &aValue)
 
Storage_BaseDriveroperator>> (Standard_ShortReal &aValue)
 
Storage_Error Close ()
 
void Destroy ()
 
 ~FSD_BinaryFile ()
 
- Public Member Functions inherited from Storage_BaseDriver
virtual ~Storage_BaseDriver ()
 
TCollection_AsciiString Name () const
 
Storage_OpenMode OpenMode () const
 
Storage_BaseDriveroperator<< (const Standard_Character aValue)
 
Storage_BaseDriveroperator<< (const Standard_ExtCharacter aValue)
 
Storage_BaseDriveroperator<< (const Standard_Integer aValue)
 
Storage_BaseDriveroperator<< (const Standard_Boolean aValue)
 
Storage_BaseDriveroperator<< (const Standard_Real aValue)
 
Storage_BaseDriveroperator<< (const Standard_ShortReal aValue)
 
Storage_BaseDriveroperator>> (Standard_Character &aValue)
 
Storage_BaseDriveroperator>> (Standard_ExtCharacter &aValue)
 
Storage_BaseDriveroperator>> (Standard_Integer &aValue)
 
Storage_BaseDriveroperator>> (Standard_Boolean &aValue)
 
Storage_BaseDriveroperator>> (Standard_Real &aValue)
 
Storage_BaseDriveroperator>> (Standard_ShortReal &aValue)
 

Static Public Member Functions

static Storage_Error IsGoodFileType (const TCollection_AsciiString &aName)
 
static Standard_Integer WriteInfo (Standard_OStream &theOStream, const Standard_Integer nbObj, const TCollection_AsciiString &dbVersion, const TCollection_AsciiString &date, const TCollection_AsciiString &schemaName, const TCollection_AsciiString &schemaVersion, const TCollection_ExtendedString &appName, const TCollection_AsciiString &appVersion, const TCollection_ExtendedString &objectType, const TColStd_SequenceOfAsciiString &userInfo, const Standard_Boolean theOnlyCount=Standard_False)
 
static Standard_Integer WriteComment (Standard_OStream &theOStream, const TColStd_SequenceOfExtendedString &theComments, const Standard_Boolean theOnlyCount=Standard_False)
 
static void ReadComment (Standard_IStream &theIStream, TColStd_SequenceOfExtendedString &userComments)
 
static Standard_Integer TypeSectionSize (Standard_IStream &theIStream)
 
static void ReadTypeInformations (Standard_IStream &theIStream, Standard_Integer &typeNum, TCollection_AsciiString &typeName)
 
static Standard_Integer RootSectionSize (Standard_IStream &theIStream)
 
static void ReadRoot (Standard_IStream &theIStream, TCollection_AsciiString &rootName, Standard_Integer &aRef, TCollection_AsciiString &aType)
 
static Standard_Integer RefSectionSize (Standard_IStream &theIStream)
 
static void ReadReferenceType (Standard_IStream &theIStream, Standard_Integer &reference, Standard_Integer &typeNum)
 
static Standard_Integer PutInteger (Standard_OStream &theOStream, const Standard_Integer aValue, const Standard_Boolean theOnlyCount=Standard_False)
 
static void GetReference (Standard_IStream &theIStream, Standard_Integer &aValue)
 
static void GetInteger (Standard_IStream &theIStream, Standard_Integer &aValue)
 
static Standard_Integer InverseInt (const Standard_Integer theValue)
 Inverse bytes in integer value. More...
 
static Standard_ExtCharacter InverseExtChar (const Standard_ExtCharacter theValue)
 Inverse bytes in extended character value. More...
 
static Standard_Real InverseReal (const Standard_Real theValue)
 Inverse bytes in real value. More...
 
static Standard_ShortReal InverseShortReal (const Standard_ShortReal theValue)
 Inverse bytes in short real value. More...
 
static Standard_Size InverseSize (const Standard_Size theValue)
 Inverse bytes in size value. More...
 
static uint64_t InverseUint64 (const uint64_t theValue)
 Inverse bytes in 64bit unsigned int value. More...
 
static void ReadHeader (Standard_IStream &theIStream, FSD_FileHeader &theFileHeader)
 
static void ReadHeaderData (Standard_IStream &theIStream, const Handle< Storage_HeaderData > &theHeaderData)
 
static void ReadString (Standard_IStream &theIStream, TCollection_AsciiString &buffer)
 
static void ReadExtendedString (Standard_IStream &theIStream, TCollection_ExtendedString &buffer)
 
static Standard_Integer WriteHeader (Standard_OStream &theOStream, const FSD_FileHeader &theHeader, const Standard_Boolean theOnlyCount=Standard_False)
 
static Standard_CString MagicNumber ()
 
- Static Public Member Functions inherited from Storage_BaseDriver
static TCollection_AsciiString ReadMagicNumber (Standard_IStream &theIStream)
 

Protected Member Functions

void ReadChar (TCollection_AsciiString &buffer, const Standard_Size rsize)
 read <rsize> character from the current position. More...
 
void ReadString (TCollection_AsciiString &buffer)
 read string from the current position. More...
 
void WriteString (const TCollection_AsciiString &buffer)
 write string at the current position. More...
 
void ReadExtendedString (TCollection_ExtendedString &buffer)
 read string from the current position. More...
 
void WriteExtendedString (const TCollection_ExtendedString &buffer)
 write string at the current position. More...
 
- Protected Member Functions inherited from Storage_BaseDriver
 Storage_BaseDriver ()
 
void SetName (const TCollection_AsciiString &aName)
 
void SetOpenMode (const Storage_OpenMode aMode)
 

Static Protected Member Functions

static Standard_Integer WriteString (Standard_OStream &theOStream, const TCollection_AsciiString &theString, const Standard_Boolean theOnlyCount=Standard_False)
 write string at the current position. More...
 
static Standard_Integer WriteExtendedString (Standard_OStream &theOStream, const TCollection_ExtendedString &theString, const Standard_Boolean theOnlyCount=Standard_False)
 write string at the current position. More...
 

Constructor & Destructor Documentation

◆ FSD_BinaryFile()

FSD_BinaryFile::FSD_BinaryFile ( )

◆ ~FSD_BinaryFile()

FSD_BinaryFile::~FSD_BinaryFile ( )
inline

Member Function Documentation

◆ BeginReadCommentSection()

Storage_Error FSD_BinaryFile::BeginReadCommentSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginReadDataSection()

Storage_Error FSD_BinaryFile::BeginReadDataSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginReadInfoSection()

Storage_Error FSD_BinaryFile::BeginReadInfoSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginReadObjectData()

void FSD_BinaryFile::BeginReadObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ BeginReadPersistentObjectData()

void FSD_BinaryFile::BeginReadPersistentObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ BeginReadRefSection()

Storage_Error FSD_BinaryFile::BeginReadRefSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginReadRootSection()

Storage_Error FSD_BinaryFile::BeginReadRootSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginReadTypeSection()

Storage_Error FSD_BinaryFile::BeginReadTypeSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWriteCommentSection() [1/2]

Storage_Error FSD_BinaryFile::BeginWriteCommentSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWriteCommentSection() [2/2]

Storage_Error FSD_BinaryFile::BeginWriteCommentSection ( Standard_OStream theOStream)

◆ BeginWriteDataSection()

Storage_Error FSD_BinaryFile::BeginWriteDataSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWriteInfoSection()

Storage_Error FSD_BinaryFile::BeginWriteInfoSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWriteObjectData()

void FSD_BinaryFile::BeginWriteObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWritePersistentObjectData()

void FSD_BinaryFile::BeginWritePersistentObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWriteRefSection()

Storage_Error FSD_BinaryFile::BeginWriteRefSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWriteRootSection()

Storage_Error FSD_BinaryFile::BeginWriteRootSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWriteTypeSection()

Storage_Error FSD_BinaryFile::BeginWriteTypeSection ( )
virtual

Implements Storage_BaseDriver.

◆ Close()

Storage_Error FSD_BinaryFile::Close ( )
virtual

Implements Storage_BaseDriver.

◆ Destroy()

void FSD_BinaryFile::Destroy ( )

◆ EndReadCommentSection()

Storage_Error FSD_BinaryFile::EndReadCommentSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndReadDataSection()

Storage_Error FSD_BinaryFile::EndReadDataSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndReadInfoSection()

Storage_Error FSD_BinaryFile::EndReadInfoSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndReadObjectData()

void FSD_BinaryFile::EndReadObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ EndReadPersistentObjectData()

void FSD_BinaryFile::EndReadPersistentObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ EndReadRefSection()

Storage_Error FSD_BinaryFile::EndReadRefSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndReadRootSection()

Storage_Error FSD_BinaryFile::EndReadRootSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndReadTypeSection()

Storage_Error FSD_BinaryFile::EndReadTypeSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndWriteCommentSection() [1/2]

Storage_Error FSD_BinaryFile::EndWriteCommentSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndWriteCommentSection() [2/2]

Storage_Error FSD_BinaryFile::EndWriteCommentSection ( Standard_OStream theOStream)

◆ EndWriteDataSection()

Storage_Error FSD_BinaryFile::EndWriteDataSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndWriteInfoSection() [1/2]

Storage_Error FSD_BinaryFile::EndWriteInfoSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndWriteInfoSection() [2/2]

Storage_Error FSD_BinaryFile::EndWriteInfoSection ( Standard_OStream theOStream)

◆ EndWriteObjectData()

void FSD_BinaryFile::EndWriteObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ EndWritePersistentObjectData()

void FSD_BinaryFile::EndWritePersistentObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ EndWriteRefSection()

Storage_Error FSD_BinaryFile::EndWriteRefSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndWriteRootSection()

Storage_Error FSD_BinaryFile::EndWriteRootSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndWriteTypeSection()

Storage_Error FSD_BinaryFile::EndWriteTypeSection ( )
virtual

Implements Storage_BaseDriver.

◆ GetBoolean()

Storage_BaseDriver& FSD_BinaryFile::GetBoolean ( Standard_Boolean aValue)
virtual

Implements Storage_BaseDriver.

◆ GetCharacter()

Storage_BaseDriver& FSD_BinaryFile::GetCharacter ( Standard_Character aValue)
virtual

Implements Storage_BaseDriver.

◆ GetExtCharacter()

Storage_BaseDriver& FSD_BinaryFile::GetExtCharacter ( Standard_ExtCharacter aValue)
virtual

Implements Storage_BaseDriver.

◆ GetInteger() [1/2]

Storage_BaseDriver& FSD_BinaryFile::GetInteger ( Standard_Integer aValue)
virtual

Implements Storage_BaseDriver.

◆ GetInteger() [2/2]

static void FSD_BinaryFile::GetInteger ( Standard_IStream theIStream,
Standard_Integer aValue 
)
static

◆ GetReal()

Storage_BaseDriver& FSD_BinaryFile::GetReal ( Standard_Real aValue)
virtual

Implements Storage_BaseDriver.

◆ GetReference() [1/2]

Storage_BaseDriver& FSD_BinaryFile::GetReference ( Standard_Integer aValue)
virtual

Implements Storage_BaseDriver.

◆ GetReference() [2/2]

static void FSD_BinaryFile::GetReference ( Standard_IStream theIStream,
Standard_Integer aValue 
)
static

◆ GetShortReal()

Storage_BaseDriver& FSD_BinaryFile::GetShortReal ( Standard_ShortReal aValue)
virtual

Implements Storage_BaseDriver.

◆ InverseExtChar()

static Standard_ExtCharacter FSD_BinaryFile::InverseExtChar ( const Standard_ExtCharacter  theValue)
inlinestatic

Inverse bytes in extended character value.

◆ InverseInt()

static Standard_Integer FSD_BinaryFile::InverseInt ( const Standard_Integer  theValue)
inlinestatic

Inverse bytes in integer value.

◆ InverseReal()

static Standard_Real FSD_BinaryFile::InverseReal ( const Standard_Real  theValue)
static

Inverse bytes in real value.

◆ InverseShortReal()

static Standard_ShortReal FSD_BinaryFile::InverseShortReal ( const Standard_ShortReal  theValue)
static

Inverse bytes in short real value.

◆ InverseSize()

static Standard_Size FSD_BinaryFile::InverseSize ( const Standard_Size  theValue)
static

Inverse bytes in size value.

◆ InverseUint64()

static uint64_t FSD_BinaryFile::InverseUint64 ( const uint64_t  theValue)
static

Inverse bytes in 64bit unsigned int value.

◆ IsEnd()

Standard_Boolean FSD_BinaryFile::IsEnd ( )
virtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ IsGoodFileType()

static Storage_Error FSD_BinaryFile::IsGoodFileType ( const TCollection_AsciiString aName)
static

◆ MagicNumber()

static Standard_CString FSD_BinaryFile::MagicNumber ( )
static

◆ Open()

Storage_Error FSD_BinaryFile::Open ( const TCollection_AsciiString aName,
const Storage_OpenMode  aMode 
)
virtual

Implements Storage_BaseDriver.

◆ operator<<() [1/6]

Storage_BaseDriver& FSD_BinaryFile::operator<< ( const Standard_Character  aValue)
inline

◆ operator<<() [2/6]

Storage_BaseDriver& FSD_BinaryFile::operator<< ( const Standard_ExtCharacter  aValue)
inline

◆ operator<<() [3/6]

Storage_BaseDriver& FSD_BinaryFile::operator<< ( const Standard_Integer  aValue)
inline

◆ operator<<() [4/6]

Storage_BaseDriver& FSD_BinaryFile::operator<< ( const Standard_Boolean  aValue)
inline

◆ operator<<() [5/6]

Storage_BaseDriver& FSD_BinaryFile::operator<< ( const Standard_Real  aValue)
inline

◆ operator<<() [6/6]

Storage_BaseDriver& FSD_BinaryFile::operator<< ( const Standard_ShortReal  aValue)
inline

◆ operator>>() [1/6]

Storage_BaseDriver& FSD_BinaryFile::operator>> ( Standard_Character aValue)
inline

◆ operator>>() [2/6]

Storage_BaseDriver& FSD_BinaryFile::operator>> ( Standard_ExtCharacter aValue)
inline

◆ operator>>() [3/6]

Storage_BaseDriver& FSD_BinaryFile::operator>> ( Standard_Integer aValue)
inline

◆ operator>>() [4/6]

Storage_BaseDriver& FSD_BinaryFile::operator>> ( Standard_Boolean aValue)
inline

◆ operator>>() [5/6]

Storage_BaseDriver& FSD_BinaryFile::operator>> ( Standard_Real aValue)
inline

◆ operator>>() [6/6]

Storage_BaseDriver& FSD_BinaryFile::operator>> ( Standard_ShortReal aValue)
inline

◆ PutBoolean()

Storage_BaseDriver& FSD_BinaryFile::PutBoolean ( const Standard_Boolean  aValue)
virtual

Implements Storage_BaseDriver.

◆ PutCharacter()

Storage_BaseDriver& FSD_BinaryFile::PutCharacter ( const Standard_Character  aValue)
virtual

Implements Storage_BaseDriver.

◆ PutExtCharacter()

Storage_BaseDriver& FSD_BinaryFile::PutExtCharacter ( const Standard_ExtCharacter  aValue)
virtual

Implements Storage_BaseDriver.

◆ PutInteger() [1/2]

static Standard_Integer FSD_BinaryFile::PutInteger ( Standard_OStream theOStream,
const Standard_Integer  aValue,
const Standard_Boolean  theOnlyCount = Standard_False 
)
static

◆ PutInteger() [2/2]

Storage_BaseDriver& FSD_BinaryFile::PutInteger ( const Standard_Integer  aValue)
virtual

Implements Storage_BaseDriver.

◆ PutReal()

Storage_BaseDriver& FSD_BinaryFile::PutReal ( const Standard_Real  aValue)
virtual

Implements Storage_BaseDriver.

◆ PutReference()

Storage_BaseDriver& FSD_BinaryFile::PutReference ( const Standard_Integer  aValue)
virtual

Implements Storage_BaseDriver.

◆ PutShortReal()

Storage_BaseDriver& FSD_BinaryFile::PutShortReal ( const Standard_ShortReal  aValue)
virtual

Implements Storage_BaseDriver.

◆ ReadChar()

void FSD_BinaryFile::ReadChar ( TCollection_AsciiString buffer,
const Standard_Size  rsize 
)
protected

read <rsize> character from the current position.

◆ ReadComment() [1/2]

void FSD_BinaryFile::ReadComment ( TColStd_SequenceOfExtendedString userComments)
virtual

Implements Storage_BaseDriver.

◆ ReadComment() [2/2]

static void FSD_BinaryFile::ReadComment ( Standard_IStream theIStream,
TColStd_SequenceOfExtendedString userComments 
)
static

◆ ReadCompleteInfo()

void FSD_BinaryFile::ReadCompleteInfo ( Standard_IStream theIStream,
Handle< Storage_Data > &  theData 
)
virtual

Implements Storage_BaseDriver.

◆ ReadExtendedString() [1/2]

static void FSD_BinaryFile::ReadExtendedString ( Standard_IStream theIStream,
TCollection_ExtendedString buffer 
)
static

◆ ReadExtendedString() [2/2]

void FSD_BinaryFile::ReadExtendedString ( TCollection_ExtendedString buffer)
protected

read string from the current position.

◆ ReadHeader()

static void FSD_BinaryFile::ReadHeader ( Standard_IStream theIStream,
FSD_FileHeader theFileHeader 
)
static

◆ ReadHeaderData()

static void FSD_BinaryFile::ReadHeaderData ( Standard_IStream theIStream,
const Handle< Storage_HeaderData > &  theHeaderData 
)
static

◆ ReadInfo()

void FSD_BinaryFile::ReadInfo ( Standard_Integer nbObj,
TCollection_AsciiString dbVersion,
TCollection_AsciiString date,
TCollection_AsciiString schemaName,
TCollection_AsciiString schemaVersion,
TCollection_ExtendedString appName,
TCollection_AsciiString appVersion,
TCollection_ExtendedString objectType,
TColStd_SequenceOfAsciiString userInfo 
)
virtual

Implements Storage_BaseDriver.

◆ ReadPersistentObjectHeader()

void FSD_BinaryFile::ReadPersistentObjectHeader ( Standard_Integer aRef,
Standard_Integer aType 
)
virtual

Implements Storage_BaseDriver.

◆ ReadReferenceType() [1/2]

void FSD_BinaryFile::ReadReferenceType ( Standard_Integer reference,
Standard_Integer typeNum 
)
virtual

Implements Storage_BaseDriver.

◆ ReadReferenceType() [2/2]

static void FSD_BinaryFile::ReadReferenceType ( Standard_IStream theIStream,
Standard_Integer reference,
Standard_Integer typeNum 
)
static

◆ ReadRoot() [1/2]

void FSD_BinaryFile::ReadRoot ( TCollection_AsciiString rootName,
Standard_Integer aRef,
TCollection_AsciiString aType 
)
virtual

Implements Storage_BaseDriver.

◆ ReadRoot() [2/2]

static void FSD_BinaryFile::ReadRoot ( Standard_IStream theIStream,
TCollection_AsciiString rootName,
Standard_Integer aRef,
TCollection_AsciiString aType 
)
static

◆ ReadString() [1/2]

static void FSD_BinaryFile::ReadString ( Standard_IStream theIStream,
TCollection_AsciiString buffer 
)
static

◆ ReadString() [2/2]

void FSD_BinaryFile::ReadString ( TCollection_AsciiString buffer)
protected

read string from the current position.

◆ ReadTypeInformations() [1/2]

void FSD_BinaryFile::ReadTypeInformations ( Standard_Integer typeNum,
TCollection_AsciiString typeName 
)
virtual

Implements Storage_BaseDriver.

◆ ReadTypeInformations() [2/2]

static void FSD_BinaryFile::ReadTypeInformations ( Standard_IStream theIStream,
Standard_Integer typeNum,
TCollection_AsciiString typeName 
)
static

◆ RefSectionSize() [1/2]

Standard_Integer FSD_BinaryFile::RefSectionSize ( )
virtual

Implements Storage_BaseDriver.

◆ RefSectionSize() [2/2]

static Standard_Integer FSD_BinaryFile::RefSectionSize ( Standard_IStream theIStream)
static

◆ RootSectionSize() [1/2]

Standard_Integer FSD_BinaryFile::RootSectionSize ( )
virtual

Implements Storage_BaseDriver.

◆ RootSectionSize() [2/2]

static Standard_Integer FSD_BinaryFile::RootSectionSize ( Standard_IStream theIStream)
static

◆ SetRefSectionSize()

void FSD_BinaryFile::SetRefSectionSize ( const Standard_Integer  aSize)
virtual

Implements Storage_BaseDriver.

◆ SetRootSectionSize()

void FSD_BinaryFile::SetRootSectionSize ( const Standard_Integer  aSize)
virtual

Implements Storage_BaseDriver.

◆ SetTypeSectionSize()

void FSD_BinaryFile::SetTypeSectionSize ( const Standard_Integer  aSize)
virtual

Implements Storage_BaseDriver.

◆ SkipObject()

void FSD_BinaryFile::SkipObject ( )
virtual

Implements Storage_BaseDriver.

◆ Tell()

Storage_Position FSD_BinaryFile::Tell ( )
virtual

return position in the file. Return -1 upon error.

Implements Storage_BaseDriver.

◆ TypeSectionSize() [1/2]

Standard_Integer FSD_BinaryFile::TypeSectionSize ( )
virtual

Implements Storage_BaseDriver.

◆ TypeSectionSize() [2/2]

static Standard_Integer FSD_BinaryFile::TypeSectionSize ( Standard_IStream theIStream)
static

◆ WriteComment() [1/2]

void FSD_BinaryFile::WriteComment ( const TColStd_SequenceOfExtendedString userComments)
virtual

Implements Storage_BaseDriver.

◆ WriteComment() [2/2]

static Standard_Integer FSD_BinaryFile::WriteComment ( Standard_OStream theOStream,
const TColStd_SequenceOfExtendedString theComments,
const Standard_Boolean  theOnlyCount = Standard_False 
)
static

◆ WriteExtendedString() [1/2]

void FSD_BinaryFile::WriteExtendedString ( const TCollection_ExtendedString buffer)
protected

write string at the current position.

◆ WriteExtendedString() [2/2]

static Standard_Integer FSD_BinaryFile::WriteExtendedString ( Standard_OStream theOStream,
const TCollection_ExtendedString theString,
const Standard_Boolean  theOnlyCount = Standard_False 
)
staticprotected

write string at the current position.

◆ WriteHeader()

static Standard_Integer FSD_BinaryFile::WriteHeader ( Standard_OStream theOStream,
const FSD_FileHeader theHeader,
const Standard_Boolean  theOnlyCount = Standard_False 
)
static

◆ WriteInfo() [1/2]

static Standard_Integer FSD_BinaryFile::WriteInfo ( Standard_OStream theOStream,
const Standard_Integer  nbObj,
const TCollection_AsciiString dbVersion,
const TCollection_AsciiString date,
const TCollection_AsciiString schemaName,
const TCollection_AsciiString schemaVersion,
const TCollection_ExtendedString appName,
const TCollection_AsciiString appVersion,
const TCollection_ExtendedString objectType,
const TColStd_SequenceOfAsciiString userInfo,
const Standard_Boolean  theOnlyCount = Standard_False 
)
static

◆ WriteInfo() [2/2]

void FSD_BinaryFile::WriteInfo ( const Standard_Integer  nbObj,
const TCollection_AsciiString dbVersion,
const TCollection_AsciiString date,
const TCollection_AsciiString schemaName,
const TCollection_AsciiString schemaVersion,
const TCollection_ExtendedString appName,
const TCollection_AsciiString appVersion,
const TCollection_ExtendedString objectType,
const TColStd_SequenceOfAsciiString userInfo 
)
virtual

Implements Storage_BaseDriver.

◆ WritePersistentObjectHeader()

void FSD_BinaryFile::WritePersistentObjectHeader ( const Standard_Integer  aRef,
const Standard_Integer  aType 
)
virtual

Implements Storage_BaseDriver.

◆ WriteReferenceType()

void FSD_BinaryFile::WriteReferenceType ( const Standard_Integer  reference,
const Standard_Integer  typeNum 
)
virtual

Implements Storage_BaseDriver.

◆ WriteRoot()

void FSD_BinaryFile::WriteRoot ( const TCollection_AsciiString rootName,
const Standard_Integer  aRef,
const TCollection_AsciiString aType 
)
virtual

Implements Storage_BaseDriver.

◆ WriteString() [1/2]

void FSD_BinaryFile::WriteString ( const TCollection_AsciiString buffer)
protected

write string at the current position.

◆ WriteString() [2/2]

static Standard_Integer FSD_BinaryFile::WriteString ( Standard_OStream theOStream,
const TCollection_AsciiString theString,
const Standard_Boolean  theOnlyCount = Standard_False 
)
staticprotected

write string at the current position.

◆ WriteTypeInformations()

void FSD_BinaryFile::WriteTypeInformations ( const Standard_Integer  typeNum,
const TCollection_AsciiString typeName 
)
virtual

Implements Storage_BaseDriver.


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