]> Creatis software - gdcm.git/blobdiff - src/gdcmDictSet.cxx
Deal with NOSHADOWSEQ option
[gdcm.git] / src / gdcmDictSet.cxx
index b7c522efd8a795497c370b7b638c46540ddf016b..646d3374ab2e0dd3c7c9c3373ff0fbbe13c6d467 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDictSet.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/06/14 14:00:04 $
-  Version:   $Revision: 1.63 $
+  Date:      $Date: 2005/06/24 10:55:58 $
+  Version:   $Revision: 1.65 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -20,6 +20,7 @@
 #include "gdcmDebug.h"
 #include <fstream>
 #include <stdlib.h>  // For getenv
+#include <stdio.h>   // For sprintf
 
 namespace gdcm 
 {
@@ -87,7 +88,7 @@ Dict *DictSet::LoadDictFromFile(std::string const &filename,
 Dict *DictSet::GetDict(DictKey const &dictName) 
 {
    DictSetHT::iterator dict = Dicts.find(dictName);
-   if(dict != Dicts.end())
+   if ( dict != Dicts.end() )
    {
       return dict->second;
    }
@@ -123,7 +124,7 @@ DictEntry *DictSet::NewVirtualDictEntry( uint16_t group,
    TagKeyHT::iterator it;
    
    it = VirtualEntries.find(tag);
-   if(it != VirtualEntries.end())
+   if ( it != VirtualEntries.end() )
    {
       entry = &(it->second);
    }
@@ -145,7 +146,7 @@ DictEntry *DictSet::NewVirtualDictEntry( uint16_t group,
 Dict *DictSet::GetFirstEntry()
 {
    ItDictHt = Dicts.begin();
-   if( ItDictHt != Dicts.end() )
+   if ( ItDictHt != Dicts.end() )
       return ItDictHt->second;
    return NULL;
 }