]> Creatis software - gdcm.git/blobdiff - src/gdcmParser.cxx
comments added
[gdcm.git] / src / gdcmParser.cxx
index 651f248adbaabca7e4f91733e22ad1df4197bed1..70c859fdf0f018b68d9640a99e7a75e8f6789052 100644 (file)
    // DL       Delimiters
    //
 
+   // Other usefull abreviations :
+   //Radiographic view associated with Patient Position (0018,5100).
+   //  Defined Terms:
+   // 
+   //  AP = Anterior/Posterior 
+   //  PA = Posterior/Anterior 
+   //  LL = Left Lateral 
+   //  RL = Right Lateral 
+   //  RLD = Right Lateral Decubitus 
+   //  LLD  = Left Lateral Decubitus 
+   //  RLO = Right Lateral Oblique 
+   //  LLO = Left Lateral Oblique  
+
 //-----------------------------------------------------------------------------
 // Refer to gdcmParser::CheckSwap()
 const unsigned int gdcmParser::HEADER_LENGTH_TO_READ = 256;
@@ -1420,7 +1433,7 @@ void gdcmParser::AddHeaderEntry(gdcmHeaderEntry *newHeaderEntry) {
    guint16 length16;
    if( (element == NumPixel) && (group == GrPixel) ) 
    {
-      dbg.SetDebug(-1);
+      dbg.SetDebug(GDCM_DEBUG);
       dbg.Verbose(2, "gdcmParser::FindLength: ",
                      "we reached (GrPixel,NumPixel)");
    }   
@@ -1775,8 +1788,10 @@ void gdcmParser::FixHeaderEntryFoundLength(gdcmHeaderEntry *Entry, guint32 Found
    guint16 el =Entry->GetElement(); 
      
    if (FoundLength%2) {
-      std::cout << "Warning : Tag with uneven length " << FoundLength 
-         <<  " in x(" << std::hex << gr << "," << el <<")" << std::dec << std::endl;
+      std::ostringstream s;
+      s << "Warning : Tag with uneven length " << FoundLength 
+         <<  " in x(" << std::hex << gr << "," << el <<")" << std::dec;
+      dbg.Verbose(0,s.str().c_str());
    }
       
    // Sorry for the patch!