/*============================================================================ MetaIO Copyright 2000-2010 Insight Software Consortium Distributed under the OSI-approved BSD License (the "License"); see accompanying file Copyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License for more information. ============================================================================*/ #include #ifdef _MSC_VER #pragma warning(disable:4702) #pragma warning(disable:4996) #endif #include "metaImageUtils.h" #include #if (METAIO_USE_NAMESPACE) namespace METAIO_NAMESPACE { #endif bool MET_StringToImageModality(const char * _str, MET_ImageModalityEnumType * _type) { int i; for(i=0; i