From: Christian P. <cp...@us...> - 2004-12-25 07:02:34
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19443/include/pclasses/System Modified Files: SharedLib.h Log Message: Added SharedLibCache to dl, shl, win32 impls. Added SharedLib::extension() Index: SharedLib.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/System/SharedLib.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- SharedLib.h 24 Dec 2004 19:17:45 -0000 1.5 +++ SharedLib.h 25 Dec 2004 07:02:16 -0000 1.6 @@ -86,15 +86,13 @@ void* operator[](const std::string& symbol) throw(RuntimeError); - // TODO: - // static std::string sharedLibExtension(); - // returns "so", "dll", etc. + //! Returns the platform-specific shared lib extension + static const char* extension(); private: - unsigned long _handle; + unsigned long _handle; }; -#ifdef PCLASSES_WITH_STL /** Simply opens the given DLL name, using the platform-specific SharedLib handler. @@ -103,8 +101,7 @@ by this function and will be cleaned up during application shut-down (post-main()). */ - SharedLib * openSharedLib( const std::string & path ) throw(RuntimeError); -#endif // PCLASSES_WITH_STL +SharedLib *openSharedLib( const std::string & path ) throw(RuntimeError); } // !namespace System |