![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
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>
Public Member Functions | |
| BinTools_IStream (Standard_IStream &theStream) | |
| Creates IStream using the current stream IStream. | |
| BinTools_ObjectType | ReadType () |
| Reads and returns the type. | |
| const BinTools_ObjectType & | LastType () |
| Returns the last read type. | |
| TopAbs_ShapeEnum | ShapeType () |
| Returns the shape type by the last retrieved type. | |
| TopAbs_Orientation | ShapeOrientation () |
| Returns the shape orientation by the last retrieved type. | |
| uint64_t | Position () |
| Returns the current position in the stream. | |
| void | GoTo (const uint64_t &thePosition) |
| Moves the current stream position to the given one. | |
| bool | IsReference () |
| Returns true if the last restored type is one of a reference. | |
| uint64_t | ReadReference () |
| Reads a reference IStream using the last restored type. | |
| Standard_IStream & | Stream () |
| Returns the original IStream. | |
| void | UpdatePosition () |
| Makes up to date the myPosition because myStream was used outside and position is changed. | |
| operator bool () const | |
| Returns false if stream reading is failed. | |
| double | ReadReal () |
| Reads real value from the stream. | |
| BinTools_IStream & | operator>> (double &theValue) |
| int | ReadInteger () |
| Reads integer value from the stream. | |
| BinTools_IStream & | operator>> (int &theValue) |
| gp_Pnt | ReadPnt () |
| Reads point coordinates value from the stream. | |
| BinTools_IStream & | operator>> (gp_Pnt &theValue) |
| uint8_t | ReadByte () |
| Reads byte value from the stream. | |
| BinTools_IStream & | operator>> (uint8_t &theValue) |
| bool | ReadBool () |
| Reads boolean value from the stream (stored as one byte). | |
| BinTools_IStream & | operator>> (bool &theValue) |
| float | ReadShortReal () |
| Reads short real value from the stream. | |
| BinTools_IStream & | operator>> (float &theValue) |
| BinTools_IStream & | operator>> (gp_Trsf &theValue) |
| Reads transformation value from the stream. | |
| void | ReadBools (bool &theBool1, bool &theBool2, bool &theBool3) |
| Reads 3 boolean values from one byte. | |
| void | ReadBools (bool &theBool1, bool &theBool2, bool &theBool3, bool &theBool4, bool &theBool5, bool &theBool6, bool &theBool7) |
| Reads 7 boolean values from one byte. | |
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::BinTools_IStream | ( | Standard_IStream & | theStream | ) |
Creates IStream using the current stream IStream.
Moves the current stream position to the given one.
| bool BinTools_IStream::IsReference | ( | ) |
Returns true if the last restored type is one of a reference.
|
inline |
Returns the last read type.
| BinTools_IStream::operator bool | ( | ) | const |
Returns false if stream reading is failed.
|
inline |
| BinTools_IStream & BinTools_IStream::operator>> | ( | double & | theValue | ) |
| BinTools_IStream & BinTools_IStream::operator>> | ( | float & | theValue | ) |
| BinTools_IStream & BinTools_IStream::operator>> | ( | gp_Pnt & | theValue | ) |
| BinTools_IStream & BinTools_IStream::operator>> | ( | gp_Trsf & | theValue | ) |
Reads transformation value from the stream.
| BinTools_IStream & BinTools_IStream::operator>> | ( | int & | theValue | ) |
| BinTools_IStream & BinTools_IStream::operator>> | ( | uint8_t & | theValue | ) |
|
inline |
Returns the current position in the stream.
|
inline |
Reads boolean value from the stream (stored as one byte).
Reads 3 boolean values from one byte.
| 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.
|
inline |
Reads byte value from the stream.
|
inline |
Reads integer value from the stream.
|
inline |
Reads point coordinates value from the stream.
|
inline |
Reads real value from the stream.
| uint64_t BinTools_IStream::ReadReference | ( | ) |
Reads a reference IStream using the last restored type.
|
inline |
Reads short real value from the stream.
| BinTools_ObjectType BinTools_IStream::ReadType | ( | ) |
Reads and returns the type.
| TopAbs_Orientation BinTools_IStream::ShapeOrientation | ( | ) |
Returns the shape orientation by the last retrieved type.
| TopAbs_ShapeEnum BinTools_IStream::ShapeType | ( | ) |
Returns the shape type by the last retrieved type.
|
inline |
Returns the original IStream.
|
inline |
Makes up to date the myPosition because myStream was used outside and position is changed.