]> Creatis software - gdcm.git/blobdiff - src/gdcmDocEntrySet.h
* src/gdcmCommon.h : add the GDCM_UNKNOWN constant. This constant is to
[gdcm.git] / src / gdcmDocEntrySet.h
index b1465abbe5a14cfceba179a1103a68626083179b..0cf434ff677ff61ec6d974da1c662266c34091b8 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntrySet.h,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 20:43:37 $
-  Version:   $Revision: 1.26 $
+  Date:      $Date: 2005/01/05 15:38:28 $
+  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
@@ -19,6 +19,7 @@
 #ifndef GDCMDOCENTRYSET_H
 #define GDCMDOCENTRYSET_H
 
+#include "gdcmBase.h"
 #include "gdcmException.h"
 #include <fstream>
 
@@ -54,7 +55,7 @@ typedef std::string 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
+class GDCM_EXPORT DocEntrySet : public Base
 {
 friend class File;
 public:
@@ -63,9 +64,8 @@ public:
 
    /// \brief adds any type of entry to the entry set (pure vitual)
    virtual bool AddEntry(DocEntry *Entry) = 0; // pure virtual
-   /// \brief prints any type of entry to the entry set (pure vitual)
-   virtual void Print (std::ostream & os = std::cout) = 0;// pure virtual
+   virtual bool RemoveEntry(DocEntry *EntryToRemove)=0; // pure virtual
+   virtual bool RemoveEntryNoDestroy(DocEntry *EntryToRemove)=0; // pure virtual
 
    /// \brief write any type of entry to the entry set
    virtual void WriteContent (std::ofstream *fp, FileType filetype) = 0;// pure virtual
@@ -77,12 +77,11 @@ public:
    std::string GetEntryByName(TagName const & name);
    DictEntry* NewVirtualDictEntry( uint16_t group, 
                                    uint16_t element,
-                                   TagName const & vr     = "unkn",
-                                   TagName const & fourth = "unkn",
-                                   TagName const & name   = "unkn" );
+                                   TagName const & vr     = GDCM_UNKNOWN,
+                                   TagName const & fourth = GDCM_UNKNOWN,
+                                   TagName const & name   = GDCM_UNKNOWN );
   
 protected:
-
 // DocEntry  related utilities 
    ValEntry* NewValEntryByNumber(uint16_t group, 
                                  uint16_t element);
@@ -100,7 +99,6 @@ protected:
 // DictEntry  related utilities
    DictEntry *GetDictEntryByName  (TagName const & name);
    DictEntry *GetDictEntryByNumber(uint16_t, uint16_t);
-
 };
 
 } // end namespace gdcm