X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirSerie.h;h=13065eb476200cff5cf9102d692955ce62ef94e2;hb=56ad78cdf3b5de32f0a94a38cd32ddc9f403ffc3;hp=ddbc51af4de9cd573b0b2615391d1c0550286552;hpb=2410af81c71712957890eb38d9ecacc77adcd72e;p=gdcm.git diff --git a/src/gdcmDicomDirSerie.h b/src/gdcmDicomDirSerie.h index ddbc51af..13065eb4 100644 --- a/src/gdcmDicomDirSerie.h +++ b/src/gdcmDicomDirSerie.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirSerie.h,v $ Language: C++ - Date: $Date: 2007/03/23 15:30:15 $ - Version: $Revision: 1.33 $ + Date: $Date: 2007/08/29 15:30:49 $ + Version: $Revision: 1.38 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,12 +16,12 @@ =========================================================================*/ -#ifndef GDCMDICOMDIRSERIE_H -#define GDCMDICOMDIRSERIE_H +#ifndef _GDCMDICOMDIRSERIE_H_ +#define _GDCMDICOMDIRSERIE_H_ #include "gdcmDicomDirObject.h" -namespace gdcm +namespace GDCM_NAME_SPACE { class DicomDirImage; class DicomDirPrivate; @@ -43,7 +43,8 @@ public: static DicomDirSerie *New(bool empty=false) {return new DicomDirSerie(empty);} void Print( std::ostream &os = std::cout, std::string const &indent = "" ); - void WriteContent( std::ofstream *fp, FileType t ); + void WriteContent( std::ofstream *fp, FileType t, bool insideMetaElements, + bool insideSequence ); // 'Image' methods DicomDirImage *NewImage(); @@ -53,7 +54,9 @@ public: DicomDirImage *GetFirstImage(); DicomDirImage *GetNextImage(); - + /// returns the number of Images currently held in the gdcm::DicomDirSerie + int GetNumberOfImages() { return Images.size();} + // 'Private' methods (For SIEMENS 'CSA non image') DicomDirPrivate *NewPrivate(); /// Add a new gdcm::DicomDirPrivate to the Serie @@ -62,7 +65,8 @@ public: DicomDirPrivate *GetFirstPrivate(); DicomDirPrivate *GetNextPrivate(); - + /// returns the number of 'Privates' currently held in the gdcm::DicomDirSerie + int GetNumberOfPrivates() { return Privates.size();} virtual void Copy(DocEntrySet *set);