Program: gdcm
Module: $RCSfile: gdcmElementSet.h,v $
Language: C++
- Date: $Date: 2005/01/20 11:37:37 $
- Version: $Revision: 1.34 $
+ Date: $Date: 2005/01/26 11:42:02 $
+ 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
virtual void Print(std::ostream &os = std::cout, std::string const &indent = "" );
+ void WriteContent(std::ofstream *fp, FileType filetype);
+
+ void ClearEntry();
bool AddEntry(DocEntry *Entry);
bool RemoveEntry(DocEntry *EntryToRemove);
bool RemoveEntryNoDestroy(DocEntry *EntryToRemove);
- void WriteContent(std::ofstream *fp, FileType filetype);
-
DocEntry *GetFirstEntry();
DocEntry *GetNextEntry();
DocEntry *GetDocEntry(uint16_t group, uint16_t elem);
- ValEntry *GetValEntry(uint16_t group, uint16_t elem);
- BinEntry *GetBinEntry(uint16_t group, uint16_t elem);
- SeqEntry *GetSeqEntry(uint16_t group, uint16_t elem);
+
+ bool IsEmpty() { return TagHT.empty(); };
protected:
-
+
private:
// Variables
/// Hash Table (map), to provide fast access
- TagDocEntryHT TagHT;
+ TagDocEntryHT TagHT;
/// Hash Table (map) iterator, used to visit the TagHT variable
TagDocEntryHT::iterator ItTagHT;
-
- friend class Document;
- friend class DicomDir; //For accessing private TagHT
- friend class DocEntryArchive; //For accessing private TagHT
};
} // end namespace gdcm
//-----------------------------------------------------------------------------