blocxx
BLOCXX_NAMESPACE::SharedLibraryLoader Class Referenceabstract

SharedLibraryLoader is the base class for a platform class for loading shared libraries. More...

#include <SharedLibraryLoader.hpp>

Inheritance diagram for BLOCXX_NAMESPACE::SharedLibraryLoader:
BLOCXX_NAMESPACE::IntrusiveCountableBase

Public Member Functions

virtual ~SharedLibraryLoader ()
 
virtual SharedLibraryRef loadSharedLibrary (const String &filename) const =0
 Load a shared library specified by filename.
 

Static Public Member Functions

static SharedLibraryLoaderRef createSharedLibraryLoader ()
 

Additional Inherited Members

- Protected Member Functions inherited from BLOCXX_NAMESPACE::IntrusiveCountableBase
 IntrusiveCountableBase ()
 
 IntrusiveCountableBase (const IntrusiveCountableBase &)
 
IntrusiveCountableBaseoperator= (const IntrusiveCountableBase &)
 
virtual ~IntrusiveCountableBase ()
 

Detailed Description

SharedLibraryLoader is the base class for a platform class for loading shared libraries.

Definition at line 55 of file SharedLibraryLoader.hpp.

Constructor & Destructor Documentation

◆ ~SharedLibraryLoader()

BLOCXX_NAMESPACE::SharedLibraryLoader::~SharedLibraryLoader ( )
virtual

Definition at line 45 of file SharedLibraryLoader.cpp.

Member Function Documentation

◆ createSharedLibraryLoader()

static SharedLibraryLoaderRef BLOCXX_NAMESPACE::SharedLibraryLoader::createSharedLibraryLoader ( )
static
Returns
A reference to an SharedLibraryLoader object.

Note: The implementation of createSharedLibraryLoader is contained in the platforms specific source file. Only one type of SharedLibraryLoader exists for a given system. The build system selects the correct one to build.

◆ loadSharedLibrary()

virtual SharedLibraryRef BLOCXX_NAMESPACE::SharedLibraryLoader::loadSharedLibrary ( const String & filename) const
pure virtual

Load a shared library specified by filename.

If the operation fails, the return value will be null ref counted pointer, and BLOCXX_LOG_ERROR(logger, ) will be called to report the details of the error. Exception safety: Strong

Parameters
filenameThe name of the shared library to load.
Returns
SharedLibraryRef owning representing the shared library identified by filename. NULL on failure.

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