Program: gdcm
Module: $RCSfile: gdcmVR.cxx,v $
Language: C++
- Date: $Date: 2006/07/06 16:57:06 $
- Version: $Revision: 1.50 $
+ Date: $Date: 2006/08/18 16:03:46 $
+ Version: $Revision: 1.52 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
}
from.close();
}
+ char *VRvalues = "AEASCSDADSFLFDISLOLTPNSHSLSSSTTMUIULUSUTOBOWOFATUNSQ";
}
/**
*/
bool VR::IsVROfStringRepresentable(VRKey const &tested)
{
-
return tested == "AE" ||
tested == "AS" ||
tested == "CS" ||
// VS6 need a single implementation in the dll
#if defined(_MSC_VER) && (_MSC_VER == 1200)
/// \brief checks is a supposed-to-be VR is a 'legal' one.
-bool VR::IsValidVR(VRKey const &key)
+bool VR::IsValidVR(VRKey const &tested)
{
- return vr.find(key) != vr.end();
+// return vr.find(key) != vr.end();
+
+ int nbVal=26;
+ char *pt = VRvalues;
+ for (int i=0;i<nbVal;i++)
+ {
+ if(tested[0] == *pt++)
+ if(tested[1] == *pt++)
+ return true;
+ }
+ return false;
+
}
#endif