X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=src%2FgdcmDicomDirSerie.cxx;h=2edbf5ea285b4d57c8636a6d6252de9f3dbb21b1;hb=31c63a6cb25b49a119e0132201c051ade2e17704;hp=dcdd74656a78e0f350188884afd29170573631da;hpb=233c8b3ebb1aee6b1be6723d842eb2241b9ffb91;p=gdcm.git diff --git a/src/gdcmDicomDirSerie.cxx b/src/gdcmDicomDirSerie.cxx index dcdd7465..2edbf5ea 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/06 20:03:27 $ + Version: $Revision: 1.25 $ 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) { 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);