]> Creatis software - gdcm.git/blobdiff - Testing/TestHash.cxx
ENH: Some cosmetic cleanup of gdcmFile, main changes are: lgrTotal -> ImageDataSize...
[gdcm.git] / Testing / TestHash.cxx
index f0af57bb6745d2b756724ff48b983752e96a4fe3..ffd89540adda8a19dc09f590dee274b18239a841 100644 (file)
@@ -3,36 +3,36 @@
 #include <iostream>
 #include <stdio.h>
 
-int hashtest( int, char * [] ) {
+int TestHash( int, char * [] ) {
 
   typedef std::map<std::string, char*> dict;
   
-  dict tb1;
-  dict::iterator im = tb1.find("00380010");
-  tb1["00100010"] = "Patient Name";
-  tb1["7fe00010"] = "Pixel Data";
-  tb1["50000010"] = "Number of points";
-  tb1["00380010"] = "Admission ID";
+   dict tb1;
+   dict::iterator im = tb1.find("00380010");
+   tb1["00100010"] = "Patient Name";
+   tb1["7fe00010"] = "Pixel Data";
+   tb1["50000010"] = "Number of points";
+   tb1["00380010"] = "Admission ID";
 
-       std::cout << "Traversal of dictionary (note the proper ordering on key)." << std::endl;
-       for ( im = tb1.begin(); im != tb1.end(); ++im )
-               std::cout << "   \"" << im->first << "\" = " << im->second << std::endl;
-       std::cout << "End of dictionary." << std::endl;
+   std::cout << "Traversal of dictionary (note the proper ordering on key)." << std::endl;
+   for ( im = tb1.begin(); im != tb1.end(); ++im )
+      std::cout << "   \"" << im->first << "\" = " << im->second << std::endl;
+   std::cout << "End of dictionary." << std::endl;
 
-       std::cout << "Find request on key 00380010" << std::endl;
-       im = tb1.find("00380010");
-       std::cout << "   \"" << im->first << "\" = " << im->second << std::endl;
-       
-       int i = 0x0010;
-       std::cout.setf(std::ios::hex);
-       std::cout << i << std::endl;
-       std::cout.setf(std::ios::dec);
-       std::cout << i << std::endl;    
-       
-       // Voir :
-       //http://www.developer.com/net/cplus/article.php/10919_2119781_3
-       //
-       // domage que ca ne marche pas ...
+   std::cout << "Find request on key 00380010" << std::endl;
+   im = tb1.find("00380010");
+   std::cout << "   \"" << im->first << "\" = " << im->second << std::endl;
+
+   int i = 0x0010;
+   std::cout.setf(std::ios::hex);
+   std::cout << i << std::endl;
+   std::cout.setf(std::ios::dec);
+   std::cout << i << std::endl;        
+
+// Voir :
+//http://www.developer.com/net/cplus/article.php/10919_2119781_3
+//
+// dommage que ca ne marche pas ...
 
   return 0;
 }