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

Method dump

plugins/e57/libE57Format/src/CompressedVectorWriterImpl.cpp:721–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719
720#ifdef E57_ENABLE_DIAGNOSTIC_OUTPUT
721 void CompressedVectorWriterImpl::dump( int indent, std::ostream &os )
722 {
723 os << space( indent ) << "isOpen:" << isOpen_ << std::endl;
724
725 for ( unsigned i = 0; i < sbufs_.size(); i++ )
726 {
727 os << space( indent ) << "sbufs[" << i << "]:" << std::endl;
728 sbufs_.at( i ).dump( indent + 4, os );
729 }
730
731 os << space( indent ) << "cVector:" << std::endl;
732 cVector_->dump( indent + 4, os );
733
734 os << space( indent ) << "proto:" << std::endl;
735 proto_->dump( indent + 4, os );
736
737 for ( unsigned i = 0; i < bytestreams_.size(); i++ )
738 {
739 os << space( indent ) << "bytestreams[" << i << "]:" << std::endl;
740 bytestreams_.at( i )->dump( indent + 4, os );
741 }
742
743 // Don't call dump() for DataPacket, since it may contain junk when
744 // debugging. Just print a few byte values.
745 os << space( indent ) << "dataPacket:" << std::endl;
746 auto p = reinterpret_cast<uint8_t *>( &dataPacket_ );
747
748 for ( unsigned i = 0; i < 40; ++i )
749 {
750 os << space( indent + 4 ) << "dataPacket[" << i << "]: " << static_cast<unsigned>( p[i] )
751 << std::endl;
752 }
753 os << space( indent + 4 ) << "more unprinted..." << std::endl;
754
755 os << space( indent ) << "sectionHeaderLogicalStart: " << sectionHeaderLogicalStart_
756 << std::endl;
757 os << space( indent ) << "sectionLogicalLength: " << sectionLogicalLength_ << std::endl;
758 os << space( indent ) << "dataPhysicalOffset: " << dataPhysicalOffset_ << std::endl;
759 os << space( indent ) << "topIndexPhysicalOffset: " << topIndexPhysicalOffset_
760 << std::endl;
761 os << space( indent ) << "recordCount: " << recordCount_ << std::endl;
762 os << space( indent ) << "dataPacketsCount: " << dataPacketsCount_ << std::endl;
763 os << space( indent ) << "indexPacketsCount: " << indexPacketsCount_ << std::endl;
764 }
765#endif
766}

Callers 1

closeMethod · 0.45

Calls 3

spaceFunction · 0.85
atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected