FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTversion.hpp
Go to the documentation of this file.
1
2/*
3Copyright (c) 2019 Gouvernement du Québec
4
5SPDX-License-Identifier: LiLiQ-R-1.1
6License-Filename: LICENSES/EN/LiLiQ-R11unicode.txt
7*/
8
9#ifndef FMTVERSION_H_INCLUDED
10#define FMTVERSION_H_INCLUDED
11
12#include <string>
13#include <vector>
14
15#ifndef FMT_MAJOR
16 #define FMT_MAJOR 0
17#endif
18
19#ifndef FMT_MINOR
20 #define FMT_MINOR 0
21#endif
22
23#ifndef FMT_PATCH
24 #define FMT_PATCH 0
25#endif
26
27#include "FMTobject.hpp"
28
30namespace Version
31{
32// DocString: FMTversion
42 {
43 public:
44 // DocString: FMTversion()
48 FMTversion()=default;
49 // DocString: ~FMTversion()
53 ~FMTversion()=default;
54 // DocString: FMTversion::getmajor
58 static int getmajor();
59 // DocString: FMTversion::getminor
63 static int getminor();
64 // DocString: FMTversion::getpatch
68 static int getpatch();
69 // DocString: FMTversion::getversion
73 static std::string getversion();
74 // DocString: FMTversion::getdatenow
78 static std::string getdatenow();
79 // DocString: FMTversion::getbuilddate
83 static std::string getbuilddate();
84 // DocString: FMTversion::isatleast
88 static bool isatleast(int major, int minor, int patch);
89 // DocString: FMTversion::hasfeature
94 static bool hasfeature(const std::string& name);
95 // DocString: FMTversion::getlicense
99 static std::string getlicense(bool french=false);
100 };
101}
102
103#endif
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTobject.hpp:50
Definition: FMTversion.hpp:42
static std::string getversion()
static std::string getlicense(bool french=false)
static bool hasfeature(const std::string &name)
static int getpatch()
static std::string getdatenow()
static int getmajor()
static int getminor()
static bool isatleast(int major, int minor, int patch)
static std::string getbuilddate()
Namespace for handling FMT versions and features.
Definition: FMTversion.hpp:31