X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirSerie.cxx;h=b78fc9fdde2aa92067bf979cd496826982eefe45;hb=d5e16925a7d3c8dbd0e71b1989629ca0f619b119;hp=dcdd74656a78e0f350188884afd29170573631da;hpb=233c8b3ebb1aee6b1be6723d842eb2241b9ffb91;p=gdcm.git diff --git a/src/gdcmDicomDirSerie.cxx b/src/gdcmDicomDirSerie.cxx index dcdd7465..b78fc9fd 100644 --- a/src/gdcmDicomDirSerie.cxx +++ b/src/gdcmDicomDirSerie.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirSerie.cxx,v $ Language: C++ - Date: $Date: 2004/12/03 17:13:18 $ - Version: $Revision: 1.22 $ + Date: $Date: 2005/01/16 04:50:41 $ + Version: $Revision: 1.26 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -18,6 +18,7 @@ #include "gdcmDicomDirSerie.h" #include "gdcmDicomDirElement.h" +#include "gdcmDicomDirImage.h" #include "gdcmGlobal.h" namespace gdcm @@ -27,8 +28,6 @@ namespace gdcm // Constructor / Destructor /** * \brief Constructor - * @param ptagHT pointer to the HTable (DicomDirObject needs it - * to build the DocEntries) */ DicomDirSerie::DicomDirSerie(): DicomDirObject() @@ -51,9 +50,9 @@ DicomDirSerie::~DicomDirSerie() // Print /** * \brief Prints the Object - * @return + * @param os ostream to write to */ -void DicomDirSerie::Print(std::ostream& os) +void DicomDirSerie::Print(std::ostream &os, std::string const &) { os << "SERIE" << std::endl; DicomDirObject::Print(os); @@ -72,9 +71,10 @@ void DicomDirSerie::Print(std::ostream& os) /** * \brief Writes the Object - * @return + * @param fp ofstream to write to + * @param t Type of the File (explicit VR, implicitVR, ...) */ -void DicomDirSerie::WriteContent(std::ofstream* fp, FileType t) +void DicomDirSerie::WriteContent(std::ofstream *fp, FileType t) { DicomDirObject::WriteContent(fp, t); @@ -89,12 +89,12 @@ void DicomDirSerie::WriteContent(std::ofstream* fp, FileType t) /** * \brief adds a new Image (with the basic elements) to a partially created DICOMDIR */ -DicomDirImage* DicomDirSerie::NewImage() +DicomDirImage *DicomDirSerie::NewImage() { - ListDicomDirImageElem const & elemList = + ListDicomDirImageElem const &elemList = Global::GetDicomDirElements()->GetDicomDirImageElements(); - DicomDirImage* st = new DicomDirImage(); + DicomDirImage *st = new DicomDirImage(); FillObject(elemList); Images.push_front(st);