Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::IDynamicLibraryLoader Class Referenceabstract

Interface of a dynamic library loader. More...

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/base/arccore/base/internal/IDynamicLibraryLoader.h>

Inheritance diagram for Arcane::IDynamicLibraryLoader:
Collaboration diagram for Arcane::IDynamicLibraryLoader:

Public Member Functions

virtual ~IDynamicLibraryLoader ()=default
 Releases resources.
virtual void build ()=0
virtual IDynamicLibraryopen (const String &directory, const String &name)=0
 Loads a dynamic library.
virtual void closeLibraries ()=0
 Closes all libraries opened via open().

Static Public Member Functions

static IDynamicLibraryLoadergetDefault ()
 Service used for dynamically loading libraries.

Detailed Description

Interface of a dynamic library loader.

.

Definition at line 63 of file IDynamicLibraryLoader.h.

Member Function Documentation

◆ closeLibraries()

virtual void Arcane::IDynamicLibraryLoader::closeLibraries ( )
pure virtual

Closes all libraries opened via open().

Implemented in Arcane::GlibDynamicLibraryLoader.

References getDefault().

Here is the call graph for this function:

◆ getDefault()

IDynamicLibraryLoader * Arcane::IDynamicLibraryLoader::getDefault ( )
static

Service used for dynamically loading libraries.

Definition at line 208 of file GlibDynamicLibraryLoader.cc.

Referenced by Arcane::ArcaneMain::arcaneFinalize(), Arcane::Application::build(), closeLibraries(), and Arcane::Accelerator::Impl::RuntimeLoader::loadRuntime().

Here is the caller graph for this function:

◆ open()

virtual IDynamicLibrary * Arcane::IDynamicLibraryLoader::open ( const String & directory,
const String & name )
pure virtual

Loads a dynamic library.

Loads the library named name which is located in the directory directory. Returns a null pointer if the library cannot be loaded. name must be a name without prefix and without machine-dependent extension. For example, on linux, if the library is libtoto.so, name must be toto.

Implemented in Arcane::GlibDynamicLibraryLoader.

Referenced by Arcane::Application::build().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: