SharedLibrary_VX.h 1.0 KB

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