]> Creatis software - gdcm.git/blob - src/gdcmDicomDirObject.h
2c70277b489b2a17721d76661cb1dc8a125da209
[gdcm.git] / src / gdcmDicomDirObject.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDicomDirObject.h,v $
5   Language:  C++
6   Date:      $Date: 2005/01/20 11:09:23 $
7   Version:   $Revision: 1.13 $
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 typedef std::list<DicomDirObject *> ListContent;
35 //-----------------------------------------------------------------------------
36 /**
37  * \ingroup DicomDirObject
38  * \brief   Parent object for DicomDirPatient, DicomDirStudy, 
39  *                          DicomDirSerie, DicomDirImage, of a DicomDir
40  */
41 class GDCM_EXPORT DicomDirObject : public SQItem
42 {
43 public:
44    void FillObject(ListDicomDirMetaElem const &elemList);
45
46 protected:
47    // Constructor and destructor are protected to avoid end user to
48    // instanciate from this class. 
49    // NO ! DicomDir needs to instanciate it!
50    DicomDirObject(int depth = 1);
51    ~DicomDirObject();
52 };
53 } // end namespace gdcm
54
55 //-----------------------------------------------------------------------------
56 #endif