]> Creatis software - gdcm.git/blob - src/gdcmDicomDirObject.h
ENH: Seriously removed warnings
[gdcm.git] / src / gdcmDicomDirObject.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDicomDirObject.h,v $
5   Language:  C++
6   Date:      $Date: 2004/10/07 21:05:40 $
7   Version:   $Revision: 1.3 $
8                                                                                 
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.html for details.
12                                                                                 
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.
16                                                                                 
17 =========================================================================*/
18
19 #ifndef GDCMOBJECT_H
20 #define GDCMOBJECT_H
21
22 #include "gdcmCommon.h"
23 #include "gdcmDocEntry.h"
24 #include "gdcmDocument.h"
25 #include "gdcmDicomDirElement.h"
26 #include "gdcmSQItem.h"
27 #include <string>
28 #include <list>
29
30 //-----------------------------------------------------------------------------
31 class gdcmDicomDirObject;
32 typedef std::list<gdcmDicomDirObject *> ListContent;
33
34 //-----------------------------------------------------------------------------
35 /**
36  * \ingroup gdcmDicomDirObject
37  * \brief   Base object
38  */
39 class GDCM_EXPORT gdcmDicomDirObject : public gdcmSQItem
40 {
41 public:
42
43    gdcmDicomDirObject(TagDocEntryHT *ptagHT, int depth = 0);
44    virtual ~gdcmDicomDirObject();
45    /**
46     * \brief   Sets the print level for the Dicom Header 
47     * \note    0 for Light Print; 1 for 'medium' Print, 2 for Heavy
48     */
49    void SetPrintLevel(int level) { PrintLevel = level; };
50    
51    TagDocEntryHT GetEntry();
52    void FillObject(std::list<gdcmElement> elemList);
53
54 protected:
55
56    // Constructor and destructor are protected to avoid end user to
57    // instanciate from this class. 
58    // NO ! gdcmDicomDir needs to instanciate it!
59
60 // Members :
61    ///\brief detail level to be printed 
62    int PrintLevel;
63 };
64
65 //-----------------------------------------------------------------------------
66 #endif