]> Creatis software - gdcm.git/commitdiff
* src/gdcmDocument.[h|cxx] : comment all methods concerning a flat hash
authorregrain <regrain>
Fri, 14 Jan 2005 11:28:28 +0000 (11:28 +0000)
committerregrain <regrain>
Fri, 14 Jan 2005 11:28:28 +0000 (11:28 +0000)
     table.
   * src/gdcmElementSet.[h|cxx] : rename Initialize into InitTraversal
   * src/gdcmDict.[h|cxx] : add InitTraversal/getNextEntry methods to parse
     all the dict content.
   * src/gdcmDictEntry.cxx : add a carriage return at the end of the DictEntry
     print
   * Test/TestDict.cxx : add a new test for the dict classes
   -- BeNours

16 files changed:
ChangeLog
Example/FlatHashTablePrint.cxx
Example/TestCopyDicom.cxx
Example/TestFromScratch.cxx
Testing/CMakeLists.txt
Testing/TestCopyDicom.cxx
Testing/TestCopyRescaleDicom.cxx
Testing/TestDict.cxx [new file with mode: 0644]
gdcmPython/demo/PrintDict.py.in
src/gdcmDict.cxx
src/gdcmDict.h
src/gdcmDictEntry.cxx
src/gdcmDocument.cxx
src/gdcmDocument.h
src/gdcmElementSet.cxx
src/gdcmElementSet.h

index 3854200e07b6e4c843462c484b028c35366fae79..2d27c58a165eb7dc599426f70c908d7d83d51143 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2005-01-14 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
+   * src/gdcmDocument.[h|cxx] : comment all methods concerning a flat hash
+     table.
+   * src/gdcmElementSet.[h|cxx] : rename Initialize into InitTraversal
+   * src/gdcmDict.[h|cxx] : add InitTraversal/getNextEntry methods to parse
+     all the dict content.
+   * src/gdcmDictEntry.cxx : add a carriage return at the end of the DictEntry
+     print
+   * Test/TestDict.cxx : add a new test for the dict classes
+
 2005-01-13 Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
    * src/gdcmDebug.h : Adding an option to redirect debug stream to a 
                        file. Debug is yanked if compiled with NDEBUG
index 9403d02d1c286c294bc09c078225160991dee5c4..8fc200755e6d66231efce91c3791498aad63acd1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: FlatHashTablePrint.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 20:16:55 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2005/01/14 11:28:28 $
+  Version:   $Revision: 1.6 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -24,7 +24,7 @@
 
 int main(int argc, char* argv[])
 {
-   if (argc < 2)
+/*   if (argc < 2)
    {
       std::cerr << "Usage :" << std::endl << 
       argv[0] << " input_dicom " << std::endl;
@@ -38,7 +38,8 @@ int main(int argc, char* argv[])
    {
       tag->second->Print(); 
       std::cout << std::endl;
-   }
+   }*/
+   std::cout<<"Usefull example ???\n";
 
    return 0;
 }
index 84b1b5e64725496076278e721dae70853f8628c7..bc1313cf552297f83edb101e3800fc312da2ace9 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestCopyDicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/08 15:03:57 $
-  Version:   $Revision: 1.15 $
+  Date:      $Date: 2005/01/14 11:28:28 $
+  Version:   $Revision: 1.16 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -87,8 +87,6 @@ int main(int argc, char* argv[])
    
       gdcm::File *copy = new gdcm::File( output );
 
-      const gdcm::TagDocEntryHT & Ht = original->GetHeader()->GetTagHT();
-
       size_t dataSize = original->GetImageDataSize();
       uint8_t* imageData = original->GetImageData();
       (void)imageData;
@@ -101,12 +99,10 @@ int main(int argc, char* argv[])
       // (the user does NOT have to know the way we implemented the Header !)
       // Waiting for a 'clean' solution, I keep the method ...JPRx
 
-      gdcm::DocEntry* d;
-
-      for (gdcm::TagDocEntryHT::const_iterator tag = Ht.begin(); tag != Ht.end(); ++tag)
+      original->GetHeader()->InitTraversal();
+      gdcm::DocEntry* d=original->GetHeader()->GetNextEntry();
+      while(d)
       {
-         d = tag->second;
-         d->Print(); std::cout << std::endl;
          if ( gdcm::BinEntry* b = dynamic_cast<gdcm::BinEntry*>(d) )
          {              
             copy->GetHeader()->ReplaceOrCreate( 
@@ -132,11 +128,9 @@ int main(int argc, char* argv[])
           //          << d->GetGroup() << " " << d->GetElement()
           //  << std::endl;    
          }
-      }
-
-
-
 
+         d=original->GetHeader()->GetNextEntry();
+      }
 
       //copy->GetImageData();
       //copy->SetImageData(imageData, dataSize);
index 11589526eb8f5abf7703d49b06adee4ef8e69095..e9760b86cc997558a3f98b031c05b72e0af57d64 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestFromScratch.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/08 15:03:57 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2005/01/14 11:28:28 $
+  Version:   $Revision: 1.8 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -54,10 +54,9 @@ int main(int argc, char *argv[])
    // Hopefully default to something
    gdcm::Header *h2 = new gdcm::Header();
 
-   h1->Initialize();
-   gdcm::DocEntry* d = h1->GetNextEntry();
-
    // Copy of the header content
+   h1->InitTraversal();
+   gdcm::DocEntry* d = h1->GetNextEntry();
    while(d)
    {
       if ( gdcm::ValEntry* v = dynamic_cast<gdcm::ValEntry*>(d) )
index 1438a9b2f76a515d8bc71e0be7adc5cdab21da9b..125cf5acc1fbcce1dc0aeb190188a117d01f206f 100644 (file)
@@ -14,6 +14,7 @@ SET(TEST_SOURCES
   TestVR.cxx
   TestUtil.cxx
   TestDicomString.cxx
+  TestDict.cxx
 )
 
 # add tests that require data
@@ -24,12 +25,12 @@ IF (GDCM_DATA_ROOT)
     TestAllReadCompareDicom.cxx      # includes generated gdcmDataImages.h
     TestAllEntryVerify.cxx           # includes generated gdcmDataImages.h
     #TestChangeHeader.cxx
-    TestDicomDir.cxx                 # require DICOMDIR
-    BuildUpDicomDir.cxx              # writes a file named "NewDICOMDIR"
-    makeDicomDir.cxx                 # writes a file named "NewDICOMDIR"
     TestCopyDicom.cxx
     TestCopyRescaleDicom.cxx
     TestWriteSimple.cxx
+    TestDicomDir.cxx                 # require DICOMDIR
+    BuildUpDicomDir.cxx              # writes a file named "NewDICOMDIR"
+    makeDicomDir.cxx                 # writes a file named "NewDICOMDIR"
   )
   # add test that require VTK:
   IF(GDCM_VTK)
index 45588b36b31aaa7fa1f763624efad9c10e21d170..af7f4d45e46005e8358e9970056c1b83d949cc5c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestCopyDicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/08 15:03:58 $
-  Version:   $Revision: 1.28 $
+  Date:      $Date: 2005/01/14 11:28:29 $
+  Version:   $Revision: 1.29 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -85,9 +85,8 @@ int CopyDicom(std::string const & filename,
 
       //////////////// Step 2:
       std::cout << "2...";
-      originalH->Initialize();
+      originalH->InitTraversal();
       gdcm::DocEntry* d=originalH->GetNextEntry();
-
       while(d)
       {
          if ( gdcm::BinEntry* b = dynamic_cast<gdcm::BinEntry*>(d) )
index aa1ed72cd3f43dfb53fd28f246c42d55b9fc9ca5..975d91c8742ab1c2509e4f921db442976191ab9b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestCopyRescaleDicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/08 15:03:58 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2005/01/14 11:28:29 $
+  Version:   $Revision: 1.5 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -56,10 +56,9 @@ int CopyRescaleDicom(std::string const & filename,
 
    //////////////// Step 2:
    std::cout << "2...";
-   originalH->Initialize();
-   gdcm::DocEntry* d = originalH->GetNextEntry();
-
    // Copy of the header content
+   originalH->InitTraversal();
+   gdcm::DocEntry* d = originalH->GetNextEntry();
    while(d)
    {
       if ( gdcm::BinEntry* b = dynamic_cast<gdcm::BinEntry*>(d) )
diff --git a/Testing/TestDict.cxx b/Testing/TestDict.cxx
new file mode 100644 (file)
index 0000000..cd0601e
--- /dev/null
@@ -0,0 +1,75 @@
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: TestDict.cxx,v $
+  Language:  C++
+  Date:      $Date: 2005/01/14 11:28:29 $
+  Version:   $Revision: 1.1 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
+#include "gdcmGlobal.h"
+#include "gdcmDictSet.h"
+#include "gdcmDict.h"
+#include "gdcmDictEntry.h"
+
+#include <iostream>
+#include <iomanip>
+
+int TestDict(int argc, char* argv[])
+{  
+   // Print the DictSet
+   std::cout<<"#######################################################\n";
+   gdcm::DictSet *dicts=gdcm::Global::GetDicts();
+   if(!dicts)
+   {
+      std::cout<<"The DictSet hasn't be found... Failed\n";
+      return(1);
+   }
+   std::cout<<"DictSet content :\n";
+//   dicts->Print(std::cout);
+
+   // Print the Dict (public)
+   std::cout<<"#######################################################\n";
+   gdcm::Dict *pubDict=dicts->GetDefaultPubDict();
+   if(!pubDict)
+   {
+      std::cout<<"The public Dict hasn't be found... Failed\n";
+      return(1);
+   }
+   std::cout<<"Public Dict content :\n";
+//   pubDict->Print(std::cout);
+
+   // Print the DictEntry (0x10,0x20)
+   std::cout<<"#######################################################\n";
+   const int ENTRY_GR = 0x10;
+   const int ENTRY_EL = 0x20;
+   std::string key=gdcm::DictEntry::TranslateToKey(ENTRY_GR,ENTRY_EL);
+   gdcm::DictEntry *entry=pubDict->GetDictEntry(ENTRY_GR,ENTRY_EL);
+   if(!entry)
+   {
+      std::cout<<"The DictEntry hasn't be found... Failed\n";
+      return(1);
+   }
+   std::cout<<"Entry "<<key<<" content :\n";
+   entry->Print(std::cout);
+
+   // Print all the DictEntry
+   std::cout<<"#######################################################\n";
+   pubDict->InitTraversal();
+   entry=pubDict->GetNextEntry();
+   while(entry)
+   {
+      entry->Print(std::cout);
+      entry=pubDict->GetNextEntry();
+   }
+
+   return(0);
+}
index 4a1eb84ac5f27f026938842164118d4faf7ea82e..8adbdd9d1ca1689b555706142f33742215a7492a 100644 (file)
@@ -37,13 +37,12 @@ if(not isinstance(entry,gdcm.DictEntry)):
 print "Entry (%04x|%04x) content :" % (ENTRY_GR,ENTRY_EL)
 entry.Print()
 
-# Print the DictEntry (0010|0010)
-ENTRY_GR = 0x10
-ENTRY_EL = 0x10
-entry=pubDict.GetDictEntry(ENTRY_GR,ENTRY_EL)
-if(not isinstance(entry,gdcm.DictEntry)):
-       raise RuntimeError,"The entry (%04x|%04x) hasn't the good type (%s)" % \
-             (ENTRY_GR,ENTRY_EL,type(entry))
-print "Entry (%04x|%04x) content :" % (ENTRY_GR,ENTRY_EL)
-entry.Print()
+print "#####################################################################"
+# Print the public Dict content
+print "dict content :"
+pubDict.InitTraversal()
+entry=pubDict.GetNextEntry()
+while(entry):
+       entry.Print()
+       entry=pubDict.GetNextEntry()
 
index 9c3235c78aecf84bf549034b05653de9058ba1d6..027ce31a3653d6d097ad19863e5eb863c166d62b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDict.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/12 15:23:44 $
-  Version:   $Revision: 1.62 $
+  Date:      $Date: 2005/01/14 11:28:30 $
+  Version:   $Revision: 1.63 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -29,6 +29,14 @@ namespace gdcm
 void FillDefaultDataDict(Dict *d);
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
+/**
+ * \brief   Constructor
+ */
+Dict::Dict(void)
+{
+   Filename="";
+}
+
 /**
  * \brief   Constructor
  * @param   filename from which to build the dictionary.
@@ -74,9 +82,7 @@ Dict::Dict(std::string const &filename)
  */
 Dict::~Dict()
 {
-   // we assume all the pointed DictEntries are already cleaned-up
-   // when we clean KeyHt.
-   KeyHt.clear();
+   ClearEntry();
 }
 
 //-----------------------------------------------------------------------------
@@ -107,6 +113,17 @@ void Dict::Print(std::ostream &os)
 
 //-----------------------------------------------------------------------------
 // Public
+/**
+ * \ingroup Dict
+ * \brief   Remove all Dicom Dictionary Entries
+ */
+void Dict::ClearEntry()
+{
+   // we assume all the pointed DictEntries are already cleaned-up
+   // when we clean KeyHt.
+   KeyHt.clear();
+}
+
 /**
  * \ingroup Dict
  * \brief  adds a new Dicom Dictionary Entry 
@@ -257,6 +274,33 @@ DictEntry *Dict::GetDictEntry(uint16_t group, uint16_t elem)
 //   return result;
 //}
 
+/**
+ * \brief   Initialise the visit of the Hash table (KeyHt)
+ */
+void Dict::InitTraversal()
+{
+   ItKeyHt = KeyHt.begin();
+}
+
+/**
+ * \brief   Get the next entry whil visiting the Hash table (KeyHt)
+ * \return  The next DictEntry if found, otherwhise NULL
+ */
+DictEntry *Dict::GetNextEntry()
+{
+   if (ItKeyHt != KeyHt.end())
+   {
+      DictEntry *tmp = &(ItKeyHt->second);
+      ++ItKeyHt;
+
+      return tmp;
+   }
+   else
+   {
+      return NULL;
+   }
+}
+
 //-----------------------------------------------------------------------------
 // Protected
 
index ab0b99efc20f93a8a43261a8bc972c7855cb0b2a..ca31531e5e1687c1dbdf6b946205899386724625 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDict.h,v $
   Language:  C++
-  Date:      $Date: 2005/01/11 15:15:38 $
-  Version:   $Revision: 1.30 $
+  Date:      $Date: 2005/01/14 11:28:30 $
+  Version:   $Revision: 1.31 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -49,6 +49,7 @@ typedef std::map<std::string,
 class GDCM_EXPORT Dict : public Base
 {
 public:
+   Dict(void);
    Dict(std::string const & filename);
    ~Dict();
 
@@ -56,6 +57,7 @@ public:
    void Print(std::ostream &os = std::cout);
 
 // Entries
+   void ClearEntry  ();
    bool AddNewEntry (DictEntry const &newEntry);
    bool ReplaceEntry(DictEntry const &newEntry);
    bool RemoveEntry (TagKey const &key);
@@ -69,18 +71,18 @@ public:
 
    /// \brief  Returns a ref to the Dicom Dictionary H table (map)
    /// @return the Dicom Dictionary H table
-   const TagKeyHT & GetEntriesByKey() const { return KeyHt; }
+   //const TagKeyHT & GetEntries() const { return KeyHt; }
+
+   void InitTraversal();
+   DictEntry *GetNextEntry();
 
-   /// \brief  Returns a ref to the Dicom Dictionary H table (map)
-   /// @return the Dicom Dictionary H table
 private:
    /// ASCII file holding the Dictionnary
    std::string Filename;
 
    /// Access through TagKey
-   TagKeyHT  KeyHt;
-
+   TagKeyHT KeyHt;
+   TagKeyHT::iterator ItKeyHt;
 };
 } // end namespace gdcm
 
index a4bb7060bcdb5a1a0c98042ccc1392e6abb2a88e..615708c4c80dbb850e7e2b8c0e9d99c1c5341c90 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDictEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/13 16:35:37 $
-  Version:   $Revision: 1.39 $
+  Date:      $Date: 2005/01/14 11:28:30 $
+  Version:   $Revision: 1.40 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -71,7 +71,7 @@ void DictEntry::Print(std::ostream &os)
    }
 
    s << "[" << GetName()<< "]";
-   os << s.str();
+   os << s.str() << std::endl;
 }
 
 //-----------------------------------------------------------------------------
index 1543981db19d37cd41083bd639b75620da689dd6..5e4ae3724af2788c5e8c5d2c08b032f741018fb2 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/13 12:19:58 $
-  Version:   $Revision: 1.189 $
+  Date:      $Date: 2005/01/14 11:28:30 $
+  Version:   $Revision: 1.190 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -2796,7 +2796,7 @@ void Document::ComputeJPEGFragmentInfo()
  *        when recursively walking the given set.
  * @param set The structure to be traversed (recursively).
  */
-void Document::BuildFlatHashTableRecurse( TagDocEntryHT &builtHT,
+/*void Document::BuildFlatHashTableRecurse( TagDocEntryHT &builtHT,
                                           DocEntrySet *set )
 { 
    if (ElementSet *elementSet = dynamic_cast< ElementSet* > ( set ) )
@@ -2846,7 +2846,7 @@ void Document::BuildFlatHashTableRecurse( TagDocEntryHT &builtHT,
       }
 
    }
-}
+}*/
 
 /**
  * \brief Build a \ref TagDocEntryHT (i.e. a std::map<>) from the current
@@ -2871,12 +2871,12 @@ void Document::BuildFlatHashTableRecurse( TagDocEntryHT &builtHT,
  *        \ref BuildFlatHashTable again...
  * @return The flat std::map<> we juste build.
  */
-TagDocEntryHT *Document::BuildFlatHashTable()
+/*TagDocEntryHT *Document::BuildFlatHashTable()
 {
    TagDocEntryHT *FlatHT = new TagDocEntryHT;
    BuildFlatHashTableRecurse( *FlatHT, this );
    return FlatHT;
-}
+}*/
 
 
 
@@ -2961,7 +2961,7 @@ int Document::ComputeGroup0002Length( FileType filetype )
    // for each zero-level Tag in the DCM Header
    DocEntry *entry;
 
-   Initialize();
+   InitTraversal();
    entry = GetNextEntry();
    while(entry)
    {
index 0a74dcf478119edf2ecf9499beae90015d364142..7a9a2bf3bf33d09ef12d89147171d9645406933f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.h,v $
   Language:  C++
-  Date:      $Date: 2005/01/13 09:23:27 $
-  Version:   $Revision: 1.86 $
+  Date:      $Date: 2005/01/14 11:28:30 $
+  Version:   $Revision: 1.87 $
  
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -120,7 +120,7 @@ public:
    virtual void LoadEntryBinArea(BinEntry *entry);
 
    void LoadDocEntrySafe(DocEntry *entry);
-   TagDocEntryHT *BuildFlatHashTable();
+   /*TagDocEntryHT *BuildFlatHashTable();*/
 
    /// Return the Transfer Syntax as a string
    std::string GetTransferSyntaxName();
@@ -230,8 +230,8 @@ private:
    DocEntry *ReadNextDocEntry();
 
    uint32_t GenerateFreeTagKeyInGroup(uint16_t group);
-   void BuildFlatHashTableRecurse( TagDocEntryHT &builtHT,
-                                   DocEntrySet* set );
+/*   void BuildFlatHashTableRecurse( TagDocEntryHT &builtHT,
+                                   DocEntrySet* set );*/
 
    void HandleBrokenEndian(uint16_t &group, uint16_t &elem);
    void HandleOutOfGroup0002(uint16_t &group, uint16_t &elem);
index dade9a061cfea8cd34aaa9d72212676560a977b3..397e4e1b2424a06075df24038e4135e913e3e69e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmElementSet.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/11 00:21:48 $
-  Version:   $Revision: 1.40 $
+  Date:      $Date: 2005/01/14 11:28:30 $
+  Version:   $Revision: 1.41 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -165,7 +165,7 @@ bool ElementSet::RemoveEntryNoDestroy(DocEntry *entryToRemove)
 /**
  * \brief   Initialise the visit of the Hash table (TagHT)
  */
-void ElementSet::Initialize()
+void ElementSet::InitTraversal()
 {
    ItTagHT = TagHT.begin();
 }
index cfc921bd52a70c28479459d12b7c1f295afc7fe9..fff8f72375867ee5bd16406fb0e6cf855832dc05 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmElementSet.h,v $
   Language:  C++
-  Date:      $Date: 2005/01/11 15:15:38 $
-  Version:   $Revision: 1.29 $
+  Date:      $Date: 2005/01/14 11:28:31 $
+  Version:   $Revision: 1.30 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -58,9 +58,9 @@ public:
    /// Accessor to \ref TagHT
    // Do not expose this to user (public API) ! 
    // A test is using it thus put it in public (matt)
-   TagDocEntryHT const &GetTagHT() const { return TagHT; };
+   //TagDocEntryHT const &GetTagHT() const { return TagHT; };
 
-   void Initialize();
+   void InitTraversal();
    DocEntry *GetNextEntry();
 
 protected: