Mantid
Loading...
Searching...
No Matches
InstrumentFileFinder.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2020 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#include "MantidAPI/DllConfig.h"
10
11#include <string>
12#include <vector>
13
14namespace Mantid::API {
15
16class MANTID_API_DLL InstrumentFileFinder {
17public:
20 static std::string getParameterPath(const std::string &instName, const std::string &dirHint = "");
21
23 static std::string getInstrumentFilename(const std::string &instrumentName, const std::string &date = "");
24
26 static std::vector<std::string> getResourceFilenames(const std::string &prefix,
27 const std::vector<std::string> &fileFormats,
28 const std::vector<std::string> &directoryNames,
29 const std::string &date);
30
32 static void getValidFromTo(const std::string &IDFfilename, std::string &outValidFrom, std::string &outValidTo);
33
34private:
35 static std::string lookupIPF(const std::string &dir, std::string filename);
36};
37
38} // Namespace Mantid::API
list getResourceFilenames(const std::string &prefix, const list &fileFormats, const list &directoryNames, const std::string &date)
Converter from C++ signature to python signature.