X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirSerie.cxx;h=62396da10ed4aec928474c606f088a9306420026;hb=40b909789581894e57a0d8f22d6f1f91f55e7f84;hp=22f4b4d43ef63c539432154fa012416bc8c0b279;hpb=3fd520b58c8d1939994de2c63cc038c3e7ac9522;p=gdcm.git diff --git a/src/gdcmDicomDirSerie.cxx b/src/gdcmDicomDirSerie.cxx index 22f4b4d4..62396da1 100644 --- a/src/gdcmDicomDirSerie.cxx +++ b/src/gdcmDicomDirSerie.cxx @@ -3,12 +3,12 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirSerie.cxx,v $ Language: C++ - Date: $Date: 2004/08/26 15:29:52 $ - Version: $Revision: 1.13 $ + Date: $Date: 2004/10/12 04:35:45 $ + Version: $Revision: 1.17 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or - http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details. + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR @@ -20,33 +20,36 @@ #include "gdcmDicomDirElement.h" #include "gdcmGlobal.h" +namespace gdcm +{ + //----------------------------------------------------------------------------- // Constructor / Destructor /** * \brief Constructor * @param s SQ Item holding the elements related to this "SERIE" part - * @param ptagHT pointer to the HTable (gdcmObject needs it - * to build the gdcmDocEntries) + * @param ptagHT pointer to the HTable (DicomDirObject needs it + * to build the DocEntries) */ -gdcmDicomDirSerie::gdcmDicomDirSerie(gdcmSQItem *s, TagDocEntryHT *ptagHT): - gdcmObject(ptagHT) +DicomDirSerie::DicomDirSerie(SQItem* s, TagDocEntryHT* ptagHT): + DicomDirObject(ptagHT) { docEntries = s->GetDocEntries(); } /** * \brief Constructor - * @param ptagHT pointer to the HTable (gdcmObject needs it - * to build the gdcmDocEntries) + * @param ptagHT pointer to the HTable (DicomDirObject needs it + * to build the DocEntries) */ -gdcmDicomDirSerie::gdcmDicomDirSerie(TagDocEntryHT *ptagHT): - gdcmObject(ptagHT) +DicomDirSerie::DicomDirSerie(TagDocEntryHT* ptagHT): + DicomDirObject(ptagHT) { } /** * \brief Canonical destructor. */ -gdcmDicomDirSerie::~gdcmDicomDirSerie() +DicomDirSerie::~DicomDirSerie() { for(ListDicomDirImage::iterator cc = images.begin(); cc != images.end(); @@ -62,10 +65,10 @@ gdcmDicomDirSerie::~gdcmDicomDirSerie() * \brief Prints the Object * @return */ -void gdcmDicomDirSerie::Print(std::ostream &os) +void DicomDirSerie::Print(std::ostream& os) { os << "SERIE" << std::endl; - gdcmObject::Print(os); + DicomDirObject::Print(os); for(ListDicomDirImage::iterator cc = images.begin(); cc != images.end(); @@ -83,9 +86,9 @@ void gdcmDicomDirSerie::Print(std::ostream &os) * \brief Writes the Object * @return */ -void gdcmDicomDirSerie::Write(FILE *fp, FileType t) +void DicomDirSerie::Write(FILE* fp, FileType t) { - gdcmObject::Write(fp, t); + DicomDirObject::Write(fp, t); for(ListDicomDirImage::iterator cc = images.begin();cc!=images.end();++cc) { @@ -96,12 +99,12 @@ void gdcmDicomDirSerie::Write(FILE *fp, FileType t) /** * \brief adds a new Image (with the basic elements) to a partially created DICOMDIR */ -gdcmDicomDirImage * gdcmDicomDirSerie::NewImage() +DicomDirImage* DicomDirSerie::NewImage() { - std::list elemList = - gdcmGlobal::GetDicomDirElements()->GetDicomDirImageElements(); + std::list elemList = + Global::GetDicomDirElements()->GetDicomDirImageElements(); - gdcmDicomDirImage *st = new gdcmDicomDirImage(PtagHT); + DicomDirImage* st = new DicomDirImage(PtagHT); FillObject(elemList); images.push_front(st); @@ -114,3 +117,6 @@ gdcmDicomDirImage * gdcmDicomDirSerie::NewImage() // Private //----------------------------------------------------------------------------- +} // end namespace gdcm + +