SHOGUN  v2.0.0
 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/base/init.h>
12 
13 #include <shogun/lib/common.h>
14 #include <shogun/io/SGIO.h>
16 #include <shogun/lib/config.h>
17 
18 #ifndef VERSION_H__
19 #define VERSION_H__
20 
21 namespace shogun
22 {
23 class IO;
24 
31 class Version
32 {
33 public:
35  Version();
37  virtual ~Version();
38 
40  static void print_version();
41 
43  static const char* get_version_extra();
44 
46  static const char* get_version_release();
47 
49  static int32_t get_version_revision();
50 
52  static int32_t get_version_year();
53 
55  static int32_t get_version_month();
56 
58  static int32_t get_version_day();
59 
61  static int32_t get_version_hour();
62 
64  static int32_t get_version_minute();
65 
67  static int32_t get_version_parameter();
68 
70  static int64_t get_version_in_minutes();
71 
75  int32_t ref();
76 
80  int32_t ref_count() const;
81 
85  int32_t unref();
86 
87 protected:
89  static const char version_release[128];
91  static const char version_extra[128];
92 
94  static const int32_t version_revision;
96  static const int32_t version_year;
98  static const int32_t version_month;
100  static const int32_t version_day;
102  static const int32_t version_hour;
104  static const int32_t version_minute;
106  static const int32_t version_parameter;
107 
108 private:
109  int32_t refcount;
110 };
111 }
112 #endif

SHOGUN Machine Learning Toolbox - Documentation