Mantid
Loading...
Searching...
No Matches
DllOpen.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2007 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 <string>
10
11#include "MantidKernel/DllConfig.h"
12
13namespace Mantid {
14namespace Kernel {
15
24class MANTID_KERNEL_DLL DllOpen {
25public:
26 // Unconstructible
27 DllOpen() = delete;
28 // Not copyable
29 DllOpen(const DllOpen &) = delete;
30 ~DllOpen() = delete;
31
32public:
34 static bool isValidFilename(const std::string &filename);
35
37 static void *openDll(const std::string &filepath);
38
40 static void closeDll(void *handle);
41
42private:
43};
44
45} // namespace Kernel
46} // namespace Mantid
Simple class for opening shared libraries at run-time.
Definition: DllOpen.h:24
DllOpen(const DllOpen &)=delete
Helper class which provides the Collimation Length for SANS instruments.