Program: gdcm
Module: $RCSfile: gdcmDicomDirStudy.cxx,v $
Language: C++
- Date: $Date: 2005/07/08 19:07:12 $
- Version: $Revision: 1.38 $
+ Date: $Date: 2005/07/11 08:20:25 $
+ Version: $Revision: 1.40 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
(*cc)->WriteContent( fp, t );
}
- for(ListDicomDirVisit::iterator cc = Visits.begin();
- cc!= Visits.end();
- ++cc )
+ for(ListDicomDirVisit::iterator icc = Visits.begin();
+ icc!= Visits.end();
+ ++icc )
{
- (*cc)->WriteContent( fp, t );
+ (*icc)->WriteContent( fp, t );
}
}
return st;
}
-/**
- * \brief adds a new Visit at the beginning of the VisitList
- * of a partially created DICOMDIR
- */
-DicomDirVisit *DicomDirStudy::NewVisit()
-{
- DicomDirVisit *st = new DicomDirVisit();
- Visits.push_back(st);
- return st;
-}
-
/**
* \brief Remove all series in the study
*/
Series.clear();
}
-/**
- * \brief Remove all visits in the study
- */
-void DicomDirStudy::ClearVisit()
-{
- for(ListDicomDirVisit::iterator cc = Visits.begin();
- cc != Visits.end();
- ++cc )
- {
- delete *cc;
- }
- Visits.clear();
-}
-
/**
* \brief Get the first entry while visiting the DicomDirSeries
* \return The first DicomDirSerie if found, otherwhise NULL
return NULL;
}
-/**
- * \brief Get the first entry while visiting the DicomDirVisit
- * \return The first DicomDirVisit if found, otherwhise NULL
- */
-DicomDirVisit *DicomDirStudy::GetFirstVisit()
-{
- ItVisit = Visits.begin();
- if (ItVisit != Visits.end())
- return *ItVisit;
- return NULL;
-}
-
/**
* \brief Get the next entry while visiting the DicomDirSeries
* \note : meaningfull only if GetFirstEntry already called
return NULL;
}
-/**
- * \brief Get the next entry while visiting the DicomDirVisit
- * \note : meaningfull only if GetFirstEntry already called
- * \return The next DicomDirVisit if found, otherwhise NULL
- */
-DicomDirVisit *DicomDirStudy::GetNextVisit()
-{
- gdcmAssertMacro (ItVisit != Visits.end());
-
- ++ItVisit;
- if (ItVisit != Visits.end())
- return *ItVisit;
- return NULL;
-}
-
/**
* \brief Get the last entry while visiting the DicomDirSeries
* \return The last DicomDirSerie if found, otherwhise NULL
return NULL;
}
+
+/**
+ * \brief adds a new Visit at the beginning of the VisitList
+ * of a partially created DICOMDIR
+ */
+DicomDirVisit *DicomDirStudy::NewVisit()
+{
+ DicomDirVisit *st = new DicomDirVisit();
+ Visits.push_back(st);
+ return st;
+}
+
+/**
+ * \brief Remove all visits in the study
+ */
+void DicomDirStudy::ClearVisit()
+{
+ for(ListDicomDirVisit::iterator cc = Visits.begin();
+ cc != Visits.end();
+ ++cc )
+ {
+ delete *cc;
+ }
+ Visits.clear();
+}
+
+/**
+ * \brief Get the first entry while visiting the DicomDirVisit
+ * \return The first DicomDirVisit if found, otherwhise NULL
+ */
+DicomDirVisit *DicomDirStudy::GetFirstVisit()
+{
+ ItVisit = Visits.begin();
+ if (ItVisit != Visits.end())
+ return *ItVisit;
+ return NULL;
+}
+
+/**
+ * \brief Get the next entry while visiting the DicomDirVisit
+ * \note : meaningfull only if GetFirstEntry already called
+ * \return The next DicomDirVisit if found, otherwhise NULL
+ */
+DicomDirVisit *DicomDirStudy::GetNextVisit()
+{
+ gdcmAssertMacro (ItVisit != Visits.end());
+
+ ++ItVisit;
+ if (ItVisit != Visits.end())
+ return *ItVisit;
+ return NULL;
+}
+
/**
* \brief Get the last entry while visiting the DicomDirVisit
* \return The last DicomDirVisit if found, otherwhise NULL