YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
SharedLibrary.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_OS_SHAREDLIBRARY_H
7#define YARP_OS_SHAREDLIBRARY_H
8
9#include <yarp/os/api.h>
10
11#include <string>
12
13#ifndef DOXYGEN_SHOULD_SKIP_THIS
14namespace yarp::os::impl {
15class SharedLibraryImpl;
16} // namespace yarp::os::impl
17#endif // DOXYGEN_SHOULD_SKIP_THIS
18
19namespace yarp::os {
20
26{
27public:
32
38 SharedLibrary(const char* filename);
39
40 SharedLibrary(const SharedLibrary&) = delete;
42
46 virtual ~SharedLibrary();
47
57 bool open(const char* filename);
58
63 bool close();
64
71 std::string error();
72
76 void* getSymbol(const char* symbolName);
77
83 bool isValid() const;
84
85#ifndef DOXYGEN_SHOULD_SKIP_THIS
86private:
88#endif // DOXYGEN_SHOULD_SKIP_THIS
89};
90
91} // namespace yarp::os
92
93#endif // YARP_OS_SHAREDLIBRARY_H
RandScalar * implementation(void *t)
A mini-server for performing network communication in the background.
Low-level wrapper for loading shared libraries (DLLs) and accessing symbols within it.
SharedLibrary(const SharedLibrary &)=delete
SharedLibrary & operator=(const SharedLibrary &)=delete
The components from which ports and connections are built.
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18