X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocEntrySet.h;h=92f1c492e3ac67f6fa1a7e839e13fa35a931b9a7;hb=5b4a76f5a670626f5ae20714d265b3a50ffa2218;hp=99ce356a693b5fb1428c5b267d68466c2c9b64e0;hpb=1d9ac5cec02b9daa18b16835882b531731b125ad;p=gdcm.git diff --git a/src/gdcmDocEntrySet.h b/src/gdcmDocEntrySet.h index 99ce356a..92f1c492 100644 --- a/src/gdcmDocEntrySet.h +++ b/src/gdcmDocEntrySet.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntrySet.h,v $ Language: C++ - Date: $Date: 2005/10/18 12:58:28 $ - Version: $Revision: 1.58 $ + Date: $Date: 2005/10/25 14:52:34 $ + Version: $Revision: 1.62 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -19,8 +19,9 @@ #ifndef GDCMDOCENTRYSET_H #define GDCMDOCENTRYSET_H -#include "gdcmBase.h" +#include "gdcmRefCounter.h" #include "gdcmVRKey.h" +#include "gdcmTagKey.h" #include @@ -32,8 +33,6 @@ class DataEntry; class SeqEntry; class DictEntry; -typedef TagKey BaseTagKey; - //----------------------------------------------------------------------------- /** * \brief @@ -57,14 +56,11 @@ typedef TagKey BaseTagKey; * members to this class since this class is designed as an adapter * in the form of an abstract base class. */ -class GDCM_EXPORT DocEntrySet : public Base +class GDCM_EXPORT DocEntrySet : public RefCounter { -public: - /// Canonical Constructor - DocEntrySet(); - /// Canonical Destructor - virtual ~DocEntrySet() {} + gdcmTypeMacro(DocEntrySet); +public: /// \brief write any type of entry to the entry set virtual void WriteContent (std::ofstream *fp, FileType filetype) = 0; @@ -74,8 +70,6 @@ public: virtual bool AddEntry(DocEntry *entry) = 0; /// \brief Removes any type of entry out of the entry set, and destroys it virtual bool RemoveEntry(DocEntry *entryToRemove) = 0; - /// \brief Removes any type of entry out of the entry set, DOESN'T destroy it - virtual bool RemoveEntryNoDestroy(DocEntry *entryToRemove) = 0; /// Gets the first entry of any type of set virtual DocEntry *GetFirstEntry()=0; /// Gets the next entry of any type of set @@ -116,13 +110,12 @@ public: VRKey const &vr = GDCM_VRUNKNOWN); SeqEntry *NewSeqEntry(uint16_t group, uint16_t elem); -// DictEntry related utilities - DictEntry *NewVirtualDictEntry(uint16_t group,uint16_t elem, - VRKey const &vr = GDCM_VRUNKNOWN, - TagName const &vm = GDCM_UNKNOWN, - TagName const &name = GDCM_UNKNOWN ); - protected: + /// Canonical Constructor + DocEntrySet(); + /// Canonical Destructor + virtual ~DocEntrySet() {} + // DictEntry related utilities DictEntry *GetDictEntry(uint16_t group, uint16_t elem); DictEntry *GetDictEntry(uint16_t group, uint16_t elem,