]> Creatis software - gdcm.git/commitdiff
*** empty log message ***
authorregrain <regrain>
Tue, 10 Feb 2004 15:56:01 +0000 (15:56 +0000)
committerregrain <regrain>
Tue, 10 Feb 2004 15:56:01 +0000 (15:56 +0000)
src/gdcmDicomDir.cxx
src/gdcmImage.cxx

index 11223cd24ee410024ea2a1a4eb469dc2f9317102..82b35472a2993e4f4178e77a329d9b7eb6903d43 100644 (file)
 #include <sys/types.h>
 #include <errno.h>
 
-void StartMethod(void * = NULL)
-{
-   std::cout<<"Start parsing"<<std::endl;
-}
-
-void EndMethod(void * = NULL)
-{
-   std::cout<<"End parsing"<<std::endl;
-}
-
 //-----------------------------------------------------------------------------
 //  For full DICOMDIR description, see:
 //  PS 3.3-2003, pages 731-750
@@ -38,9 +28,9 @@ gdcmDicomDir::gdcmDicomDir(const char *FileName, bool parseDir,
                            bool exception_on_error):
    gdcmParser(FileName,exception_on_error,true)
 {
-   startMethod=StartMethod;
+   startMethod=NULL;
    progressMethod=NULL;
-   endMethod=EndMethod;
+   endMethod=NULL;
    startArg=NULL;
    progressArg=NULL;
    endArg=NULL;
@@ -310,11 +300,9 @@ void gdcmDicomDir::CreateDicomDir()
       }
    }
 
+   end=GetListEntry().end();
    if(begin!=end)
-   {
-      end=GetListEntry().end();
       AddObjectToEnd(type,begin,end);
-   }
 }
 /*
  * \ingroup gdcmDicomDir
index ead230db0251349b3b3c4481639f8330a4ff5b41..5484f9d92bc0e4c9ced0f75d14b9ee700125891c 100644 (file)
@@ -32,7 +32,7 @@ gdcmImage::~gdcmImage()
  */ 
 void gdcmImage::Print(std::ostream &os)
 {
-   os<<"IMAGE"<<std::endl;
+   os<<"IMAGE : ";
    for(ListTag::iterator i=beginObj;i!=endObj;++i)
    {
       if( ((*i)->GetGroup()==0x0004) && ((*i)->GetElement()==0x1500) )