]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/BamAlignment.h
Added GetTagType() to BamAlignment
[bamtools.git] / src / api / BamAlignment.h
index ac50552656ee551e5ded24cb47a3124e72c42cee..c8939f00258876a5e393246f926799b06927b3f2 100644 (file)
@@ -3,7 +3,7 @@
 // Marth Lab, Department of Biology, Boston College
 // All rights reserved.
 // ---------------------------------------------------------------------------
-// Last modified: 18 September 2010 (DB)
+// Last modified: 19 September 2010 (DB)
 // ---------------------------------------------------------------------------
 // Provides the BamAlignment data structure
 // ***************************************************************************
@@ -100,6 +100,10 @@ struct BamAlignment {
         bool GetTag(const std::string& tag, int32_t& destination) const;        // access signed integer data
         bool GetTag(const std::string& tag, float& destination) const;          // access floating point data
         
+        // retrieve the tag type code for TAG
+        // returns true if tag could be found and type determined
+        bool GetTagType(const std::string& tag, char& type) const;
+        
         // remove tag data
         // returns true if removal was successful, false if error
         // N.B. - returns false if TAG does not exist (no removal can occur)