MCPcopy Create free account
hub / github.com/PDAL/PDAL / checkInvariant

Method checkInvariant

plugins/e57/libE57Format/src/BlobNode.cpp:42–60  ·  view source on GitHub ↗

Put this function first so we can reference the code in doxygen using @skip ! @brief Check whether BlobNode class invariant is true @copydetails IntegerNode::checkInvariant() */

Source from the content-addressed store, hash-verified

40@copydetails IntegerNode::checkInvariant()
41*/
42void BlobNode::checkInvariant( bool /*doRecurse*/, bool doUpcast ) const
43{
44 // If destImageFile not open, can't test invariant (almost every call would throw)
45 if ( !destImageFile().isOpen() )
46 {
47 return;
48 }
49
50 // If requested, call Node::checkInvariant
51 if ( doUpcast )
52 {
53 static_cast<Node>( *this ).checkInvariant( false, false );
54 }
55
56 if ( byteCount() < 0 )
57 {
58 throw E57_EXCEPTION1( ErrorInvarianceViolation );
59 }
60}
61
62/*!
63@class e57::BlobNode

Callers

nothing calls this directly

Calls 1

isOpenMethod · 0.45

Tested by

no test coverage detected