camcom 1.0.0-pre2
 
Loading...
Searching...
No Matches
camcom::server::AdapterLoader Class Reference

Dynamic adapter loader Loads CamCom adapters from shared libraries at runtime. More...

#include <adapter_loader.hpp>

Public Member Functions

 AdapterLoader ()=default
 
 ~AdapterLoader ()
 
 AdapterLoader (const AdapterLoader &)=delete
 
AdapterLoaderoperator= (const AdapterLoader &)=delete
 
camcom::common::AdapterBaseload (const AdapterConfig &config)
 Load adapter from shared library.
 

Static Public Member Functions

static std::string getLastError ()
 Get last error message.
 

Detailed Description

Dynamic adapter loader Loads CamCom adapters from shared libraries at runtime.

Constructor & Destructor Documentation

◆ AdapterLoader() [1/2]

camcom::server::AdapterLoader::AdapterLoader ( )
default

◆ ~AdapterLoader()

camcom::server::AdapterLoader::~AdapterLoader ( )

◆ AdapterLoader() [2/2]

camcom::server::AdapterLoader::AdapterLoader ( const AdapterLoader & )
delete

Member Function Documentation

◆ getLastError()

std::string camcom::server::AdapterLoader::getLastError ( )
static

Get last error message.

Returns
Error string

◆ load()

camcom::common::AdapterBase * camcom::server::AdapterLoader::load ( const AdapterConfig & config)

Load adapter from shared library.

Parameters
configAdapter configuration
Returns
Loaded adapter instance (raw pointer, caller owns deletion)
Exceptions
std::runtime_errorif loading fails

◆ operator=()

AdapterLoader & camcom::server::AdapterLoader::operator= ( const AdapterLoader & )
delete

The documentation for this class was generated from the following files: