Mantid
Loading...
Searching...
No Matches
MantidVersion.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
12#include "MantidKernel/DllConfig.h"
13#include "MantidTypes/Core/DateAndTime.h"
14#include <string>
15
16namespace Mantid {
17namespace Kernel {
21class MANTID_KERNEL_DLL MantidVersion {
22public:
23 struct VersionInfo {
24 std::string major;
25 std::string minor;
26 std::string patch;
27 std::string tweak;
28 };
29
30 static const std::string &version();
31 static const std::string &versionShort();
32 static const VersionInfo versionInfo();
33 static std::string releaseNotes();
34 static const std::string &revision();
35 static const std::string &revisionFull();
36 static Types::Core::DateAndTime releaseDateAndTime();
37 static std::string releaseDate();
38 static std::string doi();
39 static const std::string &paperCitation();
40 static std::string versionForReleaseNotes(const VersionInfo &);
41
42private:
44};
45
46} // namespace Kernel
47} // namespace Mantid
Class containing static methods to return the Mantid version number and date.
MantidVersion()
Private, unimplemented constructor. Not a class that can be instantiated.
Helper class which provides the Collimation Length for SANS instruments.