myOffset(BP_HEADSIZE),
mySize (BP_HEADSIZE),
myIsError (Standard_False),
- myIStream (NULL),
myOStream (NULL),
+ myIStream (NULL),
myDirectWritingIsEnabled (Standard_False)
{
Init();
aData[1] = InverseInt (aData[1]);
aData[2] = InverseInt (aData[2]);
#endif
- if (myDirectWritingIsEnabled = (aData[1] < 0))
+ myDirectWritingIsEnabled = aData[1] < 0;
+ if (myDirectWritingIsEnabled)
aData[1] = -aData[1];
if (theIS && aData[2] > 0) {
mySize += aData[2];
class Poly_PolygonOnTriangulation;
class Poly_Triangulation;
-//! Computes a hash code for the given value of the uint64_t type, in range [1, theUpperBound]
-inline Standard_Integer HashCode (const uint64_t theValue, const Standard_Integer theUpperBound)
-{
- return IntegerHashCode(theValue, 0xffffffffffffffff, theUpperBound);
-}
-
//! Reads topology from IStream in binary format without grouping of objects by types
//! and using relative positions in a file as references.
class BinTools_ShapeReader : public BinTools_ShapeSetBase
//! Writes to the stream a gp_Pnt data
Standard_OStream& operator << (Standard_OStream& OS, const gp_Pnt P);
+//! Computes a hash code for the given value of the uint64_t type, in range [1, theUpperBound]
+inline Standard_Integer HashCode (const uint64_t theValue, const Standard_Integer theUpperBound)
+{
+ return IntegerHashCode(theValue, 0xffffffffffffffff, theUpperBound);
+}
+
//! A base class for all readers/writers of TopoDS_Shape into/from stream.
class BinTools_ShapeSetBase
{
Close Doc
# Test data
-set ctr { "0%" "Writing document" "Writing sub tree"
- "Writing geometry" "Writing 2D curves" "Writing curves"
- "Writing surfases" "Writing shapes" "100%" }
+set ctr { "0%" "Writing document" "Writing sub tree" "100%" }
foreach data ${ctr} {
if ![regexp $data $output] {
Close Doc
# Test data
-set ctr {"0%" "Reading data" "Reading geometry" "Reading curves 2d"
- "Reading surfaces" "Reading Shapes" "Reading sub tree" "100%" }
+set ctr {"0%" "Reading data" "Reading sub tree" "100%" }
foreach data ${ctr} {
if ![regexp $data $output] {
Close Doc
# Test data
-set ctr { "0%" "Writing document" "Writing sub tree"
- "Writing geometry" "Writing 2D curves" "Writing curves"
- "Writing surfases" "Writing shapes" "100%" }
+set ctr { "0%" "Writing document" "Writing sub tree" "100%" }
foreach data ${ctr} {
if ![regexp $data $output] {