#include <SharedLibraryManager.hpp>
|
std::shared_ptr< SharedLibrary > | load (const boost::filesystem::path &path) |
| Loads the shared library with the specified path. More...
|
|
std::shared_ptr< SharedLibrary > | load (const std::string &path) |
| Loads the shared library with the specified path. More...
|
|
◆ getSingleton()
Returns reference of the singleton.
◆ getSingletonPtr()
Returns pointer of the singleton.
◆ load() [1/2]
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.
- Deprecated:
- Deprecated in 6.10. Please use load(const std::string&) instead.
◆ load() [2/2]
std::shared_ptr< SharedLibrary > dart::common::detail::SharedLibraryManager::load |
( |
const std::string & |
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.
◆ mSharedLibraries
std::unordered_map<std::string, std::weak_ptr<SharedLibrary> > dart::common::detail::SharedLibraryManager::mSharedLibraries |
|
protected |
Map from library path to the library instances.