Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef GDCMVERSION_H
00016 #define GDCMVERSION_H
00017
00018 #include "gdcmTypes.h"
00019 #include <iostream>
00020
00021 namespace gdcm
00022 {
00027
00028 class GDCM_EXPORT Version
00029 {
00030 friend std::ostream& operator<<(std::ostream &_os, const Version &v);
00031 public :
00032 static const char *GetVersion();
00033 static int GetMajorVersion();
00034 static int GetMinorVersion();
00035 static int GetBuildVersion();
00036
00037 void Print(std::ostream &os = std::cout) const;
00038
00039
00040 Version() {};
00041 ~Version() {};
00042 };
00043
00044 inline std::ostream& operator<<(std::ostream &os, const Version &v)
00045 {
00046 v.Print( os );
00047 return os;
00048 }
00049
00050 }
00051
00052 #endif //GDCMVERSION_H