From a59ed75f701bd4914d6ce1c21f0ec8d4c2e4f65f Mon Sep 17 00:00:00 2001 From: jpr Date: Tue, 22 Nov 2005 12:09:27 +0000 Subject: [PATCH] Last modif on IsVROfStringRepresentable(). *never* more try to look for a quicker way : any rotten value would be considered as OK! --- src/gdcmVR.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/gdcmVR.cxx b/src/gdcmVR.cxx index 6db25da4..3ce163c1 100644 --- a/src/gdcmVR.cxx +++ b/src/gdcmVR.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmVR.cxx,v $ Language: C++ - Date: $Date: 2005/11/21 12:15:06 $ - Version: $Revision: 1.48 $ + Date: $Date: 2005/11/22 12:09:27 $ + Version: $Revision: 1.49 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -108,7 +108,7 @@ bool VR::IsVROfBinaryRepresentable(VRKey const &tested) */ bool VR::IsVROfStringRepresentable(VRKey const &tested) { -/* + return tested == "AE" || tested == "AS" || tested == "CS" || @@ -129,15 +129,17 @@ bool VR::IsVROfStringRepresentable(VRKey const &tested) tested == "UL" || tested == "US" || tested == "UT"; -*/ - // Should be quicker + // Should be quicker + // --> will *never* work : any rotten value would be considered as OK ! +/* return tested != "OB" && tested != "OW" && tested != "OF" && tested != "AT" && // Attribute Tag ?!? contain no printable character tested != "UN" && // UN is an actual VR ! tested != "SQ" ; +*/ } /// \brief returns the length of a elementary elem whose VR is passed unsigned short VR::GetAtomicElementLength(VRKey const &tested) -- 2.48.1