]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/SamReadGroup.cpp
Added explicit copy ctors to SamHeader data structures
[bamtools.git] / src / api / SamReadGroup.cpp
index 96c8e4e92eac232927d37a964ae1be752eee1646..8debc58c7a3f70024aec903ec2ab8295681535d5 100644 (file)
@@ -38,6 +38,19 @@ SamReadGroup::SamReadGroup(const string& id)
     , SequencingTechnology("")
 { }
 
+// copy ctor
+SamReadGroup::SamReadGroup(const SamReadGroup& other)
+    : ID(other.ID)
+    , Sample(other.Sample)
+    , Library(other.Library)
+    , Description(other.Description)
+    , PlatformUnit(other.PlatformUnit)
+    , PredictedInsertSize(other.PredictedInsertSize)
+    , SequencingCenter(other.SequencingCenter)
+    , ProductionDate(other.ProductionDate)
+    , SequencingTechnology(other.SequencingTechnology)
+{ }
+
 // dtor
 SamReadGroup::~SamReadGroup(void) {
     Clear();