X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirStudy.cxx;h=1c940c7e4e6f26c870f9898c2609716aadcbe164;hb=74e3bc05fade5a18f193e7d1122c74756c0e689e;hp=d15c62efa8c92aab7728a43a197614042599417b;hpb=1bae8d2ba47d1b9cc8acfb7b5ab82026e48275dd;p=gdcm.git diff --git a/src/gdcmDicomDirStudy.cxx b/src/gdcmDicomDirStudy.cxx index d15c62ef..1c940c7e 100644 --- a/src/gdcmDicomDirStudy.cxx +++ b/src/gdcmDicomDirStudy.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirStudy.cxx,v $ Language: C++ - Date: $Date: 2004/11/25 15:46:11 $ - Version: $Revision: 1.18 $ + Date: $Date: 2005/01/06 16:05:06 $ + Version: $Revision: 1.21 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -19,32 +19,17 @@ #include "gdcmDicomDirStudy.h" #include "gdcmDicomDirElement.h" #include "gdcmGlobal.h" +#include "gdcmDicomDirSerie.h" namespace gdcm { //----------------------------------------------------------------------------- // Constructor / Destructor - /** - * \ingroup DicomDirStudy - * \brief constructor - * @param s SQ Item holding the elements related to this "STUDY" part - * @param ptagHT pointer to the HTable (DicomDirObject needs it - * to build the HeaderEntries) + * \brief Constructor */ -DicomDirStudy::DicomDirStudy(SQItem* s, TagDocEntryHT* ptagHT): - DicomDirObject(ptagHT) -{ - DocEntries = s->GetDocEntries(); -} -/** - * \ingroup DicomDirStudy - * \brief constructor - * @param ptagHT pointer to the HTable (DicomDirObject needs it - * to build the HeaderEntries) - */ -DicomDirStudy::DicomDirStudy(TagDocEntryHT* ptagHT): - DicomDirObject(ptagHT) +DicomDirStudy::DicomDirStudy(): + DicomDirObject() { } /** @@ -64,8 +49,8 @@ DicomDirStudy::~DicomDirStudy() //----------------------------------------------------------------------------- // Print /** - * \ingroup DicomDirStudy * \brief Prints the Object + * @param os ostream to write to * @return */ void DicomDirStudy::Print(std::ostream& os) @@ -87,6 +72,8 @@ void DicomDirStudy::Print(std::ostream& os) /** * \brief Writes the Object + * @param fp ofstream to write to + * @param t Type of the File (explicit VR, implicitVR, ...) * @return */ void DicomDirStudy::WriteContent(std::ofstream* fp, FileType t) @@ -102,7 +89,6 @@ void DicomDirStudy::WriteContent(std::ofstream* fp, FileType t) } /** - * \ingroup DicomDirStudy * \brief adds a new Serie at the begining of the SerieList * of a partially created DICOMDIR */ @@ -111,7 +97,7 @@ DicomDirSerie* DicomDirStudy::NewSerie() ListDicomDirSerieElem const & elemList = Global::GetDicomDirElements()->GetDicomDirSerieElements(); - DicomDirSerie* st = new DicomDirSerie(PtagHT); + DicomDirSerie* st = new DicomDirSerie(); FillObject(elemList); Series.push_front(st);