00001
00002
00003
00004
00005 #ifndef BALL_COMMON_VERSION_H
00006 #define BALL_COMMON_VERSION_H
00007
00008 #ifndef BALL_COMMON_EXCEPTION_H
00009 # include <BALL/COMMON/exception.h>
00010 #endif
00011
00012 #ifndef BALL_COMMON_GLOBAL_H
00013 # include <BALL/COMMON/global.h>
00014 #endif
00015
00016
00017
00018
00019 #define BALL_RELEASE_STRING "1.4.0"
00020
00021 namespace BALL
00022 {
00023
00034 class BALL_EXPORT VersionInfo
00035 {
00036 public:
00037
00040 enum Type
00041 {
00042 STABLE,
00043 ALPHA,
00044 BETA,
00045 NONPUBLIC,
00046 PRERELEASE,
00047 PATCHLVL,
00048 UNKNOWN
00049 };
00050
00053 static const char* getVersion() ;
00054
00058 static int getMajorRevision() throw(Exception::InvalidFormat);
00059
00063 static int getMinorRevision() throw(Exception::InvalidFormat);
00064
00068 static Type getType() ;
00069
00070
00071 protected:
00072
00073 static const char* RELEASE_DATE_AND_TIME;
00074 static const char* RELEASE_WHAT_STRING;
00075 };
00076
00077 }
00078
00079 #endif // BALL_COMMON_VERSION_H