c++/EEDB/SPStreams/BAMDB.cpp
/***** reset_stream_node
  Description: re-initialize this stream node prior to reconfiguring stream
*****/
reset_stream_node
Description: re-initialize this stream node prior to reconfiguring stream
reset_stream_node Description : re - initialize this stream node prior to reconfiguring stream
void EEDB::SPStreams::BAMDB::_reset_stream_node() {
  EEDB::SPStreams::SourceStream::_reset_stream_node();
  _init_from_xmldb();  
  _region_set     = false;
  _region_start   = -1;
  _region_end     = -1;
  if(_samlib_fp) { 
    samclose(_samlib_fp);
    _samlib_fp = NULL;
    bam_iter_destroy(_samlib_iter);
    bam_destroy1(_samlib_bam_align);
  }
}
void EEDB :: SPStreams :: BAMDB :: _reset_stream_node ( ) { EEDB :: SPStreams :: SourceStream :: _reset_stream_node ( ) ; _init_from_xmldb ( ) ; _region_set = false ; _region_start = -1 ; _region_end = -1 ; if ( _samlib_fp ) { samclose ( _samlib_fp ) ; _samlib_fp = NULL ; bam_iter_destroy ( _samlib_iter ) ; bam_destroy1 ( _samlib_bam_align ) ; } }
reset_stream_node
Description: re-initialize this stream node prior to reconfiguring stream
reset_stream_node Description : re - initialize this stream node prior to reconfiguring stream
//fprintf(stderr, "BAMDB::_reset_stream_node (%ld)\n", (long)this); //make sure it is initialized now  