X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestHash.cxx;h=385bb14d2ce0d3221eb5a79b8c4eb8dedfaf6e6b;hb=6278320cc85da00d2d56ffbf07806e84966892c3;hp=e712e355b616065ed8bc5b19810511fbf542ed77;hpb=1dd5edfd86663a2a001d781f6188f120b98b5216;p=gdcm.git diff --git a/Testing/TestHash.cxx b/Testing/TestHash.cxx index e712e355..385bb14d 100644 --- a/Testing/TestHash.cxx +++ b/Testing/TestHash.cxx @@ -1,17 +1,34 @@ +/*========================================================================= + + Program: gdcm + Module: $RCSfile: TestHash.cxx,v $ + Language: C++ + Date: $Date: 2005/02/02 10:05:26 $ + Version: $Revision: 1.17 $ + + 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 "gdcmCommon.h" //to shut up warnings // Checks the basic functionalities of STL . #include #include #include -int TestHash( int, char * [] ) +int TestHash( int, char *[] ) { std::cout << "Test::TestHash : " << std::endl; std::cout << " Checks that the basic STL functionalities required " << std::endl << " by gdcm are operational. " << std::endl; - typedef std::map dict; + typedef std::map dict; dict tb1; // Adding entries by key: @@ -42,10 +59,10 @@ int TestHash( int, char * [] ) // http://www.developer.com/net/cplus/article.php/10919_2119781_3 // Alas it doesn't work with g++ (at least)... int i = 0x0010; - std::cout.setf(std::ios::hex); - std::cout << "Test::TestHash : hexdecimal output : " << i << std::endl; - std::cout.setf(std::ios::dec); - std::cout << "Test::TestHash : decimal output : " << i << std::endl; + //std::cout.setf(std::ios::hex); + std::cout << "Test::TestHash : hexdecimal output : " << std::hex << i << std::endl; + //std::cout.setf(std::ios::dec); + std::cout << "Test::TestHash : decimal output : " << std::dec << i << std::endl; return 0; }