38 #ifndef BLOCXX_DL_SHAREDLIBRARY_HPP_INCLUDE_GUARD_
39 #define BLOCXX_DL_SHAREDLIBRARY_HPP_INCLUDE_GUARD_
40 #include "blocxx/BLOCXX_config.h"
41 #if defined(BLOCXX_USE_DL)
46 #if defined(BLOCXX_USE_FAKE_LIBS)
53 namespace BLOCXX_NAMESPACE
60 class dlSharedLibrary :
public SharedLibrary
63 dlSharedLibrary(
void * libhandle,
const String& libName);
64 virtual ~dlSharedLibrary();
73 static void setCallDlclose(
bool callDlclose)
75 s_call_dlclose = callDlclose;
81 static bool isFakeLibrary(
const String& library_path);
93 virtual bool doGetFunctionPointer(
const String& functionName,
100 dlSharedLibrary(
const dlSharedLibrary&);
101 dlSharedLibrary& operator=(
const dlSharedLibrary&);
103 #if defined(BLOCXX_USE_FAKE_LIBS)
105 Map<String, String> m_symbolMap;
107 void initializeSymbolMap();
110 static bool s_call_dlclose;
116 #endif // BLOCXX_USE_DL