|
Mantid
|
Class for wrapping a shared library. More...
#include <Kernel/LibraryWrapperr.h>
Public Member Functions | |
| LibraryWrapper ()=default | |
| LibraryWrapper (const LibraryWrapper &)=delete | |
| LibraryWrapper (LibraryWrapper &&src) noexcept | |
| Move constructor. More... | |
| bool | openLibrary (const std::string &filepath) |
| Opens a DLL. More... | |
| LibraryWrapper & | operator= (const LibraryWrapper &)=delete |
| LibraryWrapper & | operator= (LibraryWrapper &&rhs) noexcept |
| Move assignment. More... | |
| ~LibraryWrapper () | |
| Destructor. More... | |
Private Attributes | |
| void * | m_module = nullptr |
| An untyped pointer to the loaded library. More... | |
|
default |
|
delete |
|
noexcept |
Move constructor.
| src | Constructor from this temporary |
Definition at line 16 of file LibraryWrapper.cpp.
| Mantid::Kernel::LibraryWrapper::~LibraryWrapper | ( | ) |
Destructor.
Definition at line 29 of file LibraryWrapper.cpp.
References Mantid::Kernel::DllOpen::closeDll(), and m_module.
| bool Mantid::Kernel::LibraryWrapper::openLibrary | ( | const std::string & | filepath | ) |
Opens a DLL.
| filepath | :: The filepath to the directory where the library is. |
Definition at line 41 of file LibraryWrapper.cpp.
References m_module, and Mantid::Kernel::DllOpen::openDll().
Referenced by Mantid::Kernel::LibraryManagerImpl::openLibrary().
|
delete |
|
noexcept |
Move assignment.
| rhs | Temporary object as source of assignment |
Definition at line 22 of file LibraryWrapper.cpp.
References rhs, and Mantid::Kernel::swap().
|
private |
An untyped pointer to the loaded library.
This is created and deleted by this class.
Definition at line 42 of file LibraryWrapper.h.
Referenced by openLibrary(), and ~LibraryWrapper().