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

FSD_CmpFile Class Reference

#include <FSD_CmpFile.hxx>

Inheritance diagram for FSD_CmpFile:
Inheritance graph
[legend]

Public Member Functions

 FSD_CmpFile ()
 
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 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 ()
 
void WriteComment (const TColStd_SequenceOfExtendedString &userComments)
 
Storage_Error EndWriteCommentSection ()
 
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_CmpFile ()
 
- 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_CString MagicNumber ()
 
- Static Public Member Functions inherited from Storage_BaseDriver
static TCollection_AsciiString ReadMagicNumber (Standard_IStream &theIStream)
 

Protected Member Functions

void ReadLine (TCollection_AsciiString &buffer)
 read from the current position to the end of line. More...
 
void ReadWord (TCollection_AsciiString &buffer)
 read from the current position to the next white space or end of line. More...
 
void ReadExtendedLine (TCollection_ExtendedString &buffer)
 read extended chars (unicode) from the current position to the end of line. More...
 
void WriteExtendedLine (const TCollection_ExtendedString &buffer)
 write from the current position to the end of line. More...
 
void ReadChar (TCollection_AsciiString &buffer, const Standard_Size rsize)
 read <rsize> character from the current position. More...
 
void ReadString (TCollection_AsciiString &buffer)
 read from the first none space character position to the end of line. More...
 
void FlushEndOfLine ()
 
Storage_Error FindTag (const Standard_CString aTag)
 
- 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_CmpFile()

FSD_CmpFile::FSD_CmpFile ( )

◆ ~FSD_CmpFile()

FSD_CmpFile::~FSD_CmpFile ( )
inline

Member Function Documentation

◆ BeginReadCommentSection()

Storage_Error FSD_CmpFile::BeginReadCommentSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginReadDataSection()

Storage_Error FSD_CmpFile::BeginReadDataSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginReadInfoSection()

Storage_Error FSD_CmpFile::BeginReadInfoSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginReadObjectData()

void FSD_CmpFile::BeginReadObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ BeginReadPersistentObjectData()

void FSD_CmpFile::BeginReadPersistentObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ BeginReadRefSection()

Storage_Error FSD_CmpFile::BeginReadRefSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginReadRootSection()

Storage_Error FSD_CmpFile::BeginReadRootSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginReadTypeSection()

Storage_Error FSD_CmpFile::BeginReadTypeSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWriteCommentSection()

Storage_Error FSD_CmpFile::BeginWriteCommentSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWriteDataSection()

Storage_Error FSD_CmpFile::BeginWriteDataSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWriteInfoSection()

Storage_Error FSD_CmpFile::BeginWriteInfoSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWriteObjectData()

void FSD_CmpFile::BeginWriteObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWritePersistentObjectData()

void FSD_CmpFile::BeginWritePersistentObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWriteRefSection()

Storage_Error FSD_CmpFile::BeginWriteRefSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWriteRootSection()

Storage_Error FSD_CmpFile::BeginWriteRootSection ( )
virtual

Implements Storage_BaseDriver.

◆ BeginWriteTypeSection()

Storage_Error FSD_CmpFile::BeginWriteTypeSection ( )
virtual

Implements Storage_BaseDriver.

◆ Close()

Storage_Error FSD_CmpFile::Close ( )
virtual

Implements Storage_BaseDriver.

◆ Destroy()

void FSD_CmpFile::Destroy ( )

◆ EndReadCommentSection()

Storage_Error FSD_CmpFile::EndReadCommentSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndReadDataSection()

Storage_Error FSD_CmpFile::EndReadDataSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndReadInfoSection()

Storage_Error FSD_CmpFile::EndReadInfoSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndReadObjectData()

void FSD_CmpFile::EndReadObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ EndReadPersistentObjectData()

void FSD_CmpFile::EndReadPersistentObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ EndReadRefSection()

Storage_Error FSD_CmpFile::EndReadRefSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndReadRootSection()

Storage_Error FSD_CmpFile::EndReadRootSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndReadTypeSection()

Storage_Error FSD_CmpFile::EndReadTypeSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndWriteCommentSection()

Storage_Error FSD_CmpFile::EndWriteCommentSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndWriteDataSection()

Storage_Error FSD_CmpFile::EndWriteDataSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndWriteInfoSection()

Storage_Error FSD_CmpFile::EndWriteInfoSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndWriteObjectData()

void FSD_CmpFile::EndWriteObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ EndWritePersistentObjectData()

void FSD_CmpFile::EndWritePersistentObjectData ( )
virtual

Implements Storage_BaseDriver.

◆ EndWriteRefSection()

Storage_Error FSD_CmpFile::EndWriteRefSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndWriteRootSection()

Storage_Error FSD_CmpFile::EndWriteRootSection ( )
virtual

Implements Storage_BaseDriver.

◆ EndWriteTypeSection()

Storage_Error FSD_CmpFile::EndWriteTypeSection ( )
virtual

Implements Storage_BaseDriver.

◆ FindTag()

Storage_Error FSD_CmpFile::FindTag ( const Standard_CString  aTag)
protected

◆ FlushEndOfLine()

void FSD_CmpFile::FlushEndOfLine ( )
protected

◆ GetBoolean()

Storage_BaseDriver& FSD_CmpFile::GetBoolean ( Standard_Boolean aValue)
virtual

Implements Storage_BaseDriver.

◆ GetCharacter()

Storage_BaseDriver& FSD_CmpFile::GetCharacter ( Standard_Character aValue)
virtual

Implements Storage_BaseDriver.

◆ GetExtCharacter()

Storage_BaseDriver& FSD_CmpFile::GetExtCharacter ( Standard_ExtCharacter aValue)
virtual

Implements Storage_BaseDriver.

◆ GetInteger()

Storage_BaseDriver& FSD_CmpFile::GetInteger ( Standard_Integer aValue)
virtual

Implements Storage_BaseDriver.

◆ GetReal()

Storage_BaseDriver& FSD_CmpFile::GetReal ( Standard_Real aValue)
virtual

Implements Storage_BaseDriver.

◆ GetReference()

Storage_BaseDriver& FSD_CmpFile::GetReference ( Standard_Integer aValue)
virtual

Implements Storage_BaseDriver.

◆ GetShortReal()

Storage_BaseDriver& FSD_CmpFile::GetShortReal ( Standard_ShortReal aValue)
virtual

Implements Storage_BaseDriver.

◆ IsEnd()

Standard_Boolean FSD_CmpFile::IsEnd ( )
virtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

◆ IsGoodFileType()

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

◆ MagicNumber()

static Standard_CString FSD_CmpFile::MagicNumber ( )
static

◆ Open()

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

Implements Storage_BaseDriver.

◆ operator<<() [1/6]

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

◆ operator<<() [2/6]

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

◆ operator<<() [3/6]

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

◆ operator<<() [4/6]

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

◆ operator<<() [5/6]

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

◆ operator<<() [6/6]

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

◆ operator>>() [1/6]

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

◆ operator>>() [2/6]

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

◆ operator>>() [3/6]

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

◆ operator>>() [4/6]

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

◆ operator>>() [5/6]

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

◆ operator>>() [6/6]

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

◆ PutBoolean()

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

Implements Storage_BaseDriver.

◆ PutCharacter()

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

Implements Storage_BaseDriver.

◆ PutExtCharacter()

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

Implements Storage_BaseDriver.

◆ PutInteger()

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

Implements Storage_BaseDriver.

◆ PutReal()

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

Implements Storage_BaseDriver.

◆ PutReference()

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

Implements Storage_BaseDriver.

◆ PutShortReal()

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

Implements Storage_BaseDriver.

◆ ReadChar()

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

read <rsize> character from the current position.

◆ ReadComment()

void FSD_CmpFile::ReadComment ( TColStd_SequenceOfExtendedString userComments)
virtual

Implements Storage_BaseDriver.

◆ ReadCompleteInfo()

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

Implements Storage_BaseDriver.

◆ ReadExtendedLine()

void FSD_CmpFile::ReadExtendedLine ( TCollection_ExtendedString buffer)
protected

read extended chars (unicode) from the current position to the end of line.

◆ ReadInfo()

void FSD_CmpFile::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.

◆ ReadLine()

void FSD_CmpFile::ReadLine ( TCollection_AsciiString buffer)
protected

read from the current position to the end of line.

◆ ReadPersistentObjectHeader()

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

Implements Storage_BaseDriver.

◆ ReadReferenceType()

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

Implements Storage_BaseDriver.

◆ ReadRoot()

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

Implements Storage_BaseDriver.

◆ ReadString()

void FSD_CmpFile::ReadString ( TCollection_AsciiString buffer)
protected

read from the first none space character position to the end of line.

◆ ReadTypeInformations()

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

Implements Storage_BaseDriver.

◆ ReadWord()

void FSD_CmpFile::ReadWord ( TCollection_AsciiString buffer)
protected

read from the current position to the next white space or end of line.

◆ RefSectionSize()

Standard_Integer FSD_CmpFile::RefSectionSize ( )
virtual

Implements Storage_BaseDriver.

◆ RootSectionSize()

Standard_Integer FSD_CmpFile::RootSectionSize ( )
virtual

Implements Storage_BaseDriver.

◆ SetRefSectionSize()

void FSD_CmpFile::SetRefSectionSize ( const Standard_Integer  aSize)
virtual

Implements Storage_BaseDriver.

◆ SetRootSectionSize()

void FSD_CmpFile::SetRootSectionSize ( const Standard_Integer  aSize)
virtual

Implements Storage_BaseDriver.

◆ SetTypeSectionSize()

void FSD_CmpFile::SetTypeSectionSize ( const Standard_Integer  aSize)
virtual

Implements Storage_BaseDriver.

◆ SkipObject()

void FSD_CmpFile::SkipObject ( )
virtual

Implements Storage_BaseDriver.

◆ Tell()

Storage_Position FSD_CmpFile::Tell ( )
virtual

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

Implements Storage_BaseDriver.

◆ TypeSectionSize()

Standard_Integer FSD_CmpFile::TypeSectionSize ( )
virtual

Implements Storage_BaseDriver.

◆ WriteComment()

void FSD_CmpFile::WriteComment ( const TColStd_SequenceOfExtendedString userComments)
virtual

Implements Storage_BaseDriver.

◆ WriteExtendedLine()

void FSD_CmpFile::WriteExtendedLine ( const TCollection_ExtendedString buffer)
protected

write from the current position to the end of line.

◆ WriteInfo()

void FSD_CmpFile::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_CmpFile::WritePersistentObjectHeader ( const Standard_Integer  aRef,
const Standard_Integer  aType 
)
virtual

Implements Storage_BaseDriver.

◆ WriteReferenceType()

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

Implements Storage_BaseDriver.

◆ WriteRoot()

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

Implements Storage_BaseDriver.

◆ WriteTypeInformations()

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

Implements Storage_BaseDriver.


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