X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmVR.cxx;h=3ce163c154a88b9413ad368634f910b7b652db2c;hb=80dc5ecf0d3915f6c2a5505a540ff14957e07cc5;hp=6db25da4f1d7816b44f08449b364cb8933075505;hpb=18d900c80c604c8ac00a69216be3472b4a00ea77;p=gdcm.git 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)