1 #ifndef _library__loadlib__hpp__included__
2 #define _library__loadlib__hpp__included__
7 #if defined(_WIN32) || defined(_WIN64)
20 * Parameter filename: The name of file.
21 * Throws std::bad_alloc: Not enough memory.
22 * Throws std::runtime_error: Error loading shared library.
24 loaded_library(const std::string
& filename
) throw(std::bad_alloc
, std::runtime_error
);
28 ~loaded_library() throw();
32 * Parameter symbol: The symbol to look up.
33 * Returns: The symbol value.
34 * Throws std::bad_alloc: Not enough memory.
35 * Throws std::runtime_error: Error looking up the symbol.
37 void* operator[](const std::string
& symbol
) throw(std::bad_alloc
, std::runtime_error
);
39 * See what libraries are called on this platform.
41 * Returns: The name of library.
43 static const std::string
& call_library() throw();
45 * See what standard library extension is on this platform.
47 * Returns: The extension of library.
49 static const std::string
& call_library_ext() throw();
51 loaded_library(const loaded_library
&);
52 loaded_library
& operator=(const loaded_library
&);
53 #if defined(_WIN32) || defined(_WIN64)
55 #elif !defined(NO_DLFCN)