Program: gdcm
Module: $RCSfile: gdcmDicomDirStudy.h,v $
Language: C++
- Date: $Date: 2005/11/21 09:46:25 $
- Version: $Revision: 1.31 $
+ Date: $Date: 2007/08/22 16:14:03 $
+ Version: $Revision: 1.36 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
=========================================================================*/
-#ifndef GDCMDICOMDIRSTUDY_H
-#define GDCMDICOMDIRSTUDY_H
+#ifndef _GDCMDICOMDIRSTUDY_H_
+#define _GDCMDICOMDIRSTUDY_H_
#include "gdcmDicomDirObject.h"
-namespace gdcm
+namespace GDCM_NAME_SPACE
{
class DicomDirSerie;
class DicomDirVisit;
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);
+ void WriteContent(std::ofstream *fp, FileType t, bool insideMetaElements);
// 'Serie' methods
DicomDirSerie *NewSerie();
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
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();
DicomDirStudyComponent *GetLastStudyComponent();
*/
+ virtual void Copy(DocEntrySet *set);
+
protected:
DicomDirStudy(bool empty=false);
~DicomDirStudy();