SharedLibrary_VMS.h 1002 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // SharedLibrary_VMS.h
  3. //
  4. // $Id: //poco/1.4/Foundation/include/Poco/SharedLibrary_VMS.h#2 $
  5. //
  6. // Library: Foundation
  7. // Package: SharedLibrary
  8. // Module: SharedLibrary
  9. //
  10. // Definition of the SharedLibraryImpl class for VMS (dlopen).
  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_VMS_INCLUDED
  18. #define Foundation_SharedLibrary_VMS_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. static FastMutex _mutex;
  36. };
  37. } // namespace Poco
  38. #endif // Foundation_SharedLibrary_VMS_INCLUDED