// Exemples exploitation de la structure
-// DON'T REMOVE neither the folowong code, nor the commented out lines
+// DON'T REMOVE neither the folowing code, nor the commented out lines
cout << std::endl << std::endl
*/
-// DICOM DIR
-
-//What about the META informations?
-
cout << std::endl << std::endl
<< " = Contenu Complet du DICOMDIR =========================================="
<< std::endl<< std::endl;
begin=listEntries.begin();
end=begin;
- for(ListTag::iterator j=listEntries.begin();j !=listEntries.end();++j)
+ for(ListTag::iterator j=begin;j !=listEntries.end();++j)
{
if((*j)->GetValue()=="PATIENT ") {
k = j;
break;
}
- AddObjectToEnd(gdcmDicomDir::GDCM_META,begin,j);
}
+ AddObjectToEnd(gdcmDicomDir::GDCM_META,begin,k);
-// for(ListTag::iterator i=listEntries.begin();i !=listEntries.end();++i)
for(ListTag::iterator i=k;i !=listEntries.end();++i)
{
std::string v=(*i)->GetValue();
-// gdcmMeta.cxx
+// gdcmMeta.h
//-----------------------------------------------------------------------------
#include "gdcmMeta.h"
* \ingroup gdcmMeta
* \brief
* @param begin iterator of begin for the object
- * @param end iterator of end for the object
+ * @param end iterator of end for the object
*/
gdcmMeta::gdcmMeta(ListTag::iterator begin,ListTag::iterator end):
gdcmObject(begin,end)
*/
void gdcmMeta::Print(std::ostream &os)
{
- os<<"META : ";
- os<<std::endl;
-
+ os<<"META :"<<std::endl;
gdcmObject::Print(os);
}