]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/SamHeader.h
Minor update to API version 0.9.3 - addition of SamHeader::SetHeaderText().
[bamtools.git] / src / api / SamHeader.h
index b51f1750d1beb55c77aeed552a39a19407d607da..5de15606577fe59f378246de5c04c245ba4ecc6b 100644 (file)
@@ -3,7 +3,7 @@
 // Marth Lab, Department of Biology, Boston College
 // All rights reserved.
 // ---------------------------------------------------------------------------
-// Last modified: 23 December 2010 (DB)
+// Last modified: 12 January 2011 (DB)
 // ---------------------------------------------------------------------------
 // Provides functionality for querying/manipulating SAM header data
 // **************************************************************************
@@ -23,7 +23,8 @@ struct API_EXPORT SamHeader {
 
     // ctor & dtor
     public:
-        explicit SamHeader(const std::string& headerText = "");
+        SamHeader(const std::string& headerText = "");
+        SamHeader(const SamHeader& other);
         ~SamHeader(void);
 
     // query/modify entire SamHeader at once
@@ -37,6 +38,9 @@ struct API_EXPORT SamHeader {
         // otherwise, output is suppressed and only validation check occurs
         bool IsValid(bool verbose = false) const;
 
+        // replaces SamHeader contents with headerText
+        void SetHeaderText(const std::string& headerText);
+
         // retrieves the printable, SAM-formatted header
         // (with any local modifications since construction)
         std::string ToString(void) const;