Mantid
Loading...
Searching...
No Matches
Glob.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2008 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
14#include <set>
15#include <string>
16
17namespace Mantid {
18namespace Kernel {
26class MANTID_KERNEL_DLL Glob {
27public:
29 static constexpr int GLOB_DEFAULT = 0;
30 static constexpr int GLOB_CASELESS = 4;
31
33 static void glob(const std::string &pathPattern, std::set<std::string> &files, int options = 0);
34
39 static std::string globToRegex(const std::string &globPattern);
40};
41
42} // namespace Kernel
43} // namespace Mantid
This Glob class uses the glob() method of Poco::Glob class to make it more reliable.
Definition Glob.h:26
Helper class which provides the Collimation Length for SANS instruments.