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

Method close

plugins/e57/libE57Format/src/CompressedVectorReaderImpl.cpp:566–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564 }
565
566 void CompressedVectorReaderImpl::close()
567 {
568 // Before anything that can throw, decrement reader count
569 ImageFileImplSharedPtr imf( cVector_->destImageFile_ );
570 imf->decrReaderCount();
571
572 checkImageFileOpen( __FILE__, __LINE__, static_cast<const char *>( __FUNCTION__ ) );
573
574 // No error if reader not open
575 if ( !isOpen_ )
576 {
577 return;
578 }
579
580 // Destroy decoders
581 channels_.clear();
582
583 delete cache_;
584 cache_ = nullptr;
585
586 isOpen_ = false;
587 }
588
589 void CompressedVectorReaderImpl::checkImageFileOpen( const char *srcFileName, int srcLineNumber,
590 const char *srcFunctionName ) const

Callers

nothing calls this directly

Calls 2

decrReaderCountMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected