Substitution of IStream for shape reader for fast management of position in the file (get and go) and operation on all reading types.
More...
#include <BinTools_IStream.hxx>
Substitution of IStream for shape reader for fast management of position in the file (get and go) and operation on all reading types.
◆ BinTools_IStream()
Creates IStream using the current stream IStream.
◆ GoTo()
| void BinTools_IStream::GoTo |
( |
const uint64_t & | thePosition | ) |
|
Moves the current stream position to the given one.
◆ IsReference()
| bool BinTools_IStream::IsReference |
( |
| ) |
|
Returns true if the last restored type is one of a reference.
◆ LastType()
Returns the last read type.
◆ operator bool()
| BinTools_IStream::operator bool |
( |
| ) |
const |
Returns false if stream reading is failed.
◆ operator>>() [1/7]
◆ operator>>() [2/7]
◆ operator>>() [3/7]
◆ operator>>() [4/7]
◆ operator>>() [5/7]
Reads transformation value from the stream.
◆ operator>>() [6/7]
◆ operator>>() [7/7]
◆ Position()
| uint64_t BinTools_IStream::Position |
( |
| ) |
|
|
inline |
Returns the current position in the stream.
◆ ReadBool()
| bool BinTools_IStream::ReadBool |
( |
| ) |
|
|
inline |
Reads boolean value from the stream (stored as one byte).
◆ ReadBools() [1/2]
| void BinTools_IStream::ReadBools |
( |
bool & | theBool1, |
|
|
bool & | theBool2, |
|
|
bool & | theBool3 ) |
Reads 3 boolean values from one byte.
◆ ReadBools() [2/2]
| void BinTools_IStream::ReadBools |
( |
bool & | theBool1, |
|
|
bool & | theBool2, |
|
|
bool & | theBool3, |
|
|
bool & | theBool4, |
|
|
bool & | theBool5, |
|
|
bool & | theBool6, |
|
|
bool & | theBool7 ) |
Reads 7 boolean values from one byte.
◆ ReadByte()
| uint8_t BinTools_IStream::ReadByte |
( |
| ) |
|
|
inline |
Reads byte value from the stream.
◆ ReadInteger()
| int BinTools_IStream::ReadInteger |
( |
| ) |
|
|
inline |
Reads integer value from the stream.
◆ ReadPnt()
| gp_Pnt BinTools_IStream::ReadPnt |
( |
| ) |
|
|
inline |
Reads point coordinates value from the stream.
◆ ReadReal()
| double BinTools_IStream::ReadReal |
( |
| ) |
|
|
inline |
Reads real value from the stream.
◆ ReadReference()
| uint64_t BinTools_IStream::ReadReference |
( |
| ) |
|
Reads a reference IStream using the last restored type.
◆ ReadShortReal()
| float BinTools_IStream::ReadShortReal |
( |
| ) |
|
|
inline |
Reads short real value from the stream.
◆ ReadType()
Reads and returns the type.
◆ ShapeOrientation()
Returns the shape orientation by the last retrieved type.
◆ ShapeType()
Returns the shape type by the last retrieved type.
◆ Stream()
Returns the original IStream.
◆ UpdatePosition()
| void BinTools_IStream::UpdatePosition |
( |
| ) |
|
|
inline |
Makes up to date the myPosition because myStream was used outside and position is changed.
The documentation for this class was generated from the following file: