GDCM  2.2.0
gdcmVersion.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program: GDCM (Grassroots DICOM). A DICOM library
00004 
00005   Copyright (c) 2006-2011 Mathieu Malaterre
00006   All rights reserved.
00007   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
00008 
00009      This software is distributed WITHOUT ANY WARRANTY; without even
00010      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00011      PURPOSE.  See the above copyright notice for more information.
00012 
00013 =========================================================================*/
00014 #ifndef GDCMVERSION_H
00015 #define GDCMVERSION_H
00016 
00017 #include "gdcmTypes.h"
00018 #include <iostream>
00019 
00020 namespace gdcm
00021 {
00026 //-----------------------------------------------------------------------------
00027 class GDCM_EXPORT Version
00028 {
00029   friend std::ostream& operator<<(std::ostream &_os, const Version &v);
00030 public :
00031   static const char *GetVersion();
00032   static int GetMajorVersion();
00033   static int GetMinorVersion();
00034   static int GetBuildVersion();
00035 
00036   void Print(std::ostream &os = std::cout) const;
00037 
00038 //protected:
00039   Version() {};
00040   ~Version() {};
00041 };
00042 //-----------------------------------------------------------------------------
00043 inline std::ostream& operator<<(std::ostream &os, const Version &v)
00044 {
00045   v.Print( os );
00046   return os;
00047 }
00048 
00049 } // end namespace gdcm
00050 //-----------------------------------------------------------------------------
00051 #endif //GDCMVERSION_H

Generated on Fri May 25 2012 13:12:44 for GDCM by doxygen 1.8.0
SourceForge.net Logo