Program: gdcm
Module: $RCSfile: gdcmDicomDirStudy.cxx,v $
Language: C++
- Date: $Date: 2005/01/31 12:19:33 $
- Version: $Revision: 1.34 $
+ Date: $Date: 2005/02/02 10:02:16 $
+ 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
* \brief Constructor
* \note End user must use : DicomDirPatient::NewStudy()
*/
-DicomDirStudy::DicomDirStudy(bool empty):
- DicomDirObject()
+DicomDirStudy::DicomDirStudy(bool empty)
+ :DicomDirObject()
{
if( !empty )
{
ClearSerie();
}
-//-----------------------------------------------------------------------------
-// Print
-/**
- * \brief Prints the Object
- * @param os ostream to write to
- * @param indent Indentation string to be prepended during printing
- * @return
- */
-void DicomDirStudy::Print(std::ostream &os, std::string const & )
-{
- os << "STUDY" << std::endl;
- DicomDirObject::Print(os);
-
- for(ListDicomDirSerie::iterator cc = Series.begin();
- cc != Series.end();
- ++cc)
- {
- (*cc)->SetPrintLevel(PrintLevel);
- (*cc)->Print(os);
- }
-}
-
//-----------------------------------------------------------------------------
// Public
/**
*/
DicomDirSerie *DicomDirStudy::NewSerie()
{
- DicomDirSerie* st = new DicomDirSerie();
+ DicomDirSerie *st = new DicomDirSerie();
Series.push_back(st);
return st;
}
// Private
//-----------------------------------------------------------------------------
-} // end namespace gdcm
+// Print
+/**
+ * \brief Prints the Object
+ * @param os ostream to write to
+ * @param indent Indentation string to be prepended during printing
+ * @return
+ */
+void DicomDirStudy::Print(std::ostream &os, std::string const & )
+{
+ os << "STUDY" << std::endl;
+ DicomDirObject::Print(os);
+ for(ListDicomDirSerie::iterator cc = Series.begin();
+ cc != Series.end();
+ ++cc)
+ {
+ (*cc)->SetPrintLevel(PrintLevel);
+ (*cc)->Print(os);
+ }
+}
+
+//-----------------------------------------------------------------------------
+} // end namespace gdcm