X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmDicomDirImage.cxx;h=0ddbfc463409c2279101918589e7abb4b9527875;hb=060ddb1e7fabdfc43c258dfd575df80e4023fd32;hp=aaae71b88209a7d0e11f2e7db9339457f02a4f8a;hpb=fd37aa842b5d31ca266b6bda8a77f3201d02338d;p=gdcm.git diff --git a/src/gdcmDicomDirImage.cxx b/src/gdcmDicomDirImage.cxx index aaae71b8..0ddbfc46 100644 --- a/src/gdcmDicomDirImage.cxx +++ b/src/gdcmDicomDirImage.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirImage.cxx,v $ Language: C++ - Date: $Date: 2004/09/27 08:39:06 $ - Version: $Revision: 1.11 $ + Date: $Date: 2005/01/18 14:28:32 $ + Version: $Revision: 1.18 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -18,60 +18,48 @@ #include "gdcmDicomDirImage.h" #include "gdcmValEntry.h" -//----------------------------------------------------------------------------- -// Constructor / Destructor -/** - * \ingroup gdcmDicomDirImage - * \brief Constructor - * @param s SQ Item holding the elements - * @param ptagHT pointer to the HTable (gdcmDicomDirObject needs it - * to build the gdcmDocEntries) - */ -gdcmDicomDirImage::gdcmDicomDirImage(gdcmSQItem *s, TagDocEntryHT *ptagHT): - gdcmDicomDirObject(ptagHT) +namespace gdcm { - docEntries = s->GetDocEntries(); -} - +//----------------------------------------------------------------------------- +// Constructor / Destructor /** - * \ingroup gdcmDicomDirImage * \brief Constructor - * @param ptagHT pointer to the HTable (gdcmDicomDirObject needs it - * to build the gdcmDocEntries) */ -gdcmDicomDirImage::gdcmDicomDirImage(TagDocEntryHT *ptagHT): - gdcmDicomDirObject(ptagHT) +DicomDirImage::DicomDirImage(): + DicomDirObject() { } /** - * \ingroup gdcmDicomDirImage * \brief Canonical destructor. */ -gdcmDicomDirImage::~gdcmDicomDirImage() +DicomDirImage::~DicomDirImage() { } //----------------------------------------------------------------------------- // Print /** - * \ingroup gdcmDicomDirImage * \brief Prints the Object + * @param os ostream to write to + * @param indent indent * @return */ -void gdcmDicomDirImage::Print(std::ostream &os) +void DicomDirImage::Print(std::ostream &os, std::string const & ) { os << "IMAGE : "; - for(ListDocEntry::iterator i=docEntries.begin();i!=docEntries.end();++i) + for(ListDocEntry::iterator i = DocEntries.begin(); + i!= DocEntries.end(); + ++i) { if( (*i)->GetGroup() == 0x0004 && (*i)->GetElement() == 0x1500 ) { - os << ((gdcmValEntry *)(*i))->GetValue(); //FIXME + os << ((ValEntry *)(*i))->GetValue(); //FIXME } } os << std::endl; - gdcmDicomDirObject::Print(os); + DicomDirObject::Print(os); } //----------------------------------------------------------------------------- @@ -84,3 +72,5 @@ void gdcmDicomDirImage::Print(std::ostream &os) // Private //----------------------------------------------------------------------------- +} // end namespace gdcm +