)
# add test that require VTK:
IF(GDCM_VTK)
- IF(${VTK_MAJOR_VERSION} LESS 4)
+ IF("${VTK_MAJOR_VERSION}" LESS 4)
MESSAGE(FATAL_ERROR "This VTK version is not supported, you are on your own !")
- ELSE(${VTK_MAJOR_VERSION} LESS 4)
- IF(${VTK_MAJOR_VERSION} EQUAL 4 AND ${VTK_MINOR_VERSION} EQUAL 4 AND ${VTK_BUILD_VERSION} LESS 3)
+ ELSE("${VTK_MAJOR_VERSION}" LESS 4)
+ IF("${VTK_MAJOR_VERSION}" EQUAL 4 AND "${VTK_MINOR_VERSION}" EQUAL 2)
MESSAGE(FATAL_ERROR "This VTK version is not supported, you are on your own !"
"Although gdcm should compile fine. You just need to turn BUILD_TESTING:=OFF")
- ENDIF(${VTK_MAJOR_VERSION} EQUAL 4 AND ${VTK_MINOR_VERSION} EQUAL 4 AND ${VTK_BUILD_VERSION} LESS 3)
+ ENDIF("${VTK_MAJOR_VERSION}" EQUAL 4 AND "${VTK_MINOR_VERSION}" EQUAL 2)
+ IF("${VTK_MAJOR_VERSION}" EQUAL 4 AND "${VTK_MINOR_VERSION}" EQUAL 4 AND "${VTK_BUILD_VERSION}" LESS 3)
+ MESSAGE(FATAL_ERROR "This VTK version is not supported, you are on your own !"
+ "Although gdcm should compile fine. You just need to turn BUILD_TESTING:=OFF")
+ ENDIF("${VTK_MAJOR_VERSION}" EQUAL 4 AND "${VTK_MINOR_VERSION}" EQUAL 4 AND "${VTK_BUILD_VERSION}" LESS 3)
# Include the VTK library since we know this is going to work
INCLUDE(${VTK_USE_FILE})
VTKTestWrite.cxx
VTKTestWriteSeq.cxx
)
- ENDIF(${VTK_MAJOR_VERSION} LESS 4)
+ ENDIF("${VTK_MAJOR_VERSION}" LESS 4)
ENDIF(GDCM_VTK)
ENDIF (GDCM_DATA_ROOT)
Program: gdcm
Module: $RCSfile: gdcmDict.cxx,v $
Language: C++
- Date: $Date: 2005/02/11 15:22:18 $
- Version: $Revision: 1.74 $
+ Date: $Date: 2005/05/11 15:01:47 $
+ Version: $Revision: 1.75 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* @param elem element of the entry to be found
* @return the corresponding dictionary entry when existing, NULL otherwise
*/
+DictEntry *Dict::GetEntry(TagKey const &key)
+{
+ TagKeyHT::iterator it = KeyHt.find(key);
+ if ( it == KeyHt.end() )
+ {
+ return 0;
+ }
+ return &(it->second);
+}
+
DictEntry *Dict::GetEntry(uint16_t group, uint16_t elem)
{
TagKey key = DictEntry::TranslateToKey(group, elem);
Program: gdcm
Module: $RCSfile: gdcmDict.h,v $
Language: C++
- Date: $Date: 2005/02/07 09:51:03 $
- Version: $Revision: 1.38 $
+ Date: $Date: 2005/05/11 15:01:47 $
+ Version: $Revision: 1.39 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// Tag
DictEntry *GetEntry(uint16_t group, uint16_t elem);
+ DictEntry *GetEntry(TagKey const &key);
DictEntry *GetFirstEntry();
DictEntry *GetNextEntry();