#include <SharedLibraryManager.hpp>
|
std::shared_ptr< SharedLibrary > | load (const boost::filesystem::path &path) |
| Loads the shared library with the specified path. More...
|
|
◆ getSingleton()
Returns reference of the singleton.
◆ getSingletonPtr()
Returns pointer of the singleton.
◆ load()
std::shared_ptr< SharedLibrary > dart::common::detail::SharedLibraryManager::load |
( |
const boost::filesystem::path & |
path | ) |
|
Loads the shared library with the specified path.
- Parameters
-
[in] | path | The path to the shared library. If the path doesn't include the extension, this function will use the best guess depending on the OS (e.g., '.so' for Linux, '.dylib' for macOS, and '.dll' for Windows). |
- Returns
- Pointer to the shared library upon success. Otherwise, returns nullptr.
◆ Singleton< SharedLibraryManager >
◆ mInstance
◆ mLibraries
std::unordered_map< boost::filesystem::path, std::weak_ptr<SharedLibrary> > dart::common::detail::SharedLibraryManager::mLibraries |
|
protected |
Map from library path to the library instances.