]> Creatis software - gdcm.git/commitdiff
Remove useless PrintHeader (replaced by PrintDocument)
authorjpr <jpr>
Mon, 25 Apr 2005 14:07:05 +0000 (14:07 +0000)
committerjpr <jpr>
Mon, 25 Apr 2005 14:07:05 +0000 (14:07 +0000)
Example/CMakeLists.txt
Example/PrintDocument.cxx
Example/PrintHeader.cxx [deleted file]

index b9c601cc51789ae6efcdb55d08e7562127d4ddc0..58ec6c0a0b60444fa2834037446c84ed986ad9c9 100644 (file)
@@ -20,13 +20,14 @@ SET(EXAMPLE_SOURCES
   PrintDicomDir
   PrintDocument
   PrintFile
-  PrintHeader
   FindTags
   MakeDicomDir
   AnonymizeDicomDir # without loading it as a gdcm::DicomDir
 
 #the following will be transformed into 'examples', or 'utilities'
 #              or will be removed
+#
+# Better you don't use them (not fully checked ...)
  
   #test
   FlatHashTablePrint
index 4d3a2e3831962736882fd4b5c703a9d6dafb062a..d94d8112f679e544368252fcf1f95597dd860d92 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/04/05 10:28:59 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2005/04/25 14:07:05 $
+  Version:   $Revision: 1.13 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -59,7 +59,15 @@ int main(int argc, char *argv[])
 
    e1->Print();
       
-   std::cout << "\n\n" << std::endl;        
+   std::cout << "\n\n" << std::endl; 
+
+   if ( e1->GetEntryValue(0x0002,0x0010) == gdcm::GDCM_NOTLOADED ) 
+   {
+      std::cout << "Transfer Syntax not loaded. " << std::endl
+                << "Better you increase MAX_SIZE_LOAD_ELEMENT_VALUE"
+                << std::endl;
+      return 0;
+   }       
    
    if(e1->IsReadable())
       std::cout <<std::endl<<fileName<<" is Readable"<<std::endl;
diff --git a/Example/PrintHeader.cxx b/Example/PrintHeader.cxx
deleted file mode 100644 (file)
index eb64a3f..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-/*=========================================================================
-                                                                                
-  Program:   gdcm
-  Module:    $RCSfile: PrintHeader.cxx,v $
-  Language:  C++
-  Date:      $Date: 2005/02/01 10:34:59 $
-  Version:   $Revision: 1.18 $
-                                                                                
-  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.html for details.
-                                                                                
-     This software is distributed WITHOUT ANY WARRANTY; without even
-     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-     PURPOSE.  See the above copyright notices for more information.
-                                                                                
-=========================================================================*/
-#include "gdcmFile.h"
-#include "gdcmDebug.h"
-
-#include <iostream>
-
-int main(int argc, char* argv[])
-{ 
-   std::string fileName;   
-
-   if (argc == 1)
-   {
-      std::cout << argv[0] << " fileName printLevel debug" << std::endl;
-   }
-
-   if (argc > 1)
-   {
-      fileName=argv[1];
-   }
-   else
-   {
-      fileName += GDCM_DATA_ROOT;
-      fileName += "/test.acr";
-   }
-
-   if (argc > 3)
-      gdcm::Debug::DebugOn();
-
-   gdcm::File *e1 = new gdcm::File( fileName.c_str() );  
-
-   if (argc > 2) 
-   {
-      int level = atoi(argv[2]);   
-      e1->SetPrintLevel(level);
-   }
-
-   e1->Print();   
-
-   std::cout << "\n\n" << std::endl; 
-
-   if ( e1->GetEntryValue(0x0002,0x0010) == gdcm::GDCM_NOTLOADED ) 
-   {
-      std::cout << "Transfer Syntax not loaded. " << std::endl
-                << "Better you increase MAX_SIZE_LOAD_ELEMENT_VALUE"
-                << std::endl;
-      return 0;
-   }
-
-   std::string transferSyntaxName = e1->GetTransferSyntaxName();
-   std::cout << " TransferSyntaxName= [" << transferSyntaxName << "]"
-             << std::endl;
-   std::cout << " SwapCode= " << e1->GetSwapCode() << std::endl;
-
-   if(e1->IsReadable())
-      std::cout <<std::endl<<fileName<<" is Readable"<<std::endl;
-   else
-      std::cout <<std::endl<<fileName<<" is NOT Readable"<<std::endl;
-   std::cout<<std::flush;
-   delete e1;
-
-   return 0;
-}