X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirStudy.h;h=4b4d12e6f9a1a993ce2eb7617ec2b8c9a912fc3e;hb=c1a305b54c1a9dd1bfe2173940ba84ccd1b4bb27;hp=17b4bb4463c3969907187f45c2d398de5fcb698e;hpb=66c8b2ef6c096d675afb963778604ed7ae72a78c;p=gdcm.git diff --git a/src/gdcmDicomDirStudy.h b/src/gdcmDicomDirStudy.h index 17b4bb44..4b4d12e6 100644 --- a/src/gdcmDicomDirStudy.h +++ b/src/gdcmDicomDirStudy.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirStudy.h,v $ Language: C++ - Date: $Date: 2007/07/26 08:36:49 $ - Version: $Revision: 1.34 $ + Date: $Date: 2007/08/29 15:30:49 $ + Version: $Revision: 1.37 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,8 +16,8 @@ =========================================================================*/ -#ifndef GDCMDICOMDIRSTUDY_H -#define GDCMDICOMDIRSTUDY_H +#ifndef _GDCMDICOMDIRSTUDY_H_ +#define _GDCMDICOMDIRSTUDY_H_ #include "gdcmDicomDirObject.h" @@ -49,7 +49,7 @@ public: static DicomDirStudy *New(bool empty=false) {return new DicomDirStudy(empty);} void Print(std::ostream &os = std::cout, std::string const &indent = "" ); - void WriteContent(std::ofstream *fp, FileType t, bool insideMetaElements); + void WriteContent(std::ofstream *fp, FileType t, bool insideMetaElements,bool insideSequence ); // 'Serie' methods DicomDirSerie *NewSerie(); @@ -59,7 +59,9 @@ public: DicomDirSerie *GetFirstSerie(); DicomDirSerie *GetNextSerie(); DicomDirSerie *GetLastSerie(); - + /// returns the number of Series currently held in the gdcm::DicomDirStudy + int GetNumberOfSeries() { return Series.size();} + // 'Visit' methods DicomDirVisit *NewVisit(); /// Adds a gdcm::DicomDirVisit to a gdcm::DicomDirStudy @@ -68,7 +70,9 @@ public: DicomDirVisit *GetFirstVisit(); DicomDirVisit *GetNextVisit(); DicomDirVisit *GetLastVisit(); - + /// returns the number of Visit currently held in the gdcm::DicomDirStudy + int GetNumberOfVisits() { return Visits.size();} + // for future use (Full DICOMDIR) /* DicomDirResult *GetFirstResult();