SharedLibrary_WIN32U.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // SharedLibrary_WIN32U.h
  3. //
  4. // $Id: //poco/1.4/Foundation/include/Poco/SharedLibrary_WIN32U.h#2 $
  5. //
  6. // Library: Foundation
  7. // Package: SharedLibrary
  8. // Module: SharedLibrary
  9. //
  10. // Definition of the SharedLibraryImpl class for Win32.
  11. //
  12. // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
  13. // and Contributors.
  14. //
  15. // SPDX-License-Identifier: BSL-1.0
  16. //
  17. #ifndef Foundation_SharedLibrary_WIN32U_INCLUDED
  18. #define Foundation_SharedLibrary_WIN32U_INCLUDED
  19. #include "Poco/Foundation.h"
  20. #include "Poco/Mutex.h"
  21. namespace Poco {
  22. class Foundation_API SharedLibraryImpl
  23. {
  24. protected:
  25. SharedLibraryImpl();
  26. ~SharedLibraryImpl();
  27. void loadImpl(const std::string& path, int flags);
  28. void unloadImpl();
  29. bool isLoadedImpl() const;
  30. void* findSymbolImpl(const std::string& name);
  31. const std::string& getPathImpl() const;
  32. static std::string suffixImpl();
  33. private:
  34. std::string _path;
  35. void* _handle;
  36. static FastMutex _mutex;
  37. };
  38. } // namespace Poco
  39. #endif // Foundation_SharedLibrary_WIN32U_INCLUDED