X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDataEntry.cxx;h=07603e1b35b44df1b21cbf1ee27db0b15b81fbb9;hb=8fc2d3bff394fba8732199dda6e98fa1f5bfd5d2;hp=fc36ec5666dcf64eeb30580d350c382d17e81519;hpb=3a025a1597f2a8774bc65ff53ce50d83f32dba88;p=gdcm.git diff --git a/src/gdcmDataEntry.cxx b/src/gdcmDataEntry.cxx index fc36ec56..07603e1b 100644 --- a/src/gdcmDataEntry.cxx +++ b/src/gdcmDataEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDataEntry.cxx,v $ Language: C++ - Date: $Date: 2009/02/05 09:50:09 $ - Version: $Revision: 1.55 $ + Date: $Date: 2010/07/09 09:20:20 $ + Version: $Revision: 1.56 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -73,7 +73,7 @@ DataEntry::DataEntry(DocEntry *e) { Flag = FLAG_NONE; BinArea = 0; - + SelfArea = true; Copy(e); @@ -85,7 +85,6 @@ DataEntry::DataEntry(DocEntry *e) DataEntry::~DataEntry () { DeleteBinArea(); - } //----------------------------------------------------------------------------- @@ -137,7 +136,7 @@ void DataEntry::CopyBinArea( uint8_t *area, uint32_t length ) bool DataEntry::IsNumerical() { const VRKey &vr = GetVR(); - + return vr == "DS" || vr == "FL" || @@ -169,9 +168,9 @@ bool DataEntry::IsNumerical() { /// \todo rewrite the whole method, in order *not to use* std::string ! std::vector tokens; - + Util::Tokenize ( GetString().c_str(), tokens, "\\" ); - + int nbValues= tokens.size(); if (nbValues == 0) return false; @@ -182,14 +181,14 @@ bool DataEntry::IsNumerical() else for (loop=0; loop