Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

gdcmDicomDirPatient.h

Go to the documentation of this file.
00001 /*=========================================================================
00002                                                                                 
00003   Program:   gdcm
00004   Module:    $RCSfile: gdcmDicomDirPatient.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/02/07 14:48:34 $
00007   Version:   $Revision: 1.26 $
00008                                                                                 
00009   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
00010   l'Image). All rights reserved. See Doc/License.txt or
00011   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
00012                                                                                 
00013      This software is distributed WITHOUT ANY WARRANTY; without even
00014      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00015      PURPOSE.  See the above copyright notices for more information.
00016                                                                                 
00017 =========================================================================*/
00018 
00019 #ifndef GDCMPATIENT_H
00020 #define GDCMPATIENT_H
00021 
00022 #include "gdcmDicomDirObject.h"
00023 
00024 namespace gdcm 
00025 {
00026 class DicomDirStudy;
00027 
00028 //-----------------------------------------------------------------------------
00029 typedef std::list<DicomDirStudy*> ListDicomDirStudy;
00030 
00031 //-----------------------------------------------------------------------------
00036 class GDCM_EXPORT DicomDirPatient : public DicomDirObject 
00037 {
00038 public:
00039    DicomDirPatient(bool empty=false); 
00040    ~DicomDirPatient();
00041 
00042    void Print(std::ostream &os = std::cout, std::string const &indent = "" );
00043    void WriteContent(std::ofstream *fp, FileType t);
00044   
00045    // Patient methods
00047    void AddStudy(DicomDirStudy *obj) { Studies.push_back(obj); };
00048    DicomDirStudy *NewStudy(); 
00049    void ClearStudy();
00050 
00051    DicomDirStudy *GetFirstStudy();
00052    DicomDirStudy *GetNextStudy();
00053    DicomDirStudy *GetLastStudy();
00054 
00055 private:
00056 
00058    ListDicomDirStudy Studies;
00060    ListDicomDirStudy::iterator ItStudy;
00061 };
00062 } // end namespace gdcm
00063 
00064 //-----------------------------------------------------------------------------
00065 #endif

Generated on Thu Feb 10 22:17:57 2005 for gdcm by doxygen 1.3.6