]> Creatis software - gdcm.git/commitdiff
Ops! The last Meta tag was missing
authorjpr <jpr>
Fri, 6 Feb 2004 15:44:43 +0000 (15:44 +0000)
committerjpr <jpr>
Fri, 6 Feb 2004 15:44:43 +0000 (15:44 +0000)
Testing/TestDicomDir.cxx
src/gdcmDicomDir.cxx
src/gdcmMeta.cxx

index 84d41113a6071469a46e4caace3c0cf641883d7a..37f842f1576a6368b61095222845e4e1488da02b 100644 (file)
@@ -48,7 +48,7 @@ int main(int argc, char* argv[])
 
 // 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  
@@ -130,10 +130,6 @@ int main(int argc, char* argv[])
    
  */  
 
-// DICOM DIR
-
-//What about the META informations?
-
    cout << std::endl << std::endl  
         << " = Contenu Complet du DICOMDIR ==========================================" 
         << std::endl<< std::endl;      
index cb54ee51b53093bfe6f1a4a077a36d4e38119e1e..3592304d18afef30f1d13df0f2723c2d0d9a685a 100644 (file)
@@ -202,16 +202,15 @@ void gdcmDicomDir::CreateDicomDir()
    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();
index 52bb3ad654cccb0b53d2e92b2f7eea0545d6188d..aedc2a435a54c25f888ba54816d7b744f793e6c2 100644 (file)
@@ -1,4 +1,4 @@
-// gdcmMeta.cxx
+// gdcmMeta.h
 //-----------------------------------------------------------------------------
 #include "gdcmMeta.h"
 
@@ -8,7 +8,7 @@
  * \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)
@@ -32,9 +32,7 @@ gdcmMeta::~gdcmMeta()
  */ 
 void gdcmMeta::Print(std::ostream &os)
 {
-   os<<"META : ";
-   os<<std::endl;
-
+   os<<"META :"<<std::endl;
    gdcmObject::Print(os);
 }