Mantid
Loading...
Searching...
No Matches
CheckMantidVersion.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 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
10#include "MantidDataHandling/DllConfig.h"
11
12namespace Mantid {
13namespace DataHandling {
14
18class MANTID_DATAHANDLING_DLL CheckMantidVersion : public API::Algorithm {
19public:
20 virtual ~CheckMantidVersion() = default;
21 const std::string name() const override;
22 int version() const override;
23 const std::string category() const override;
24 const std::string summary() const override;
25
26protected:
27 virtual std::string getVersionsFromGitHub(const std::string &url);
28 virtual std::string getCurrentVersion() const;
29
30private:
31 void init() override;
32 void exec() override;
33
34 std::string cleanVersionTag(const std::string &versionTag) const;
35 std::vector<int> splitVersionString(const std::string &versionString) const;
36 bool isVersionMoreRecent(const std::string &localVersion, const std::string &gitHubVersion) const;
37};
38
39} // namespace DataHandling
40} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
CheckMantidVersion : Checks if the current version of Mantid is the most recent.
Helper class which provides the Collimation Length for SANS instruments.