]> Creatis software - gdcm.git/commitdiff
Save a *few* microseconds at run time : inline method Util::GetVersion()
authorjpr <jpr>
Mon, 22 Aug 2005 16:17:54 +0000 (16:17 +0000)
committerjpr <jpr>
Mon, 22 Aug 2005 16:17:54 +0000 (16:17 +0000)
;-)

src/gdcmUtil.cxx
src/gdcmUtil.h

index 95e9a07781b0aaed6c26de3cd6b48f12eec5a8e0..bf200b0d212847dceaf3fdba5c7851194af7e85e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmUtil.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/08/22 15:38:05 $
-  Version:   $Revision: 1.158 $
+  Date:      $Date: 2005/08/22 16:17:54 $
+  Version:   $Revision: 1.159 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -331,14 +331,6 @@ std::string Util::GetCurrentDateTime()
    return tmpAll;
 }
 
-/* 
- * \brief Provide a simple static GetVersion() function
- */
-std::string Util::GetVersion()
-{
-  return GDCM_VERSION;
-}
-
 unsigned int Util::GetCurrentThreadID()
 {
 // FIXME the implementation is far from complete
index 3a7971b28486546cb5997952700aa807ef19b44a..c26a7d2c59953a328f80d12f0377a7be410bb9d9 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmUtil.h,v $
   Language:  C++
-  Date:      $Date: 2005/08/22 15:38:05 $
-  Version:   $Revision: 1.60 $
+  Date:      $Date: 2005/08/22 16:17:54 $
+  Version:   $Revision: 1.61 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -50,7 +50,9 @@ public:
    static std::string GetCurrentDate();
    static std::string GetCurrentTime();
    static std::string GetCurrentDateTime();
-   static std::string GetVersion();
+   /// Provides a simple static GetVersion() function
+   static std::string GetVersion() 
+                      { return GDCM_VERSION;}
    static unsigned int GetCurrentThreadID();
    static unsigned int GetCurrentProcessID();
    static bool         IsCurrentProcessorBigEndian();
@@ -67,9 +69,9 @@ public:
    static const std::string &GetRootUID();
 
    static const uint8_t *GetFileMetaInformationVersion() 
-                     { return FileMetaInformationVersion;};
+                     { return FileMetaInformationVersion;}
    static void SetFileMetaInformationVersion( uint16_t fmiv )
-                     { FileMetaInformationVersion = (uint8_t *)&fmiv; };
+                     { FileMetaInformationVersion = (uint8_t *)&fmiv; }
 
 private:
    static std::string GetIPAddress(); //Do not expose this method