X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=src%2FgdcmDataEntry.cxx;h=78f186c59b3f9f45ac7c13143ba78e09a5917367;hb=76ac46b16fd92d0fb444f786d4946424d9029315;hp=fc36ec5666dcf64eeb30580d350c382d17e81519;hpb=8629d8b19caf99c82edfc9985fe5ea1ba862b9fd;p=gdcm.git diff --git a/src/gdcmDataEntry.cxx b/src/gdcmDataEntry.cxx index fc36ec56..78f186c5 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: 2011/03/29 07:36:00 $ + Version: $Revision: 1.57 $ 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