Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #ifndef Foundation_SharedLibrary_INCLUDED
00040 #define Foundation_SharedLibrary_INCLUDED
00041
00042
00043 #include "Poco/Foundation.h"
00044
00045
00046 #if defined(hpux) || defined(_hpux)
00047 #include "Poco/SharedLibrary_HPUX.h"
00048 #elif defined(POCO_OS_FAMILY_UNIX)
00049 #include "Poco/SharedLibrary_UNIX.h"
00050 #elif defined(POCO_OS_FAMILY_WINDOWS) && defined(POCO_WIN32_UTF8)
00051 #include "Poco/SharedLibrary_WIN32U.h"
00052 #elif defined(POCO_OS_FAMILY_WINDOWS)
00053 #include "Poco/SharedLibrary_WIN32.h"
00054 #elif defined(POCO_OS_FAMILY_VMS)
00055 #include "Poco/SharedLibrary_VMS.h"
00056 #endif
00057
00058
00059 namespace Poco {
00060
00061
00062 class Foundation_API SharedLibrary: private SharedLibraryImpl
00065 {
00066 public:
00067 SharedLibrary();
00069
00070 SharedLibrary(const std::string& path);
00073
00074 virtual ~SharedLibrary();
00077
00078 void load(const std::string& path);
00084
00085 void unload();
00087
00088 bool isLoaded() const;
00090
00091 bool hasSymbol(const std::string& name);
00094
00095 void* getSymbol(const std::string& name);
00101
00102 const std::string& getPath() const;
00106
00107 static std::string suffix();
00112
00113 private:
00114 SharedLibrary(const SharedLibrary&);
00115 SharedLibrary& operator = (const SharedLibrary&);
00116 };
00117
00118
00119 }
00120
00121
00122 #endif // Foundation_SharedLibrary_INCLUDED