]> Creatis software - gdcm.git/blob - src/gdcmDicomDirObject.h
* Doc/Website/MailingList.html added (Sidebar.html changed accordingly).
[gdcm.git] / src / gdcmDicomDirObject.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDicomDirObject.h,v $
5   Language:  C++
6   Date:      $Date: 2004/10/13 14:15:29 $
7   Version:   $Revision: 1.5 $
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 //-----------------------------------------------------------------------------
32 class DicomDirObject;
33 typedef std::list<DicomDirObject *> ListContent;
34
35 //-----------------------------------------------------------------------------
36 /**
37  * \ingroup DicomDirObject
38  * \brief   Base object
39  */
40 class GDCM_EXPORT DicomDirObject : public SQItem
41 {
42 public:
43
44    DicomDirObject(TagDocEntryHT *ptagHT, int depth = 0);
45    virtual ~DicomDirObject();
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 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