]> Creatis software - gdcm.git/blobdiff - src/gdcmElementSet.h
ENH: First pass at my big endian emulation on little endian
[gdcm.git] / src / gdcmElementSet.h
index 20b56c53578290a9f5543c1aa791d4ba1cdd7557..a7e9e88b53ce9b7265adf25051079b477c181259 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmElementSet.h,v $
   Language:  C++
-  Date:      $Date: 2005/01/25 15:44:24 $
-  Version:   $Revision: 1.38 $
+  Date:      $Date: 2005/02/07 08:48:18 $
+  Version:   $Revision: 1.43 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -51,16 +51,15 @@ public:
 
    void WriteContent(std::ofstream *fp, FileType filetype); 
 
-   void ClearEntry();
    bool AddEntry(DocEntry *Entry);
    bool RemoveEntry(DocEntry *EntryToRemove);
    bool RemoveEntryNoDestroy(DocEntry *EntryToRemove);
+   void ClearEntry();
    
    DocEntry *GetFirstEntry();
    DocEntry *GetNextEntry();
-
    DocEntry *GetDocEntry(uint16_t group, uint16_t elem);
-
+   /// Tells us if the ElementSet contains no entry
    bool IsEmpty() { return TagHT.empty(); };
 
 protected:
@@ -68,12 +67,11 @@ protected:
 private:
 // Variables
    /// Hash Table (map), to provide fast access
-   TagDocEntryHT TagHT; 
-   /// Hash Table (map) iterator, used to visit the TagHT variable
-   TagDocEntryHT::iterator ItTagHT; 
-     
-   friend class DicomDir;        //For accessing private TagHT
-   friend class DocEntryArchive; //For accessing private TagHT
+   TagDocEntryHT TagHT;
+   /// iterator, used to visit the TagHT variable
+   TagDocEntryHT::iterator ItTagHT;
+   /// iterator, used to visit the TagHT variable, seeking only for ValEntries
+   TagDocEntryHT::iterator ItValEntryTagHT;
 };
 } // end namespace gdcm
 //-----------------------------------------------------------------------------