X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fapi%2FBamReader.h;h=30c4d5f4de1fa1c415738c54f914f9b7f5dd2314;hb=9f1ce8c47aeadb6dc1320b52ee671c3341b97935;hp=836fbf5e3cbac860f62916c3e717c72618089a7b;hpb=c1fc1c5423ca73a1b5bcbe790650821d73e5959c;p=bamtools.git diff --git a/src/api/BamReader.h b/src/api/BamReader.h index 836fbf5..30c4d5f 100644 --- a/src/api/BamReader.h +++ b/src/api/BamReader.h @@ -2,7 +2,7 @@ // BamReader.h (c) 2009 Derek Barnett, Michael Str�mberg // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- -// Last modified: 4 March 2011 (DB) +// Last modified: 10 October 2011 (DB) // --------------------------------------------------------------------------- // Provides read access to BAM files. // *************************************************************************** @@ -10,10 +10,10 @@ #ifndef BAMREADER_H #define BAMREADER_H -#include -#include -#include -#include +#include "api/api_global.h" +#include "api/BamAlignment.h" +#include "api/BamIndex.h" +#include "api/SamHeader.h" #include namespace BamTools { @@ -37,7 +37,7 @@ class API_EXPORT BamReader { // ---------------------- // closes the current BAM file - void Close(void); + bool Close(void); // returns filename of current BAM file const std::string GetFilename(void) const; // returns true if a BAM file is open for reading @@ -102,10 +102,12 @@ class API_EXPORT BamReader { // changes the caching behavior of the index data void SetIndexCacheMode(const BamIndex::IndexCacheMode& mode); - // deprecated methods - public: - // returns true if index data is available - bool IsIndexLoaded(void) const; + // ---------------------- + // error handling + // ---------------------- + + // returns a human-readable description of the last error that occurred + std::string GetErrorString(void) const; // private implementation private: