X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestUtil.cxx;h=f7b2952c3b6bec67c3d29166fd269f28dbfc151e;hb=1de7de1607a97c20218451b8d8269c1e0ea132b2;hp=9e884fbf7d57e030025b305f1d643a56efc28949;hpb=2bab52c47a759a263d46422e7847de06fe9e3470;p=gdcm.git diff --git a/Testing/TestUtil.cxx b/Testing/TestUtil.cxx index 9e884fbf..f7b2952c 100644 --- a/Testing/TestUtil.cxx +++ b/Testing/TestUtil.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestUtil.cxx,v $ Language: C++ - Date: $Date: 2005/11/17 18:01:59 $ - Version: $Revision: 1.17 $ + Date: $Date: 2007/05/23 14:18:06 $ + Version: $Revision: 1.21 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -33,7 +33,7 @@ int TestUtil(int , char *[]) float flt; double dbl=1.0; - std::cout << "This is gdcm version: " << gdcm::Util::GetVersion() << std::endl; + std::cout << "This is gdcm version: " << GDCM_NAME_SPACE::Util::GetVersion() << std::endl; std::cout << "---------- uint16 : " << std::dec << u16 << " = 0x" << std::hex << u16 << std::endl; @@ -92,15 +92,15 @@ int TestUtil(int , char *[]) std::cout << "Size of short int " << sizeof(short int) << std::endl; - std::cout << "Size of int " << sizeof(int) << std::endl; - std::cout << "Size of int* " << sizeof(int*) << std::endl; - std::cout << "Size of long " << sizeof(long) << std::endl; - std::cout << "Size of float" << sizeof(float) << std::endl; - std::cout << "Size of double" << sizeof(double) << std::endl; + std::cout << "Size of int " << sizeof(int) << std::endl; + std::cout << "Size of int* " << sizeof(int*) << std::endl; + std::cout << "Size of long " << sizeof(long) << std::endl; + std::cout << "Size of float" << sizeof(float) << std::endl; + std::cout << "Size of double" << sizeof(double) << std::endl; // CreateCleanString std::string x = "a#@-bc\tdef"; - std::string y = gdcm::Util::CreateCleanString(x); + std::string y = GDCM_NAME_SPACE::Util::CreateCleanString(x); std::cout << "Clean : [" << x <<"] --> [" << y <<"]" << std::endl; @@ -108,12 +108,12 @@ int TestUtil(int , char *[]) x = "abcd#@-wyz*@-lmn#@-uvw-#@ijk"; std::cout << "in [" << x << "] " << std::endl; std::cout << " - count '#@-' : " - << gdcm::Util::CountSubstring(x, "#@-") << std::endl; + << GDCM_NAME_SPACE::Util::CountSubstring(x, "#@-") << std::endl; // Tokenize : tokens are '#', '@', '-' std::vector tokens; std::cout << " - use tokens '#@-' :" << std::endl; - gdcm::Util::Tokenize (x, tokens, "#@-"); + GDCM_NAME_SPACE::Util::Tokenize (x, tokens, "#@-"); for (unsigned int ui=0; ui MD5 : " << GDCM_NAME_SPACE::Util::ConvertToMD5(s1) + < MD5 : " << GDCM_NAME_SPACE::Util::ConvertToMD5(s1) + < MD5 : " << GDCM_NAME_SPACE::Util::ConvertToMD5(s1) + < MD5 : " << GDCM_NAME_SPACE::Util::ConvertToMD5(s1) + < MD5 : " << GDCM_NAME_SPACE::Util::ConvertToMD5(s1) + <