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