From ab3dc69a71af640fa49cbd917272d9ff7d1651b6 Mon Sep 17 00:00:00 2001 From: jpr Date: Wed, 26 Jan 2005 14:56:38 +0000 Subject: [PATCH] * remove ContentEntry::Write() code, yet the method is 'pure virtual' (coverage will be better ;-) --- src/gdcmContentEntry.cxx | 58 ++-------------------------------------- 1 file changed, 2 insertions(+), 56 deletions(-) diff --git a/src/gdcmContentEntry.cxx b/src/gdcmContentEntry.cxx index 84794b41..3afeb1a3 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 10:29:16 $ - Version: $Revision: 1.4 $ + Date: $Date: 2005/01/26 14:56:38 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -59,60 +59,6 @@ ContentEntry::~ContentEntry () //----------------------------------------------------------------------------- // Public -/** - * \brief Writes the 'std::string representable' value of a ContentEntry - * @param fp already open ofstream pointer - * @param filetype type of the file (ACR, ImplicitVR, ExplicitVR, ...) - */ -void ContentEntry::WriteContent(std::ofstream *fp, FileType filetype) -{ - DocEntry::WriteContent(fp, filetype); - - if ( GetGroup() == 0xfffe ) - { - return; //delimitors have NO value - } - - const VRKey &vr = GetVR(); - unsigned int lgr = GetLength(); - if (vr == "US" || vr == "SS") - { - // some 'Short integer' fields may be multivaluated - // each single value is separated from the next one by '\' - // we split the string and write each value as a short int - std::vector tokens; - tokens.erase(tokens.begin(),tokens.end()); // clean any previous value - Util::Tokenize (GetValue(), tokens, "\\"); - for (unsigned int i=0; i tokens; - tokens.erase(tokens.begin(),tokens.end()); // clean any previous value - Util::Tokenize (GetValue(), tokens, "\\"); - for (unsigned int i=0; i