X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmContentEntry.cxx;h=a7d57867bdf82263d94f0e238711148449deb1c8;hb=8f38e5061bcb7bebaea78024d8d743ab973e2dab;hp=3afeb1a313d5e6d128d3383dd643d20cd4ef294c;hpb=ab3dc69a71af640fa49cbd917272d9ff7d1651b6;p=gdcm.git diff --git a/src/gdcmContentEntry.cxx b/src/gdcmContentEntry.cxx index 3afeb1a3..a7d57867 100644 --- a/src/gdcmContentEntry.cxx +++ b/src/gdcmContentEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmContentEntry.cxx,v $ Language: C++ - Date: $Date: 2005/01/26 14:56:38 $ - Version: $Revision: 1.5 $ + Date: $Date: 2005/02/02 10:02:16 $ + Version: $Revision: 1.9 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -34,7 +34,8 @@ namespace gdcm * \brief Constructor for a given DictEntry * @param e Pointer to existing dictionary entry */ -ContentEntry::ContentEntry(DictEntry *e) : DocEntry(e) +ContentEntry::ContentEntry(DictEntry *e) + : DocEntry(e) { Value = GDCM_UNFOUND; } @@ -44,7 +45,7 @@ ContentEntry::ContentEntry(DictEntry *e) : DocEntry(e) * @param e Pointer to existing Doc entry */ ContentEntry::ContentEntry(DocEntry *e) - : DocEntry(e->GetDictEntry()) + : DocEntry(e->GetDictEntry()) { Copy(e); } @@ -56,8 +57,19 @@ ContentEntry::~ContentEntry () { } +//----------------------------------------------------------------------------- +// Print + //----------------------------------------------------------------------------- // Public +void ContentEntry::Copy(DocEntry *doc) +{ + DocEntry::Copy(doc); + + ContentEntry *entry = dynamic_cast(doc); + if(entry) + Value = entry->Value; +} //----------------------------------------------------------------------------- // Protected