# Draw
TKDCAF
DDF

# DDF_IOStream Class Reference

`#include <DDF_IOStream.hxx>`

## 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 ()
Storage_Position | Tell ()
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)
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_BaseDriver & | PutReference (const Standard_Integer aValue)
Storage_BaseDriver & | PutCharacter (const Standard_Character aValue)
Storage_BaseDriver & | operator<< (const Standard_Character aValue)
Storage_BaseDriver & | PutExtCharacter (const Standard_ExtCharacter aValue)
Storage_BaseDriver & | operator<< (const Standard_ExtCharacter aValue)
Storage_BaseDriver & | PutInteger (const Standard_Integer aValue)
Storage_BaseDriver & | operator<< (const Standard_Integer aValue)
Storage_BaseDriver & | PutBoolean (const Standard_Boolean aValue)
Storage_BaseDriver & | operator<< (const Standard_Boolean aValue)
Storage_BaseDriver & | PutReal (const Standard_Real aValue)
Storage_BaseDriver & | operator<< (const Standard_Real aValue)
Storage_BaseDriver & | PutShortReal (const Standard_ShortReal aValue)
Storage_BaseDriver & | operator<< (const Standard_ShortReal aValue)
Storage_BaseDriver & | GetReference (Standard_Integer &aValue)
Storage_BaseDriver & | GetCharacter (Standard_Character &aValue)
Storage_BaseDriver & | operator>> (Standard_Character &aValue)
Storage_BaseDriver & | GetExtCharacter (Standard_ExtCharacter &aValue)
Storage_BaseDriver & | operator>> (Standard_ExtCharacter &aValue)
Storage_BaseDriver & | GetInteger (Standard_Integer &aValue)
Storage_BaseDriver & | operator>> (Standard_Integer &aValue)
Storage_BaseDriver & | GetBoolean (Standard_Boolean &aValue)
Storage_BaseDriver & | operator>> (Standard_Boolean &aValue)
Storage_BaseDriver & | GetReal (Standard_Real &aValue)
Storage_BaseDriver & | operator>> (Standard_Real &aValue)
Storage_BaseDriver & | GetShortReal (Standard_ShortReal &aValue)
Storage_BaseDriver & | operator>> (Standard_ShortReal &aValue)
Storage_Error | Close ()
void | Destroy ()
| ~DDF_IOStream ()

## Static Public Member Functions

static Storage_Error | IsGoodFileType (istream *anIStream)

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

## Static Private Member Functions

static const Standard_CString | MagicNumber ()

## Private Attributes

istream * | myIStream
ostream * | myOStream

## Constructor & Destructor Documentation

DDF_IOStream::DDF_IOStream | ( |  | ) |

DDF_IOStream::~DDF_IOStream | ( |  | ) | `[inline]`

## Member Function Documentation

Storage_Error DDF_IOStream::BeginReadCommentSection | ( |  | ) |

Storage_Error DDF_IOStream::BeginReadDataSection | ( |  | ) |

Storage_Error DDF_IOStream::BeginReadInfoSection | ( |  | ) |

void DDF_IOStream::BeginReadObjectData | ( |  | ) |

void DDF_IOStream::BeginReadPersistentObjectData | ( |  | ) |

Storage_Error DDF_IOStream::BeginReadRefSection | ( |  | ) |

Storage_Error DDF_IOStream::BeginReadRootSection | ( |  | ) |

Storage_Error DDF_IOStream::BeginReadTypeSection | ( |  | ) |

Storage_Error DDF_IOStream::BeginWriteCommentSection | ( |  | ) |

Storage_Error DDF_IOStream::BeginWriteDataSection | ( |  | ) |

Storage_Error DDF_IOStream::BeginWriteInfoSection | ( |  | ) |

void DDF_IOStream::BeginWriteObjectData | ( |  | ) |

void DDF_IOStream::BeginWritePersistentObjectData | ( |  | ) |

Storage_Error DDF_IOStream::BeginWriteRefSection | ( |  | ) |

Storage_Error DDF_IOStream::BeginWriteRootSection | ( |  | ) |

Storage_Error DDF_IOStream::BeginWriteTypeSection | ( |  | ) |

Storage_Error DDF_IOStream::Close | ( |  | ) |

void DDF_IOStream::Destroy | ( |  | ) |

Storage_Error DDF_IOStream::EndReadCommentSection | ( |  | ) |

Storage_Error DDF_IOStream::EndReadDataSection | ( |  | ) |

Storage_Error DDF_IOStream::EndReadInfoSection | ( |  | ) |

void DDF_IOStream::EndReadObjectData | ( |  | ) |

void DDF_IOStream::EndReadPersistentObjectData | ( |  | ) |

Storage_Error DDF_IOStream::EndReadRefSection | ( |  | ) |

Storage_Error DDF_IOStream::EndReadRootSection | ( |  | ) |

Storage_Error DDF_IOStream::EndReadTypeSection | ( |  | ) |

Storage_Error DDF_IOStream::EndWriteCommentSection | ( |  | ) |

Storage_Error DDF_IOStream::EndWriteDataSection | ( |  | ) |

Storage_Error DDF_IOStream::EndWriteInfoSection | ( |  | ) |

void DDF_IOStream::EndWriteObjectData | ( |  | ) |

void DDF_IOStream::EndWritePersistentObjectData | ( |  | ) |

Storage_Error DDF_IOStream::EndWriteRefSection | ( |  | ) |

Storage_Error DDF_IOStream::EndWriteRootSection | ( |  | ) |

Storage_Error DDF_IOStream::EndWriteTypeSection | ( |  | ) |

Storage_Error DDF_IOStream::FindTag | ( | const Standard_CString | aTag | ) | `[protected]`

void DDF_IOStream::FlushEndOfLine | ( |  | ) | `[protected]`

Storage_BaseDriver& DDF_IOStream::GetBoolean | ( | Standard_Boolean & | aValue | ) |

Storage_BaseDriver& DDF_IOStream::GetCharacter | ( | Standard_Character & | aValue | ) |

Storage_BaseDriver& DDF_IOStream::GetExtCharacter | ( | Standard_ExtCharacter & | aValue | ) |

Storage_BaseDriver& DDF_IOStream::GetInteger | ( | Standard_Integer & | aValue | ) |

Storage_BaseDriver& DDF_IOStream::GetReal | ( | Standard_Real & | aValue | ) |

Storage_BaseDriver& DDF_IOStream::GetReference | ( | Standard_Integer & | aValue | ) |

Storage_BaseDriver& DDF_IOStream::GetShortReal | ( | Standard_ShortReal & | aValue | ) |

Standard_Boolean DDF_IOStream::IsEnd | ( |  | ) |

static Storage_Error DDF_IOStream::IsGoodFileType | ( | istream * | anIStream | ) | `[static]`

static const Standard_CString DDF_IOStream::MagicNumber | ( |  | ) | `[static, private]`

Storage_Error DDF_IOStream::Open | ( | ostream * | anOStream | ) |

Storage_Error DDF_IOStream::Open | ( | istream * | anIStream | ) |

Storage_Error DDF_IOStream::Open | ( | const TCollection_AsciiString & | aName,
|  | const Storage_OpenMode | aMode
| ) |

Storage_BaseDriver& DDF_IOStream::operator<< | ( | const Standard_ShortReal | aValue | ) | `[inline]`

Storage_BaseDriver& DDF_IOStream::operator<< | ( | const Standard_Real | aValue | ) | `[inline]`

Storage_BaseDriver& DDF_IOStream::operator<< | ( | const Standard_Boolean | aValue | ) | `[inline]`

Storage_BaseDriver& DDF_IOStream::operator<< | ( | const Standard_Integer | aValue | ) | `[inline]`

Storage_BaseDriver& DDF_IOStream::operator<< | ( | const Standard_ExtCharacter | aValue | ) | `[inline]`

Storage_BaseDriver& DDF_IOStream::operator<< | ( | const Standard_Character | aValue | ) | `[inline]`

Storage_BaseDriver& DDF_IOStream::operator>> | ( | Standard_ShortReal & | aValue | ) | `[inline]`

Storage_BaseDriver& DDF_IOStream::operator>> | ( | Standard_Real & | aValue | ) | `[inline]`

Storage_BaseDriver& DDF_IOStream::operator>> | ( | Standard_Boolean & | aValue | ) | `[inline]`

Storage_BaseDriver& DDF_IOStream::operator>> | ( | Standard_Integer & | aValue | ) | `[inline]`

Storage_BaseDriver& DDF_IOStream::operator>> | ( | Standard_ExtCharacter & | aValue | ) | `[inline]`

Storage_BaseDriver& DDF_IOStream::operator>> | ( | Standard_Character & | aValue | ) | `[inline]`

Storage_BaseDriver& DDF_IOStream::PutBoolean | ( | const Standard_Boolean | aValue | ) |

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

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

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

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

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

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

void DDF_IOStream::ReadChar | ( | TCollection_AsciiString & | buffer,
|  | const Standard_Integer | rsize
| ) | `[protected]`

void DDF_IOStream::ReadComment | ( | TColStd_SequenceOfExtendedString & | userComments | ) |

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

void DDF_IOStream::ReadLine | ( | TCollection_AsciiString & | buffer | ) | `[protected]`

void DDF_IOStream::ReadPersistentObjectHeader | ( | Standard_Integer & | aRef,
|  | Standard_Integer & | aType
| ) |

void DDF_IOStream::ReadReferenceType | ( | Standard_Integer & | reference,
|  | Standard_Integer & | typeNum
| ) |

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

void DDF_IOStream::ReadString | ( | TCollection_AsciiString & | buffer | ) | `[protected]`

void DDF_IOStream::ReadTypeInformations | ( | Standard_Integer & | typeNum,
|  | TCollection_AsciiString & | typeName
| ) |

void DDF_IOStream::ReadWord | ( | TCollection_AsciiString & | buffer | ) | `[protected]`

Standard_Integer DDF_IOStream::RefSectionSize | ( |  | ) |

Standard_Integer DDF_IOStream::RootSectionSize | ( |  | ) |

void DDF_IOStream::SetRefSectionSize | ( | const Standard_Integer | aSize | ) |

void DDF_IOStream::SetRootSectionSize | ( | const Standard_Integer | aSize | ) |

void DDF_IOStream::SetTypeSectionSize | ( | const Standard_Integer | aSize | ) |

void DDF_IOStream::SkipObject | ( |  | ) |

Storage_Position DDF_IOStream::Tell | ( |  | ) | `[inline]`

Standard_Integer DDF_IOStream::TypeSectionSize | ( |  | ) |

void DDF_IOStream::WriteComment | ( | const TColStd_SequenceOfExtendedString & | userComments | ) |

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

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

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

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

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

## Field Documentation

istream* DDF_IOStream::myIStream `[private]`

ostream* DDF_IOStream::myOStream `[private]`

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

- DDF_IOStream.hxx