using namespace BamTools::Internal;
using namespace std;
+// ctor
SamHeader::SamHeader(const string& headerText)
: Version("")
, SortOrder("")
parser.Parse(headerText);
}
+// copy ctor
+SamHeader::SamHeader(const SamHeader& other)
+ : Version(other.Version)
+ , SortOrder(other.SortOrder)
+ , GroupOrder(other.GroupOrder)
+ , Sequences(other.Sequences)
+ , ReadGroups(other.ReadGroups)
+ , ProgramName(other.ProgramName)
+ , ProgramVersion(other.ProgramVersion)
+ , ProgramCommandLine(other.ProgramCommandLine)
+{ }
+
+// dtor
SamHeader::~SamHeader(void) {
Clear();
}