Program: gdcm
Module: $RCSfile: gdcmDicomDirStudy.h,v $
Language: C++
- Date: $Date: 2005/10/25 14:52:33 $
- Version: $Revision: 1.30 $
+ 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
=========================================================================*/
-#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;
gdcmTypeMacro(DicomDirStudy);
public:
+/// \brief Constructs a DicomDirStudy with a RefCounter
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,bool insideSequence );
// '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();