Open CASCADE Technology 7.8.2.dev
|
#include <FSD_BinaryFile.hxx>
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 | |
Standard_Boolean | IsEnd () override |
returns True if we are at end of the stream | |
Storage_Position | Tell () override |
return position in the file. Return -1 upon error. | |
Storage_Error | BeginWriteInfoSection () override |
returns True if we are at end of the stream | |
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 | |
Storage_Error | EndWriteInfoSection () override |
returns True if we are at end of the stream | |
Storage_Error | EndWriteInfoSection (Standard_OStream &theOStream) |
Storage_Error | BeginReadInfoSection () override |
returns True if we are at end of the stream | |
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 | |
void | ReadCompleteInfo (Standard_IStream &theIStream, Handle< Storage_Data > &theData) override |
returns True if we are at end of the stream | |
Storage_Error | EndReadInfoSection () override |
returns True if we are at end of the stream | |
Storage_Error | BeginWriteCommentSection () override |
returns True if we are at end of the stream | |
Storage_Error | BeginWriteCommentSection (Standard_OStream &theOStream) |
void | WriteComment (const TColStd_SequenceOfExtendedString &userComments) override |
returns True if we are at end of the stream | |
Storage_Error | EndWriteCommentSection () override |
returns True if we are at end of the stream | |
Storage_Error | EndWriteCommentSection (Standard_OStream &theOStream) |
Storage_Error | BeginReadCommentSection () override |
returns True if we are at end of the stream | |
void | ReadComment (TColStd_SequenceOfExtendedString &userComments) override |
returns True if we are at end of the stream | |
Storage_Error | EndReadCommentSection () override |
returns True if we are at end of the stream | |
Storage_Error | BeginWriteTypeSection () override |
returns True if we are at end of the stream | |
void | SetTypeSectionSize (const Standard_Integer aSize) override |
returns True if we are at end of the stream | |
void | WriteTypeInformations (const Standard_Integer typeNum, const TCollection_AsciiString &typeName) override |
returns True if we are at end of the stream | |
Storage_Error | EndWriteTypeSection () override |
returns True if we are at end of the stream | |
Storage_Error | BeginReadTypeSection () override |
returns True if we are at end of the stream | |
Standard_Integer | TypeSectionSize () override |
returns True if we are at end of the stream | |
void | ReadTypeInformations (Standard_Integer &typeNum, TCollection_AsciiString &typeName) override |
returns True if we are at end of the stream | |
Storage_Error | EndReadTypeSection () override |
returns True if we are at end of the stream | |
Storage_Error | BeginWriteRootSection () override |
returns True if we are at end of the stream | |
void | SetRootSectionSize (const Standard_Integer aSize) override |
returns True if we are at end of the stream | |
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 | |
Storage_Error | EndWriteRootSection () override |
returns True if we are at end of the stream | |
Storage_Error | BeginReadRootSection () override |
returns True if we are at end of the stream | |
Standard_Integer | RootSectionSize () override |
returns True if we are at end of the stream | |
void | ReadRoot (TCollection_AsciiString &rootName, Standard_Integer &aRef, TCollection_AsciiString &aType) override |
returns True if we are at end of the stream | |
Storage_Error | EndReadRootSection () override |
returns True if we are at end of the stream | |
Storage_Error | BeginWriteRefSection () override |
returns True if we are at end of the stream | |
void | SetRefSectionSize (const Standard_Integer aSize) override |
returns True if we are at end of the stream | |
void | WriteReferenceType (const Standard_Integer reference, const Standard_Integer typeNum) override |
returns True if we are at end of the stream | |
Storage_Error | EndWriteRefSection () override |
returns True if we are at end of the stream | |
Storage_Error | BeginReadRefSection () override |
returns True if we are at end of the stream | |
Standard_Integer | RefSectionSize () override |
returns True if we are at end of the stream | |
void | ReadReferenceType (Standard_Integer &reference, Standard_Integer &typeNum) override |
returns True if we are at end of the stream | |
Storage_Error | EndReadRefSection () override |
returns True if we are at end of the stream | |
Storage_Error | BeginWriteDataSection () override |
returns True if we are at end of the stream | |
void | WritePersistentObjectHeader (const Standard_Integer aRef, const Standard_Integer aType) override |
returns True if we are at end of the stream | |
void | BeginWritePersistentObjectData () override |
returns True if we are at end of the stream | |
void | BeginWriteObjectData () override |
returns True if we are at end of the stream | |
void | EndWriteObjectData () override |
returns True if we are at end of the stream | |
void | EndWritePersistentObjectData () override |
returns True if we are at end of the stream | |
Storage_Error | EndWriteDataSection () override |
returns True if we are at end of the stream | |
Storage_Error | BeginReadDataSection () override |
returns True if we are at end of the stream | |
void | ReadPersistentObjectHeader (Standard_Integer &aRef, Standard_Integer &aType) override |
returns True if we are at end of the stream | |
void | BeginReadPersistentObjectData () override |
returns True if we are at end of the stream | |
void | BeginReadObjectData () override |
returns True if we are at end of the stream | |
void | EndReadObjectData () override |
returns True if we are at end of the stream | |
void | EndReadPersistentObjectData () override |
returns True if we are at end of the stream | |
Storage_Error | EndReadDataSection () override |
returns True if we are at end of the stream | |
void | SkipObject () override |
returns True if we are at end of the stream | |
Storage_BaseDriver & | PutReference (const Standard_Integer aValue) override |
Storage_BaseDriver & | PutCharacter (const Standard_Character aValue) override |
Storage_BaseDriver & | PutExtCharacter (const Standard_ExtCharacter aValue) override |
Storage_BaseDriver & | PutInteger (const Standard_Integer aValue) override |
Storage_BaseDriver & | PutBoolean (const Standard_Boolean aValue) override |
Storage_BaseDriver & | PutReal (const Standard_Real aValue) override |
Storage_BaseDriver & | PutShortReal (const Standard_ShortReal aValue) override |
Storage_BaseDriver & | GetReference (Standard_Integer &aValue) override |
Storage_BaseDriver & | GetCharacter (Standard_Character &aValue) override |
Storage_BaseDriver & | GetExtCharacter (Standard_ExtCharacter &aValue) override |
Storage_BaseDriver & | GetInteger (Standard_Integer &aValue) override |
Storage_BaseDriver & | GetBoolean (Standard_Boolean &aValue) override |
Storage_BaseDriver & | GetReal (Standard_Real &aValue) override |
Storage_BaseDriver & | GetShortReal (Standard_ShortReal &aValue) override |
Storage_Error | Close () override |
returns True if we are at end of the stream | |
void | Destroy () |
~FSD_BinaryFile () | |
Public Member Functions inherited from Storage_BaseDriver | |
virtual | ~Storage_BaseDriver () |
TCollection_AsciiString | Name () const |
Storage_OpenMode | OpenMode () const |
Storage_BaseDriver & | operator<< (const Standard_Character aValue) |
Storage_BaseDriver & | operator<< (const Standard_ExtCharacter aValue) |
Storage_BaseDriver & | operator<< (const Standard_Integer aValue) |
Storage_BaseDriver & | operator<< (const Standard_Boolean aValue) |
Storage_BaseDriver & | operator<< (const Standard_Real aValue) |
Storage_BaseDriver & | operator<< (const Standard_ShortReal aValue) |
Storage_BaseDriver & | operator>> (Standard_Character &aValue) |
Storage_BaseDriver & | operator>> (Standard_ExtCharacter &aValue) |
Storage_BaseDriver & | operator>> (Standard_Integer &aValue) |
Storage_BaseDriver & | operator>> (Standard_Boolean &aValue) |
Storage_BaseDriver & | operator>> (Standard_Real &aValue) |
Storage_BaseDriver & | operator>> (Standard_ShortReal &aValue) |
Public Member Functions inherited from Standard_Transient | |
Standard_Transient () | |
Empty constructor. | |
Standard_Transient (const Standard_Transient &) | |
Copy constructor – does nothing. | |
Standard_Transient & | operator= (const Standard_Transient &) |
Assignment operator, needed to avoid copying reference counter. | |
virtual | ~Standard_Transient () |
Destructor must be virtual. | |
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
Returns a type descriptor about this object. | |
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
Returns a true value if this is an instance of Type. | |
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
Returns a true value if this is an instance of TypeName. | |
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. | |
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. | |
Standard_Transient * | This () 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. | |
Standard_Integer | GetRefCount () const noexcept |
Get the reference counter of this object. | |
void | IncrementRefCounter () noexcept |
Increments the reference counter of this object. | |
Standard_Integer | DecrementRefCounter () noexcept |
Decrements the reference counter of this object; returns the decremented value. | |
virtual void | Delete () const |
Memory deallocator for transient classes. | |
Own methods | |
static Standard_Integer | InverseInt (const Standard_Integer theValue) |
Inverse bytes in integer value. | |
static Standard_ExtCharacter | InverseExtChar (const Standard_ExtCharacter theValue) |
Inverse bytes in extended character value. | |
static Standard_Real | InverseReal (const Standard_Real theValue) |
Inverse bytes in real value. | |
static Standard_ShortReal | InverseShortReal (const Standard_ShortReal theValue) |
Inverse bytes in short real value. | |
static Standard_Size | InverseSize (const Standard_Size theValue) |
Inverse bytes in size value. | |
static uint64_t | InverseUint64 (const uint64_t theValue) |
Inverse bytes in 64bit unsigned int value. | |
static void | ReadHeader (Standard_IStream &theIStream, FSD_FileHeader &theFileHeader) |
Inverse bytes in integer value. | |
static void | ReadHeaderData (Standard_IStream &theIStream, const Handle< Storage_HeaderData > &theHeaderData) |
Inverse bytes in integer value. | |
static void | ReadString (Standard_IStream &theIStream, TCollection_AsciiString &buffer) |
Inverse bytes in integer value. | |
static void | ReadExtendedString (Standard_IStream &theIStream, TCollection_ExtendedString &buffer) |
Inverse bytes in integer value. | |
static Standard_Integer | WriteHeader (Standard_OStream &theOStream, const FSD_FileHeader &theHeader, const Standard_Boolean theOnlyCount=Standard_False) |
Inverse bytes in integer value. | |
static Standard_CString | MagicNumber () |
Inverse bytes in integer value. | |
void | ReadChar (TCollection_AsciiString &buffer, const Standard_Size rsize) |
read <rsize> character from the current position. | |
void | ReadString (TCollection_AsciiString &buffer) |
read string from the current position. | |
void | WriteString (const TCollection_AsciiString &buffer) |
write string at the current position. | |
void | ReadExtendedString (TCollection_ExtendedString &buffer) |
read string from the current position. | |
void | WriteExtendedString (const TCollection_ExtendedString &buffer) |
write string at the current position. | |
static Standard_Integer | WriteString (Standard_OStream &theOStream, const TCollection_AsciiString &theString, const Standard_Boolean theOnlyCount=Standard_False) |
write string at the current position. | |
static Standard_Integer | WriteExtendedString (Standard_OStream &theOStream, const TCollection_ExtendedString &theString, const Standard_Boolean theOnlyCount=Standard_False) |
write string at the current position. | |
Additional Inherited Members | |
Public Types inherited from Standard_Transient | |
typedef void | base_type |
Returns a type descriptor about this object. | |
Protected Member Functions inherited from Storage_BaseDriver | |
Storage_BaseDriver () | |
void | SetName (const TCollection_AsciiString &aName) |
void | SetOpenMode (const Storage_OpenMode aMode) |
FSD_BinaryFile::FSD_BinaryFile | ( | ) |
|
inline |
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
Storage_Error FSD_BinaryFile::BeginWriteCommentSection | ( | Standard_OStream & | theOStream | ) |
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
void FSD_BinaryFile::Destroy | ( | ) |
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
Storage_Error FSD_BinaryFile::EndWriteCommentSection | ( | Standard_OStream & | theOStream | ) |
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
Storage_Error FSD_BinaryFile::EndWriteInfoSection | ( | Standard_OStream & | theOStream | ) |
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
Implements Storage_BaseDriver.
|
overridevirtual |
Implements Storage_BaseDriver.
|
overridevirtual |
Implements Storage_BaseDriver.
|
overridevirtual |
Implements Storage_BaseDriver.
|
static |
|
overridevirtual |
Implements Storage_BaseDriver.
|
overridevirtual |
Implements Storage_BaseDriver.
|
static |
|
overridevirtual |
Implements Storage_BaseDriver.
|
inlinestatic |
Inverse bytes in extended character value.
|
inlinestatic |
Inverse bytes in integer value.
|
static |
Inverse bytes in real value.
|
static |
Inverse bytes in short real value.
|
static |
Inverse bytes in size value.
|
static |
Inverse bytes in 64bit unsigned int value.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
static |
|
static |
Inverse bytes in integer value.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
Implements Storage_BaseDriver.
|
overridevirtual |
Implements Storage_BaseDriver.
|
overridevirtual |
Implements Storage_BaseDriver.
|
overridevirtual |
Implements Storage_BaseDriver.
|
static |
|
overridevirtual |
Implements Storage_BaseDriver.
|
overridevirtual |
Implements Storage_BaseDriver.
|
overridevirtual |
Implements Storage_BaseDriver.
|
protected |
read <rsize> character from the current position.
|
static |
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
static |
Inverse bytes in integer value.
|
protected |
read string from the current position.
|
static |
Inverse bytes in integer value.
|
static |
Inverse bytes in integer value.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
static |
|
static |
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
static |
Inverse bytes in integer value.
|
protected |
read string from the current position.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
static |
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
static |
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
static |
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
return position in the file. Return -1 upon error.
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
static |
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
static |
|
protected |
write string at the current position.
|
staticprotected |
write string at the current position.
|
static |
Inverse bytes in integer value.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
static |
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.
|
protected |
write string at the current position.
|
staticprotected |
write string at the current position.
|
overridevirtual |
returns True if we are at end of the stream
Implements Storage_BaseDriver.