SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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

SHOGUN Machine Learning Toolbox - Documentation