Program: gdcm
Module: $RCSfile: gdcmDicomDirImage.cxx,v $
Language: C++
- Date: $Date: 2004/08/31 15:39:48 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2004/12/03 17:13:18 $
+ Version: $Revision: 1.14 $
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
#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 (gdcmObject needs it
- * to build the gdcmDocEntries)
- */
-gdcmDicomDirImage::gdcmDicomDirImage(gdcmSQItem *s, TagDocEntryHT *ptagHT):
- gdcmObject(ptagHT)
+namespace gdcm
{
- docEntries = s->GetDocEntries();
-}
-
+//-----------------------------------------------------------------------------
+// Constructor / Destructor
/**
- * \ingroup gdcmDicomDirImage
+ * \ingroup DicomDirImage
* \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)
*/
-gdcmDicomDirImage::gdcmDicomDirImage(TagDocEntryHT *ptagHT):
- gdcmObject(ptagHT)
+DicomDirImage::DicomDirImage():
+ DicomDirObject()
{
}
/**
- * \ingroup gdcmDicomDirImage
+ * \ingroup DicomDirImage
* \brief Canonical destructor.
*/
-gdcmDicomDirImage::~gdcmDicomDirImage()
+DicomDirImage::~DicomDirImage()
{
}
//-----------------------------------------------------------------------------
// Print
/**
- * \ingroup gdcmDicomDirImage
+ * \ingroup DicomDirImage
* \brief Prints the Object
* @return
*/
-void gdcmDicomDirImage::Print(std::ostream &os)
+void DicomDirImage::Print(std::ostream &os)
{
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;
- gdcmObject::Print(os);
+ DicomDirObject::Print(os);
}
//-----------------------------------------------------------------------------
// Private
//-----------------------------------------------------------------------------
+} // end namespace gdcm
+