X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fapi%2FBamReader.h;h=8e15a5c4abdb0e68804a035e1d3a116059c59ae0;hb=25a2a1f6598b6452455da96c28a7f58fd9e7ed2d;hp=836fbf5e3cbac860f62916c3e717c72618089a7b;hpb=1a93ff03d7e40d97c32e6f5966045ceaeb2f038a;p=bamtools.git diff --git a/src/api/BamReader.h b/src/api/BamReader.h index 836fbf5..8e15a5c 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: 7 October 2011 (DB) // --------------------------------------------------------------------------- // Provides read access to BAM files. // *************************************************************************** @@ -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: