1 // File Description 2 /// \file EntireFileQuery.cpp 3 /// \brief Implements the EntireFileQuery class. 4 // 5 // Author: Derek Barnett 6 7 #include "PbbamInternalConfig.h" 8 9 #include "pbbam/EntireFileQuery.h" 10 11 #include "pbbam/CompositeBamReader.h" 12 13 namespace PacBio { 14 namespace BAM { 15 16 struct EntireFileQuery::EntireFileQueryPrivate 17 { EntireFileQueryPrivatePacBio::BAM::EntireFileQuery::EntireFileQueryPrivate18 EntireFileQueryPrivate(const DataSet &dataset) : reader_(dataset) {} 19 20 SequentialCompositeBamReader reader_; 21 }; 22 EntireFileQuery(const DataSet & dataset)23EntireFileQuery::EntireFileQuery(const DataSet &dataset) 24 : internal::IQuery(), d_(new EntireFileQueryPrivate(dataset)) 25 { 26 } 27 ~EntireFileQuery()28EntireFileQuery::~EntireFileQuery() {} 29 GetNext(BamRecord & r)30bool EntireFileQuery::GetNext(BamRecord &r) { return d_->reader_.GetNext(r); } 31 32 } // namespace BAM 33 } // namespace PacBio 34