Program: gdcm
Module: $RCSfile: gdcmDicomDirMeta.cxx,v $
Language: C++
- Date: $Date: 2004/08/26 15:29:52 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2004/09/27 08:39:06 $
+ Version: $Revision: 1.11 $
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
* \ingroup gdcmMeta
* \brief Constructor
*/
-gdcmDicomDirMeta::gdcmDicomDirMeta(TagDocEntryHT *ptagHT):
- gdcmObject(ptagHT)
+gdcmDicomDirMeta::gdcmDicomDirMeta(TagDocEntryHT* ptagHT):
+ gdcmDicomDirObject(ptagHT)
{
}
//-----------------------------------------------------------------------------
// Print
/**
- * \brief Prints the Object
+ * \brief Prints the Meta Elements
*/
-void gdcmDicomDirMeta::Print(std::ostream &os)
+void gdcmDicomDirMeta::Print(std::ostream& os)
{
os << "META" << std::endl;
- gdcmObject::Print(os);
+ // warning : META doesn't behave exactly like a gdcmObjet
+ for (ListDocEntry::iterator i = docEntries.begin();
+ i != docEntries.end();
+ ++i)
+ (*i)->Print();
}
/**
- * \brief Writes the Object
+ * \brief Writes the Meta Elements
* @return
*/
-void gdcmDicomDirMeta::Write(FILE *fp, FileType t)
-{
- gdcmObject::Write(fp, t);
+void gdcmDicomDirMeta::Write(FILE* fp, FileType t)
+{
+ for (ListDocEntry::iterator i = docEntries.begin();
+ i != docEntries.end();
+ ++i)
+ (*i)->Write(fp, t);
}
//-----------------------------------------------------------------------------