Open CASCADE Technology 7.8.0
|
Substitution of OStream for shape writer for fast management of position in the file and operation on all writing types. More...
#include <BinTools_OStream.hxx>
Substitution of OStream for shape writer for fast management of position in the file and operation on all writing types.
BinTools_OStream::BinTools_OStream | ( | Standard_OStream & | theStream | ) |
Creates OStream using the current stream OStream.
BinTools_OStream & BinTools_OStream::operator<< | ( | const BinTools_ObjectType & | theType | ) |
Writes an object type to the stream.
BinTools_OStream & BinTools_OStream::operator<< | ( | const gp_Dir & | theValue | ) |
Writes a 3D direction to the stream.
BinTools_OStream & BinTools_OStream::operator<< | ( | const gp_Dir2d & | theValue | ) |
Writes a 2D direction to the stream.
BinTools_OStream & BinTools_OStream::operator<< | ( | const gp_Pnt & | theValue | ) |
Writes a 3D point to the stream.
BinTools_OStream & BinTools_OStream::operator<< | ( | const gp_Pnt2d & | theValue | ) |
Writes a 2D point to the stream.
BinTools_OStream & BinTools_OStream::operator<< | ( | const gp_Trsf & | theValue | ) |
Writes a transformation matrix to the stream.
BinTools_OStream & BinTools_OStream::operator<< | ( | const gp_Vec3f & | theValue | ) |
Writes a vector to the stream.
BinTools_OStream & BinTools_OStream::operator<< | ( | const Poly_Triangle & | theValue | ) |
Writes triangle nodes indices to the stream.
BinTools_OStream & BinTools_OStream::operator<< | ( | const Standard_Boolean & | theValue | ) |
Writes a boolean to the stream.
BinTools_OStream & BinTools_OStream::operator<< | ( | const Standard_Byte & | theValue | ) |
Writes a byte to the stream.
BinTools_OStream & BinTools_OStream::operator<< | ( | const Standard_ExtCharacter & | theValue | ) |
Writes a extended character to the stream.
BinTools_OStream & BinTools_OStream::operator<< | ( | const Standard_Integer & | theValue | ) |
Writes a integer to the stream.
BinTools_OStream & BinTools_OStream::operator<< | ( | const Standard_Real & | theValue | ) |
Writes a real to the stream.
void BinTools_OStream::PutBools | ( | const Standard_Boolean | theValue1, |
const Standard_Boolean | theValue2, | ||
const Standard_Boolean | theValue3 | ||
) |
Writes 3 booleans as one byte to the stream.
void BinTools_OStream::PutBools | ( | const Standard_Boolean | theValue1, |
const Standard_Boolean | theValue2, | ||
const Standard_Boolean | theValue3, | ||
const Standard_Boolean | theValue4, | ||
const Standard_Boolean | theValue5, | ||
const Standard_Boolean | theValue6, | ||
const Standard_Boolean | theValue7 | ||
) |
Writes 7 booleans as one byte to the stream.
Writes the reference to the given position (an offset between the current and the given one).
void BinTools_OStream::WriteShape | ( | const TopAbs_ShapeEnum & | theType, |
const TopAbs_Orientation & | theOrientation | ||
) |
Writes an identifier of shape type and orientation into the stream.