Open CASCADE Technology  7.6.0
Public Member Functions | Static Public 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) override
 returns True if we are at end of the stream More...
 
Standard_Boolean IsEnd () override
 returns True if we are at end of the stream More...
 
Storage_Position Tell () override
 return position in the file. Return -1 upon error. More...
 
Storage_Error BeginWriteInfoSection () override
 returns True if we are at end of the stream More...
 
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) override
 returns True if we are at end of the stream More...
 
Storage_Error EndWriteInfoSection () override
 returns True if we are at end of the stream More...
 
Storage_Error EndWriteInfoSection (Standard_OStream &theOStream)
 
Storage_Error BeginReadInfoSection () override
 returns True if we are at end of the stream More...
 
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) override
 returns True if we are at end of the stream More...
 
void ReadCompleteInfo (Standard_IStream &theIStream, Handle< Storage_Data > &theData) override
 returns True if we are at end of the stream More...
 
Storage_Error EndReadInfoSection () override
 returns True if we are at end of the stream More...
 
Storage_Error BeginWriteCommentSection () override
 returns True if we are at end of the stream More...
 
Storage_Error BeginWriteCommentSection (Standard_OStream &theOStream)
 
void WriteComment (const TColStd_SequenceOfExtendedString &userComments) override
 returns True if we are at end of the stream More...
 
Storage_Error EndWriteCommentSection () override
 returns True if we are at end of the stream More...
 
Storage_Error EndWriteCommentSection (Standard_OStream &theOStream)
 
Storage_Error BeginReadCommentSection () override
 returns True if we are at end of the stream More...
 
void ReadComment (TColStd_SequenceOfExtendedString &userComments) override
 returns True if we are at end of the stream More...
 
Storage_Error EndReadCommentSection () override
 returns True if we are at end of the stream More...
 
Storage_Error BeginWriteTypeSection () override
 returns True if we are at end of the stream More...
 
void SetTypeSectionSize (const Standard_Integer aSize) override
 returns True if we are at end of the stream More...
 
void WriteTypeInformations (const Standard_Integer typeNum, const TCollection_AsciiString &typeName) override
 returns True if we are at end of the stream More...
 
Storage_Error EndWriteTypeSection () override
 returns True if we are at end of the stream More...
 
Storage_Error BeginReadTypeSection () override
 returns True if we are at end of the stream More...
 
Standard_Integer TypeSectionSize () override
 returns True if we are at end of the stream More...
 
void ReadTypeInformations (Standard_Integer &typeNum, TCollection_AsciiString &typeName) override
 returns True if we are at end of the stream More...
 
Storage_Error EndReadTypeSection () override
 returns True if we are at end of the stream More...
 
Storage_Error BeginWriteRootSection () override
 returns True if we are at end of the stream More...
 
void SetRootSectionSize (const Standard_Integer aSize) override
 returns True if we are at end of the stream More...
 
void WriteRoot (const TCollection_AsciiString &rootName, const Standard_Integer aRef, const TCollection_AsciiString &aType) override
 returns True if we are at end of the stream More...
 
Storage_Error EndWriteRootSection () override
 returns True if we are at end of the stream More...
 
Storage_Error BeginReadRootSection () override
 returns True if we are at end of the stream More...
 
Standard_Integer RootSectionSize () override
 returns True if we are at end of the stream More...
 
void ReadRoot (TCollection_AsciiString &rootName, Standard_Integer &aRef, TCollection_AsciiString &aType) override
 returns True if we are at end of the stream More...
 
Storage_Error EndReadRootSection () override
 returns True if we are at end of the stream More...
 
Storage_Error BeginWriteRefSection () override
 returns True if we are at end of the stream More...
 
void SetRefSectionSize (const Standard_Integer aSize) override
 returns True if we are at end of the stream More...
 
void WriteReferenceType (const Standard_Integer reference, const Standard_Integer typeNum) override
 returns True if we are at end of the stream More...
 
Storage_Error EndWriteRefSection () override
 returns True if we are at end of the stream More...
 
Storage_Error BeginReadRefSection () override
 returns True if we are at end of the stream More...
 
Standard_Integer RefSectionSize () override
 returns True if we are at end of the stream More...
 
void ReadReferenceType (Standard_Integer &reference, Standard_Integer &typeNum) override
 returns True if we are at end of the stream More...
 
Storage_Error EndReadRefSection () override
 returns True if we are at end of the stream More...
 
Storage_Error BeginWriteDataSection () override
 returns True if we are at end of the stream More...
 
void WritePersistentObjectHeader (const Standard_Integer aRef, const Standard_Integer aType) override
 returns True if we are at end of the stream More...
 
void BeginWritePersistentObjectData () override
 returns True if we are at end of the stream More...
 
void BeginWriteObjectData () override
 returns True if we are at end of the stream More...
 
void EndWriteObjectData () override
 returns True if we are at end of the stream More...
 
void EndWritePersistentObjectData () override
 returns True if we are at end of the stream More...
 
Storage_Error EndWriteDataSection () override
 returns True if we are at end of the stream More...
 
Storage_Error BeginReadDataSection () override
 returns True if we are at end of the stream More...
 
void ReadPersistentObjectHeader (Standard_Integer &aRef, Standard_Integer &aType) override
 returns True if we are at end of the stream More...
 
void BeginReadPersistentObjectData () override
 returns True if we are at end of the stream More...
 
void BeginReadObjectData () override
 returns True if we are at end of the stream More...
 
void EndReadObjectData () override
 returns True if we are at end of the stream More...
 
void EndReadPersistentObjectData () override
 returns True if we are at end of the stream More...
 
Storage_Error EndReadDataSection () override
 returns True if we are at end of the stream More...
 
void SkipObject () override
 returns True if we are at end of the stream More...
 
Storage_BaseDriverPutReference (const Standard_Integer aValue) override
 
Storage_BaseDriverPutCharacter (const Standard_Character aValue) override
 
Storage_BaseDriverPutExtCharacter (const Standard_ExtCharacter aValue) override
 
Storage_BaseDriverPutInteger (const Standard_Integer aValue) override
 
Storage_BaseDriverPutBoolean (const Standard_Boolean aValue) override
 
Storage_BaseDriverPutReal (const Standard_Real aValue) override
 
Storage_BaseDriverPutShortReal (const Standard_ShortReal aValue) override
 
Storage_BaseDriverGetReference (Standard_Integer &aValue) override
 
Storage_BaseDriverGetCharacter (Standard_Character &aValue) override
 
Storage_BaseDriverGetExtCharacter (Standard_ExtCharacter &aValue) override
 
Storage_BaseDriverGetInteger (Standard_Integer &aValue) override
 
Storage_BaseDriverGetBoolean (Standard_Boolean &aValue) override
 
Storage_BaseDriverGetReal (Standard_Real &aValue) override
 
Storage_BaseDriverGetShortReal (Standard_ShortReal &aValue) override
 
Storage_Error Close () override
 returns True if we are at end of the stream More...
 
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)
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object. More...
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const opencascade::handle< Standard_Type > &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_TransientThis () const
 Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 
void IncrementRefCounter () const
 Increments the reference counter of this object. More...
 
Standard_Integer DecrementRefCounter () const
 Decrements the reference counter of this object; returns the decremented value. More...
 

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 Public Member Functions inherited from Storage_BaseDriver
static TCollection_AsciiString ReadMagicNumber (Standard_IStream &theIStream)
 
- Static Public Member Functions inherited from Standard_Transient
static const char * get_type_name ()
 Returns a type descriptor about this object. More...
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class. More...
 

Own methods

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)
 Inverse bytes in integer value. More...
 
static void ReadHeaderData (Standard_IStream &theIStream, const Handle< Storage_HeaderData > &theHeaderData)
 Inverse bytes in integer value. More...
 
static void ReadString (Standard_IStream &theIStream, TCollection_AsciiString &buffer)
 Inverse bytes in integer value. More...
 
static void ReadExtendedString (Standard_IStream &theIStream, TCollection_ExtendedString &buffer)
 Inverse bytes in integer value. More...
 
static Standard_Integer WriteHeader (Standard_OStream &theOStream, const FSD_FileHeader &theHeader, const Standard_Boolean theOnlyCount=Standard_False)
 Inverse bytes in integer value. More...
 
static Standard_CString MagicNumber ()
 Inverse bytes in integer value. More...
 
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...
 
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...
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object. More...
 
- Protected Member Functions inherited from Storage_BaseDriver
 Storage_BaseDriver ()
 
void SetName (const TCollection_AsciiString &aName)
 
void SetOpenMode (const Storage_OpenMode aMode)
 

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 ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ BeginReadDataSection()

Storage_Error FSD_BinaryFile::BeginReadDataSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ BeginReadInfoSection()

Storage_Error FSD_BinaryFile::BeginReadInfoSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ BeginReadObjectData()

void FSD_BinaryFile::BeginReadObjectData ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ BeginReadPersistentObjectData()

void FSD_BinaryFile::BeginReadPersistentObjectData ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ BeginReadRefSection()

Storage_Error FSD_BinaryFile::BeginReadRefSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ BeginReadRootSection()

Storage_Error FSD_BinaryFile::BeginReadRootSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ BeginReadTypeSection()

Storage_Error FSD_BinaryFile::BeginReadTypeSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ BeginWriteCommentSection() [1/2]

Storage_Error FSD_BinaryFile::BeginWriteCommentSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ BeginWriteCommentSection() [2/2]

Storage_Error FSD_BinaryFile::BeginWriteCommentSection ( Standard_OStream theOStream)

◆ BeginWriteDataSection()

Storage_Error FSD_BinaryFile::BeginWriteDataSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ BeginWriteInfoSection()

Storage_Error FSD_BinaryFile::BeginWriteInfoSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ BeginWriteObjectData()

void FSD_BinaryFile::BeginWriteObjectData ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ BeginWritePersistentObjectData()

void FSD_BinaryFile::BeginWritePersistentObjectData ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ BeginWriteRefSection()

Storage_Error FSD_BinaryFile::BeginWriteRefSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ BeginWriteRootSection()

Storage_Error FSD_BinaryFile::BeginWriteRootSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ BeginWriteTypeSection()

Storage_Error FSD_BinaryFile::BeginWriteTypeSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ Close()

Storage_Error FSD_BinaryFile::Close ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ Destroy()

void FSD_BinaryFile::Destroy ( )

◆ EndReadCommentSection()

Storage_Error FSD_BinaryFile::EndReadCommentSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ EndReadDataSection()

Storage_Error FSD_BinaryFile::EndReadDataSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ EndReadInfoSection()

Storage_Error FSD_BinaryFile::EndReadInfoSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ EndReadObjectData()

void FSD_BinaryFile::EndReadObjectData ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ EndReadPersistentObjectData()

void FSD_BinaryFile::EndReadPersistentObjectData ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ EndReadRefSection()

Storage_Error FSD_BinaryFile::EndReadRefSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ EndReadRootSection()

Storage_Error FSD_BinaryFile::EndReadRootSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ EndReadTypeSection()

Storage_Error FSD_BinaryFile::EndReadTypeSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ EndWriteCommentSection() [1/2]

Storage_Error FSD_BinaryFile::EndWriteCommentSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ EndWriteCommentSection() [2/2]

Storage_Error FSD_BinaryFile::EndWriteCommentSection ( Standard_OStream theOStream)

◆ EndWriteDataSection()

Storage_Error FSD_BinaryFile::EndWriteDataSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ EndWriteInfoSection() [1/2]

Storage_Error FSD_BinaryFile::EndWriteInfoSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ EndWriteInfoSection() [2/2]

Storage_Error FSD_BinaryFile::EndWriteInfoSection ( Standard_OStream theOStream)

◆ EndWriteObjectData()

void FSD_BinaryFile::EndWriteObjectData ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ EndWritePersistentObjectData()

void FSD_BinaryFile::EndWritePersistentObjectData ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ EndWriteRefSection()

Storage_Error FSD_BinaryFile::EndWriteRefSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ EndWriteRootSection()

Storage_Error FSD_BinaryFile::EndWriteRootSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ EndWriteTypeSection()

Storage_Error FSD_BinaryFile::EndWriteTypeSection ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ GetBoolean()

Storage_BaseDriver& FSD_BinaryFile::GetBoolean ( Standard_Boolean aValue)
overridevirtual

Implements Storage_BaseDriver.

◆ GetCharacter()

Storage_BaseDriver& FSD_BinaryFile::GetCharacter ( Standard_Character aValue)
overridevirtual

Implements Storage_BaseDriver.

◆ GetExtCharacter()

Storage_BaseDriver& FSD_BinaryFile::GetExtCharacter ( Standard_ExtCharacter aValue)
overridevirtual

Implements Storage_BaseDriver.

◆ GetInteger() [1/2]

Storage_BaseDriver& FSD_BinaryFile::GetInteger ( Standard_Integer aValue)
overridevirtual

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)
overridevirtual

Implements Storage_BaseDriver.

◆ GetReference() [1/2]

Storage_BaseDriver& FSD_BinaryFile::GetReference ( Standard_Integer aValue)
overridevirtual

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)
overridevirtual

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 ( )
overridevirtual

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

Inverse bytes in integer value.

◆ Open()

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

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ PutBoolean()

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

Implements Storage_BaseDriver.

◆ PutCharacter()

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

Implements Storage_BaseDriver.

◆ PutExtCharacter()

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

Implements Storage_BaseDriver.

◆ PutInteger() [1/2]

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

Implements Storage_BaseDriver.

◆ PutInteger() [2/2]

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

◆ PutReal()

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

Implements Storage_BaseDriver.

◆ PutReference()

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

Implements Storage_BaseDriver.

◆ PutShortReal()

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

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]

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

◆ ReadComment() [2/2]

void FSD_BinaryFile::ReadComment ( TColStd_SequenceOfExtendedString userComments)
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ ReadCompleteInfo()

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

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ ReadExtendedString() [1/2]

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

Inverse bytes in integer value.

◆ 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

Inverse bytes in integer value.

◆ ReadHeaderData()

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

Inverse bytes in integer value.

◆ 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 
)
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ ReadPersistentObjectHeader()

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

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ ReadReferenceType() [1/2]

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

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ ReadReferenceType() [2/2]

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

◆ ReadRoot() [1/2]

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

◆ ReadRoot() [2/2]

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

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ ReadString() [1/2]

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

Inverse bytes in integer value.

◆ 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 
)
overridevirtual

returns True if we are at end of the stream

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 ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ RefSectionSize() [2/2]

static Standard_Integer FSD_BinaryFile::RefSectionSize ( Standard_IStream theIStream)
static

◆ RootSectionSize() [1/2]

Standard_Integer FSD_BinaryFile::RootSectionSize ( )
overridevirtual

returns True if we are at end of the stream

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)
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ SetRootSectionSize()

void FSD_BinaryFile::SetRootSectionSize ( const Standard_Integer  aSize)
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ SetTypeSectionSize()

void FSD_BinaryFile::SetTypeSectionSize ( const Standard_Integer  aSize)
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ SkipObject()

void FSD_BinaryFile::SkipObject ( )
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ Tell()

Storage_Position FSD_BinaryFile::Tell ( )
overridevirtual

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

Implements Storage_BaseDriver.

◆ TypeSectionSize() [1/2]

Standard_Integer FSD_BinaryFile::TypeSectionSize ( )
overridevirtual

returns True if we are at end of the stream

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)
overridevirtual

returns True if we are at end of the stream

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

Inverse bytes in integer value.

◆ WriteInfo() [1/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 
)
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ WriteInfo() [2/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

◆ WritePersistentObjectHeader()

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

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ WriteReferenceType()

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

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ WriteRoot()

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

returns True if we are at end of the stream

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 
)
overridevirtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.


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