GDCM: gdcmVersion.h Source File

GDCM 3.2.11

gdcmVersion.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMVERSION_H
15#define GDCMVERSION_H
16
17#include "gdcmTypes.h"
18#include <iostream>
19
20namespace gdcm
21{
26//-----------------------------------------------------------------------------
27 class GDCM_EXPORT Version
28{
29 friend std::ostream& operator<<(std::ostream &_os, const Version &v);
30public :
31 static const char *GetVersion();
32 static int GetMajorVersion();
33 static int GetMinorVersion();
34 static int GetBuildVersion();
35
36 void Print(std::ostream &os = std::cout) const;
37
38//protected:
39 Version() = default;
40 ~Version() = default;
41};
42//-----------------------------------------------------------------------------
43 inline std::ostream& operator<<(std::ostream &os, const Version &v)
44{
45 v.Print( os );
46 return os;
47}
48
49} // end namespace gdcm
50//-----------------------------------------------------------------------------
51#endif //GDCMVERSION_H
gdcm::Version::GetBuildVersion
static int GetBuildVersion()
gdcm::Version::operator<<
friend std::ostream & operator<<(std::ostream &_os, const Version &v)
Definition gdcmVersion.h:43
gdcm::Version::GetMinorVersion
static int GetMinorVersion()
gdcm::Version::~Version
~Version()=default
gdcm::Version::Version
Version()=default
gdcm::Version::GetMajorVersion
static int GetMajorVersion()
gdcm::Version::Print
void Print(std::ostream &os=std::cout) const
gdcm::Version::GetVersion
static const char * GetVersion()
gdcmTypes.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21