00001 /*========================================================================= 00002 00003 Program: gdcm 00004 Module: $RCSfile: gdcmContentEntry.cxx,v $ 00005 Language: C++ 00006 Date: $Date: 2005/02/02 10:02:16 $ 00007 Version: $Revision: 1.9 $ 00008 00009 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de 00010 l'Image). All rights reserved. See Doc/License.txt or 00011 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. 00012 00013 This software is distributed WITHOUT ANY WARRANTY; without even 00014 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00015 PURPOSE. See the above copyright notices for more information. 00016 00017 =========================================================================*/ 00018 00019 #include "gdcmContentEntry.h" 00020 #include "gdcmVR.h" 00021 #include "gdcmTS.h" 00022 #include "gdcmGlobal.h" 00023 #include "gdcmUtil.h" 00024 #include "gdcmDebug.h" 00025 00026 #include <fstream> 00027 00028 namespace gdcm 00029 { 00030 00031 //----------------------------------------------------------------------------- 00032 // Constructor / Destructor 00037 ContentEntry::ContentEntry(DictEntry *e) 00038 : DocEntry(e) 00039 { 00040 Value = GDCM_UNFOUND; 00041 } 00042 00047 ContentEntry::ContentEntry(DocEntry *e) 00048 : DocEntry(e->GetDictEntry()) 00049 { 00050 Copy(e); 00051 } 00052 00056 ContentEntry::~ContentEntry () 00057 { 00058 } 00059 00060 //----------------------------------------------------------------------------- 00061 // Print 00062 00063 //----------------------------------------------------------------------------- 00064 // Public 00065 void ContentEntry::Copy(DocEntry *doc) 00066 { 00067 DocEntry::Copy(doc); 00068 00069 ContentEntry *entry = dynamic_cast<ContentEntry *>(doc); 00070 if(entry) 00071 Value = entry->Value; 00072 } 00073 00074 //----------------------------------------------------------------------------- 00075 // Protected 00076 00077 //----------------------------------------------------------------------------- 00078 // Private 00079 00080 //----------------------------------------------------------------------------- 00081 } // end namespace gdcm 00082