+/**
+ * \brief Copies all the attributes from an other DocEntrySet
+ * @param set entry to copy from
+ * @remarks The contained DocEntries a not copied, only referenced
+ */
+void DicomDirStudy::Copy(DocEntrySet *set)
+{
+ // Remove all previous childs
+ ClearSerie();
+ ClearVisit();
+
+ DicomDirObject::Copy(set);
+
+ DicomDirStudy *ddEntry = dynamic_cast<DicomDirStudy *>(set);
+ if( ddEntry )
+ {
+ Series = ddEntry->Series;
+ for(ItSerie = Series.begin();ItSerie != Series.end();++ItSerie)
+ (*ItSerie)->Register();
+
+ Visits = ddEntry->Visits;
+ for(ItVisit = Visits.begin();ItVisit != Visits.end();++ItVisit)
+ (*ItVisit)->Register();
+ }
+}
+