X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirSerie.h;h=13065eb476200cff5cf9102d692955ce62ef94e2;hb=f2dd0107ba49eda3386b34715cdc0c046d12397f;hp=e2fa2e8fcfeb34360673cb517a08b5beb17ee19a;hpb=66c8b2ef6c096d675afb963778604ed7ae72a78c;p=gdcm.git diff --git a/src/gdcmDicomDirSerie.h b/src/gdcmDicomDirSerie.h index e2fa2e8f..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/07/26 08:36:49 $ - Version: $Revision: 1.35 $ + 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,8 +16,8 @@ =========================================================================*/ -#ifndef GDCMDICOMDIRSERIE_H -#define GDCMDICOMDIRSERIE_H +#ifndef _GDCMDICOMDIRSERIE_H_ +#define _GDCMDICOMDIRSERIE_H_ #include "gdcmDicomDirObject.h" @@ -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, bool insideMetaElements ); + 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);