]> Creatis software - gdcm.git/blobdiff - src/gdcmContentEntry.cxx
BUG: Remove mem leak.
[gdcm.git] / src / gdcmContentEntry.cxx
index a2723218a83e4926e463a504a5fede60519847af..22ca6d2f6a6b0442c0173320de5f436513699d5f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmContentEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/26 15:03:32 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2005/01/30 17:30:57 $
+  Version:   $Revision: 1.8 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -30,13 +30,6 @@ namespace gdcm
 
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
-
-
-//-----------------------------------------------------------------------------
-// Public
-
-//-----------------------------------------------------------------------------
-// Protected
 /**
  * \brief   Constructor for a given DictEntry
  * @param   e Pointer to existing dictionary entry
@@ -62,6 +55,24 @@ ContentEntry::ContentEntry(DocEntry *e)
 ContentEntry::~ContentEntry ()
 {
 }
+
+//-----------------------------------------------------------------------------
+// Print
+
+//-----------------------------------------------------------------------------
+// Public
+void ContentEntry::Copy(DocEntry *doc)
+{
+   DocEntry::Copy(doc);
+
+   ContentEntry *entry = dynamic_cast<ContentEntry *>(doc);
+   if(entry)
+      Value = entry->Value;
+}
+
+//-----------------------------------------------------------------------------
+// Protected
+
 //-----------------------------------------------------------------------------
 // Private