Newer
Older
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#include "MantidKernel/LibraryWrapper.h"
namespace Mantid {
namespace Kernel {
/**
* Move constructor
* @param src Constructor from this temporary
*/
LibraryWrapper::LibraryWrapper(LibraryWrapper &&src) noexcept {
*this = std::move(src);
}
/**
* Move assignment
* @param rhs Temporary object as source of assignment
*/
LibraryWrapper &LibraryWrapper::operator=(LibraryWrapper &&rhs) noexcept {
using std::swap;
swap(m_module, rhs.m_module);
return *this;
}
LibraryWrapper::~LibraryWrapper() {
// Close lib
if (m_module) {
DllOpen::closeDll(m_module);
m_module = nullptr;
Gigg, Martyn Anthony
committed
}
* @param filepath :: The filepath to the directory where the library is.
Janik Zikovsky
committed
* @return True if DLL is opened or already open
bool LibraryWrapper::openLibrary(const std::string &filepath) {
// Load dynamically loaded library
Gigg, Martyn Anthony
committed
return false;
}
}
return true;
} // namespace Kernel
} // namespace Mantid