1 /*=========================================================================
4 Module: $RCSfile: gdcmDocEntrySet.h,v $
6 Date: $Date: 2004/06/20 18:08:47 $
7 Version: $Revision: 1.10 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
19 #ifndef GDCMDOCENTRYSET_H
20 #define GDCMDOCENTRYSET_H
22 #include "gdcmException.h"
23 #include "gdcmDocEntry.h"
25 //-----------------------------------------------------------------------------
27 class GDCM_EXPORT gdcmDocEntrySet
32 gdcmDocEntrySet(int depth = 0);
33 ~gdcmDocEntrySet(void);
35 /// \brief adds any type of entry to the entry set (pure vitual)
36 virtual bool AddEntry(gdcmDocEntry *Entry) = 0; // pure virtual
38 /// \brief prints any type of entry to the entry set (pure vitual)
39 virtual void Print (std::ostream & os = std::cout) = 0;// pure virtual
41 /// \brief Gets the depth level of a Dicom Header Entry embedded in a
43 inline int GetDepthLevel(void) {return(SQDepthLevel);}
45 /// \brief Sets the depth level of a Dicom Header Entry embedded in a
47 inline void SetDepthLevel(int depth) {SQDepthLevel = depth;}
50 /// \brief Build a new Element Value from all the low level arguments.
51 /// Check for existence of dictionary entry, and build
52 /// a default one when absent (pure virtual)
53 virtual gdcmDocEntry *NewDocEntryByNumber(guint16 group,
54 guint16 element)=0; // pure virtual
56 /// \brief Build a new Element Value from all the low level arguments.
57 /// Check for existence of dictionary entry, and build
58 /// a default one when absent (pure virtual)
59 virtual gdcmDocEntry *NewDocEntryByName (std::string Name)=0;// pure virtual
60 /// Gives the depth level of the element set inside SeQuences
68 //-----------------------------------------------------------------------------