Arcane  4.2.3.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::NativeLoading::NativeLoader Class Reference
Inheritance diagram for Arcane::NativeLoading::NativeLoader:
Collaboration diagram for Arcane::NativeLoading::NativeLoader:

Public Member Functions

void build () override
IDynamicLibrary * open (const String &directory, const String &name) override
 Loads a dynamic library.
void closeLibraries () override
 Closes all libraries opened via open().
void removeInstance (NativeLibrary *library)
Public Member Functions inherited from Arcane::IDynamicLibraryLoader
virtual ~IDynamicLibraryLoader ()=default
 Releases resources.

Private Member Functions

IDynamicLibrary * _tryOpen (const std::string &path)

Private Attributes

bool m_is_verbose = false
std::set< NativeLibrary * > m_opened_libraries

Additional Inherited Members

Static Public Member Functions inherited from Arcane::IDynamicLibraryLoader
static IDynamicLibraryLoader * getDefault ()
 Service used for dynamically loading libraries.

Detailed Description

Definition at line 120 of file NativeDynamicLibraryLoader.cc.

Constructor & Destructor Documentation

◆ NativeLoader()

Arcane::NativeLoading::NativeLoader::NativeLoader ( )
inline

Definition at line 125 of file NativeDynamicLibraryLoader.cc.

Member Function Documentation

◆ _tryOpen()

IDynamicLibrary * Arcane::NativeLoading::NativeLoader::_tryOpen ( const std::string & path)
private

Definition at line 171 of file NativeDynamicLibraryLoader.cc.

◆ build()

void Arcane::NativeLoading::NativeLoader::build ( )
inlineoverridevirtual

Implements Arcane::IDynamicLibraryLoader.

Definition at line 131 of file NativeDynamicLibraryLoader.cc.

◆ closeLibraries()

void Arcane::NativeLoading::NativeLoader::closeLibraries ( )
overridevirtual

Closes all libraries opened via open().

Implements Arcane::IDynamicLibraryLoader.

Definition at line 216 of file NativeDynamicLibraryLoader.cc.

◆ open()

IDynamicLibrary * Arcane::NativeLoading::NativeLoader::open ( const String & directory,
const String & name )
overridevirtual

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.

Implements Arcane::IDynamicLibraryLoader.

Definition at line 194 of file NativeDynamicLibraryLoader.cc.

◆ removeInstance()

void Arcane::NativeLoading::NativeLoader::removeInstance ( NativeLibrary * library)

Definition at line 229 of file NativeDynamicLibraryLoader.cc.

Member Data Documentation

◆ m_is_verbose

bool Arcane::NativeLoading::NativeLoader::m_is_verbose = false
private

Definition at line 143 of file NativeDynamicLibraryLoader.cc.

◆ m_opened_libraries

std::set<NativeLibrary*> Arcane::NativeLoading::NativeLoader::m_opened_libraries
private

Definition at line 144 of file NativeDynamicLibraryLoader.cc.


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