X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fapi%2FBamReader.h;h=30c4d5f4de1fa1c415738c54f914f9b7f5dd2314;hb=9f1ce8c47aeadb6dc1320b52ee671c3341b97935;hp=85b0c0d5713ed15f4a616ec4a6f7e1c2ab9d3c1b;hpb=8c80d760637f8df39262683cd2570f0589423d36;p=bamtools.git diff --git a/src/api/BamReader.h b/src/api/BamReader.h index 85b0c0d..30c4d5f 100644 --- a/src/api/BamReader.h +++ b/src/api/BamReader.h @@ -1,9 +1,8 @@ // *************************************************************************** // BamReader.h (c) 2009 Derek Barnett, Michael Str�mberg // Marth Lab, Department of Biology, Boston College -// All rights reserved. // --------------------------------------------------------------------------- -// Last modified: 4 March 2011 (DB) +// Last modified: 10 October 2011 (DB) // --------------------------------------------------------------------------- // Provides read access to BAM files. // *************************************************************************** @@ -11,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 { @@ -38,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 @@ -103,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: