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

DDF_IOStream Class Reference

#include <DDF_IOStream.hxx>

Inheritance diagram for DDF_IOStream:
Inheritance graph
[legend]

Public Member Functions

 DDF_IOStream ()
 
Storage_Error Open (const TCollection_AsciiString &aName, const Storage_OpenMode aMode)
 
Storage_Error Open (istream *anIStream)
 
Storage_Error Open (ostream *anOStream)
 
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 ()
 
 ~DDF_IOStream ()
 
- 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 (istream *anIStream)
 
- Static Public Member Functions inherited from Storage_BaseDriver
static TCollection_AsciiString ReadMagicNumber (Standard_IStream &theIStream)
 

Protected Member Functions

void ReadLine (TCollection_AsciiString &buffer)
 
void ReadWord (TCollection_AsciiString &buffer)
 
void ReadExtendedLine (TCollection_ExtendedString &buffer)
 
void WriteExtendedLine (const TCollection_ExtendedString &buffer)
 
void ReadChar (TCollection_AsciiString &buffer, const Standard_Integer rsize)
 
void ReadString (TCollection_AsciiString &buffer)
 
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

DDF_IOStream::DDF_IOStream ( )
DDF_IOStream::~DDF_IOStream ( )
inline

Member Function Documentation

Storage_Error DDF_IOStream::BeginReadCommentSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::BeginReadDataSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::BeginReadInfoSection ( )
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::BeginReadObjectData ( )
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::BeginReadPersistentObjectData ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::BeginReadRefSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::BeginReadRootSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::BeginReadTypeSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::BeginWriteCommentSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::BeginWriteDataSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::BeginWriteInfoSection ( )
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::BeginWriteObjectData ( )
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::BeginWritePersistentObjectData ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::BeginWriteRefSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::BeginWriteRootSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::BeginWriteTypeSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::Close ( )
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::Destroy ( )
Storage_Error DDF_IOStream::EndReadCommentSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::EndReadDataSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::EndReadInfoSection ( )
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::EndReadObjectData ( )
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::EndReadPersistentObjectData ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::EndReadRefSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::EndReadRootSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::EndReadTypeSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::EndWriteCommentSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::EndWriteDataSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::EndWriteInfoSection ( )
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::EndWriteObjectData ( )
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::EndWritePersistentObjectData ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::EndWriteRefSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::EndWriteRootSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::EndWriteTypeSection ( )
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::FindTag ( const Standard_CString  aTag)
protected
void DDF_IOStream::FlushEndOfLine ( )
protected
Storage_BaseDriver& DDF_IOStream::GetBoolean ( Standard_Boolean aValue)
virtual

Implements Storage_BaseDriver.

Storage_BaseDriver& DDF_IOStream::GetCharacter ( Standard_Character aValue)
virtual

Implements Storage_BaseDriver.

Storage_BaseDriver& DDF_IOStream::GetExtCharacter ( Standard_ExtCharacter aValue)
virtual

Implements Storage_BaseDriver.

Storage_BaseDriver& DDF_IOStream::GetInteger ( Standard_Integer aValue)
virtual

Implements Storage_BaseDriver.

Storage_BaseDriver& DDF_IOStream::GetReal ( Standard_Real aValue)
virtual

Implements Storage_BaseDriver.

Storage_BaseDriver& DDF_IOStream::GetReference ( Standard_Integer aValue)
virtual

Implements Storage_BaseDriver.

Storage_BaseDriver& DDF_IOStream::GetShortReal ( Standard_ShortReal aValue)
virtual

Implements Storage_BaseDriver.

Standard_Boolean DDF_IOStream::IsEnd ( )
virtual

returns True if we are at end of the stream

Implements Storage_BaseDriver.

static Storage_Error DDF_IOStream::IsGoodFileType ( istream *  anIStream)
static
Storage_Error DDF_IOStream::Open ( const TCollection_AsciiString aName,
const Storage_OpenMode  aMode 
)
virtual

Implements Storage_BaseDriver.

Storage_Error DDF_IOStream::Open ( istream *  anIStream)
Storage_Error DDF_IOStream::Open ( ostream *  anOStream)
Storage_BaseDriver& DDF_IOStream::operator<< ( const Standard_Character  aValue)
inline
Storage_BaseDriver& DDF_IOStream::operator<< ( const Standard_ExtCharacter  aValue)
inline
Storage_BaseDriver& DDF_IOStream::operator<< ( const Standard_Integer  aValue)
inline
Storage_BaseDriver& DDF_IOStream::operator<< ( const Standard_Boolean  aValue)
inline
Storage_BaseDriver& DDF_IOStream::operator<< ( const Standard_Real  aValue)
inline
Storage_BaseDriver& DDF_IOStream::operator<< ( const Standard_ShortReal  aValue)
inline
Storage_BaseDriver& DDF_IOStream::operator>> ( Standard_Character aValue)
inline
Storage_BaseDriver& DDF_IOStream::operator>> ( Standard_ExtCharacter aValue)
inline
Storage_BaseDriver& DDF_IOStream::operator>> ( Standard_Integer aValue)
inline
Storage_BaseDriver& DDF_IOStream::operator>> ( Standard_Boolean aValue)
inline
Storage_BaseDriver& DDF_IOStream::operator>> ( Standard_Real aValue)
inline
Storage_BaseDriver& DDF_IOStream::operator>> ( Standard_ShortReal aValue)
inline
Storage_BaseDriver& DDF_IOStream::PutBoolean ( const Standard_Boolean  aValue)
virtual

Implements Storage_BaseDriver.

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

Implements Storage_BaseDriver.

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

Implements Storage_BaseDriver.

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

Implements Storage_BaseDriver.

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

Implements Storage_BaseDriver.

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

Implements Storage_BaseDriver.

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

Implements Storage_BaseDriver.

void DDF_IOStream::ReadChar ( TCollection_AsciiString buffer,
const Standard_Integer  rsize 
)
protected
void DDF_IOStream::ReadComment ( TColStd_SequenceOfExtendedString userComments)
virtual

Implements Storage_BaseDriver.

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

Implements Storage_BaseDriver.

void DDF_IOStream::ReadExtendedLine ( TCollection_ExtendedString buffer)
protected
void DDF_IOStream::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.

void DDF_IOStream::ReadLine ( TCollection_AsciiString buffer)
protected
void DDF_IOStream::ReadPersistentObjectHeader ( Standard_Integer aRef,
Standard_Integer aType 
)
virtual

Implements Storage_BaseDriver.

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

Implements Storage_BaseDriver.

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

Implements Storage_BaseDriver.

void DDF_IOStream::ReadString ( TCollection_AsciiString buffer)
protected
void DDF_IOStream::ReadTypeInformations ( Standard_Integer typeNum,
TCollection_AsciiString typeName 
)
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::ReadWord ( TCollection_AsciiString buffer)
protected
Standard_Integer DDF_IOStream::RefSectionSize ( )
virtual

Implements Storage_BaseDriver.

Standard_Integer DDF_IOStream::RootSectionSize ( )
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::SetRefSectionSize ( const Standard_Integer  aSize)
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::SetRootSectionSize ( const Standard_Integer  aSize)
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::SetTypeSectionSize ( const Standard_Integer  aSize)
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::SkipObject ( )
virtual

Implements Storage_BaseDriver.

Storage_Position DDF_IOStream::Tell ( )
inlinevirtual

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

Implements Storage_BaseDriver.

Standard_Integer DDF_IOStream::TypeSectionSize ( )
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::WriteComment ( const TColStd_SequenceOfExtendedString userComments)
virtual

Implements Storage_BaseDriver.

void DDF_IOStream::WriteExtendedLine ( const TCollection_ExtendedString buffer)
protected
void DDF_IOStream::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.

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

Implements Storage_BaseDriver.

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

Implements Storage_BaseDriver.

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

Implements Storage_BaseDriver.

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

Implements Storage_BaseDriver.


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