c++/EEDB/SPStreams/MultiMergeStream.cpp
/***** add_stream
  Description: add an EEDB::SPStream into the pool of streams to merge.
*****/
add_stream
Description: add an EEDB::SPStream into the pool of streams to merge.
add_stream Description : add an EEDB :: SPStream into the pool of streams to merge .
void EEDB::SPStreams::MultiMergeStream::add_stream(EEDB::SPStream* stream) {
  if(stream == NULL) { return; }
  EEDB::SPStreams::MultistreamElement *mse = new EEDB::SPStreams::MultistreamElement;
  stream->retain();
  mse->stream = stream;
  _sourcestreams.push_back(mse);
}
void EEDB :: SPStreams :: MultiMergeStream :: add_stream ( EEDB :: SPStream * stream ) { if ( stream == NULL ) { return ; } EEDB :: SPStreams :: MultistreamElement * mse = new EEDB :: SPStreams :: MultistreamElement ; stream -> retain ( ) ; mse -> stream = stream ; _sourcestreams . push_back ( mse ) ; }
add_stream
Description: add an EEDB::SPStream into the pool of streams to merge.
add_stream Description : add an EEDB :: SPStream into the pool of streams to merge .
//add stream to streams to be merged