X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestUtil.cxx;h=9574fece0029b8e6bc44831d0cfb22c29506a0fb;hb=ba2ea83f67d798dfa2efae2fb21d3b5858c9c95c;hp=24c285d540078f46cfa6bd7ce1e88ddb5569440b;hpb=3306c0c4d4513e73e1ca1ab60922ca02dc86a870;p=gdcm.git diff --git a/Testing/TestUtil.cxx b/Testing/TestUtil.cxx index 24c285d5..9574fece 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/06 19:10:07 $ - Version: $Revision: 1.6 $ + Date: $Date: 2005/02/02 10:05:26 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -19,12 +19,29 @@ // way to test this class. #include "gdcmUtil.h" +#include "gdcmDebug.h" #include -int TestUtil(int , char * []) +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"; @@ -43,8 +60,20 @@ int TestUtil(int , char * []) if( gdcm::Util::DicomStringEqual(d,ref) ) return 1; - // MAC Adress - std::cout << "Mac Address:" << gdcm::Util::GetMACAddress() << std::endl; +// ---------------------------------------------------------- +// Let's test gdcm::Debug, now. + std::cout << "GetDebugFlag : " << gdcm::Debug::GetDebugFlag() <