X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fapi%2FBamAlignment.h;h=e12aad675fe4bf5ff70a3223179c3c185a192657;hb=5c424b7a45ca882fcd92edd9558ee0a89a8ff803;hp=a2349ea9ce9b254066450dc953b99925a8f03b56;hpb=c3a7c31347d42a926214e2508d713975d124e8c6;p=bamtools.git diff --git a/src/api/BamAlignment.h b/src/api/BamAlignment.h index a2349ea..e12aad6 100644 --- a/src/api/BamAlignment.h +++ b/src/api/BamAlignment.h @@ -2,7 +2,7 @@ // BamAlignment.h (c) 2009 Derek Barnett // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- -// Last modified: 16 October 2011 (DB) +// Last modified: 4 December 2012 (DB) // --------------------------------------------------------------------------- // Provides the BamAlignment data structure // *************************************************************************** @@ -80,9 +80,15 @@ struct API_EXPORT BamAlignment { template bool GetTag(const std::string& tag, T& destination) const; template bool GetTag(const std::string& tag, std::vector& destination) const; + // retrieves all current tag names + std::vector GetTagNames(void) const; + // retrieves the SAM/BAM type-code for requested tag name bool GetTagType(const std::string& tag, char& type) const; + // retrieves the SAM/BAM type-code for the data elements in an array tag + bool GetArrayTagType(const std::string& tag, char& type) const; + // returns true if alignment has a record for this tag name bool HasTag(const std::string& tag) const;