corelib/include/ebcl/inline/DynLib.hh

31 lines
811 B
C++
Raw Normal View History

/******************************************************************************/
/* DYNAMIC LIBRARIES - INLINE CODE ********************************************/
/******************************************************************************/
#ifndef _H_EBCL_INLINE_DYNLIB
#define _H_EBCL_INLINE_DYNLIB
#include <ebcl/DynLib.hh>
namespace ebcl {
/*= T_DynLib =================================================================*/
template< typename T >
inline T* T_DynLib::getPointer(
char const* const name ) const noexcept
{
return reinterpret_cast< T* >( getRawSymbol( name ) );
}
template< typename T >
inline std::function< T > T_DynLib::getFunction(
char const* const name ) const noexcept
{
return std::function< T >{ (F_CFunc< T >) getRawSymbol( name ) };
}
}
#endif // _H_EBCL_INLINE_DYNLIB