X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestUtil.cxx;h=80a52a0727b0a152fd1a19617ca74b48da4053fc;hb=bf15a99667fae49047bb72ba0bfda6e129bb045e;hp=a8393de54eb51bf7df8d216356f21df695d110d4;hpb=1fe405b2347a5f78d5ecc67d2d81f53bd9c7541d;p=gdcm.git diff --git a/Testing/TestUtil.cxx b/Testing/TestUtil.cxx index a8393de5..80a52a07 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/01/21 16:07:54 $ - Version: $Revision: 1.7 $ + Date: $Date: 2005/01/27 10:43:19 $ + Version: $Revision: 1.8 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -23,9 +23,24 @@ int TestUtil(int , char * []) { + // Time std::cout << "Time:" << gdcm::Util::GetCurrentDateTime() << std::endl; + + // Processor ID + unsigned int processorID;; + processorID = gdcm::Util::GetCurrentProcessID(); + std::cout << "Current Processor ID " << processorID << std::endl; + + // MAC Adress + std::cout << "Mac Address:" << gdcm::Util::GetMACAddress() << std::endl; + // Unique UID test - std::cout << gdcm::Util::CreateUniqueUID("") << std::endl; + std::string gdcmUid; + for (int i=0; i<10; i++) + { + gdcmUid = gdcm::Util::CreateUniqueUID(); + std::cout << "Current UID for gdcm " << gdcmUid << std::endl; + } // DicomString test const char ref[] = "MONOCHROME1"; @@ -44,10 +59,5 @@ int TestUtil(int , char * []) if( gdcm::Util::DicomStringEqual(d,ref) ) return 1; - // MAC Adress - std::cout << "Mac Address:" << gdcm::Util::GetMACAddress() << std::endl; - - std::cout << "Time:" << gdcm::Util::GetCurrentDateTime() << std::endl; - return 0; }