SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Version.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 1999-2009 Soeren Sonnenburg
8  * Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max Planck Society
9  */
10 
11 #include <shogun/lib/common.h>
12 
13 #ifndef VERSION_H__
14 #define VERSION_H__
15 
16 #include <shogun/lib/config.h>
17 
18 namespace shogun
19 {
20 class RefCount;
21 
28 class Version
29 {
30 public:
32  Version();
34  virtual ~Version();
35 
37  static void print_version();
38 
40  static const char* get_version_extra();
41 
43  static const char* get_version_release();
44 
46  static int32_t get_version_revision();
47 
49  static int32_t get_version_year();
50 
52  static int32_t get_version_month();
53 
55  static int32_t get_version_day();
56 
58  static int32_t get_version_hour();
59 
61  static int32_t get_version_minute();
62 
64  static int32_t get_version_parameter();
65 
67  static int64_t get_version_in_minutes();
68 
72  int32_t ref();
73 
77  int32_t ref_count() const;
78 
82  int32_t unref();
83 
84 protected:
86  static const char version_release[128];
88  static const char version_extra[128];
89 
91  static const int32_t version_revision;
93  static const int32_t version_year;
95  static const int32_t version_month;
97  static const int32_t version_day;
99  static const int32_t version_hour;
101  static const int32_t version_minute;
103  static const int32_t version_parameter;
104 
105 private:
106  RefCount* m_refcount;
107 };
108 }
109 #endif
int32_t unref()
Definition: Version.cpp:126
static const char * get_version_release()
Definition: Version.cpp:71
virtual ~Version()
Definition: Version.cpp:39
static const char * get_version_extra()
Definition: Version.cpp:66
static int32_t get_version_hour()
Definition: Version.cpp:96
int32_t ref_count() const
Definition: Version.cpp:121
static int32_t get_version_year()
Definition: Version.cpp:81
static int32_t get_version_month()
Definition: Version.cpp:86
static int32_t get_version_parameter()
Definition: Version.cpp:106
static const char version_release[128]
Definition: Version.h:86
static const char version_extra[128]
Definition: Version.h:88
static int32_t get_version_day()
Definition: Version.cpp:91
static const int32_t version_revision
Definition: Version.h:91
static const int32_t version_day
Definition: Version.h:97
static const int32_t version_year
Definition: Version.h:93
static const int32_t version_hour
Definition: Version.h:99
Class Version provides version information.
Definition: Version.h:28
static const int32_t version_parameter
Definition: Version.h:103
static const int32_t version_month
Definition: Version.h:95
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
static int64_t get_version_in_minutes()
Definition: Version.cpp:111
static int32_t get_version_revision()
Definition: Version.cpp:76
static int32_t get_version_minute()
Definition: Version.cpp:101
int32_t ref()
Definition: Version.cpp:116
static const int32_t version_minute
Definition: Version.h:101
static void print_version()
Definition: Version.cpp:44

SHOGUN Machine Learning Toolbox - Documentation