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