camcom 1.0.0-pre2
 
Loading...
Searching...
No Matches
adapter_loader.hpp
Go to the documentation of this file.
1
6
7#ifndef CAMCOM_TESTBENCH_ADAPTER_LOADER_HPP
8#define CAMCOM_TESTBENCH_ADAPTER_LOADER_HPP
9
11#include <string>
12
13namespace camcom { namespace common { class AdapterBase; }}
14
15namespace camcom::server {
16
22public:
23 AdapterLoader() = default;
25
26 // Non-copyable
27 AdapterLoader(const AdapterLoader&) = delete;
29
37
42 static std::string getLastError();
43
44private:
45 void* library_handle_{nullptr};
46};
47
48} // namespace camcom::server
49
50#endif // CAMCOM_TESTBENCH_ADAPTER_LOADER_HPP
Definition adapterBase.hpp:69
AdapterLoader(const AdapterLoader &)=delete
camcom::common::AdapterBase * load(const AdapterConfig &config)
Load adapter from shared library.
Definition adapter_loader.cpp:19
static std::string getLastError()
Get last error message.
Definition adapter_loader.cpp:75
~AdapterLoader()
Definition adapter_loader.cpp:13
AdapterLoader & operator=(const AdapterLoader &)=delete
Definition adapterBase.cpp:18
Definition adapter_loader.cpp:11
Definition adapterBase.cpp:18
Adapter configuration.
Definition config.hpp:20