MySQL 8.0.39
Source Code Documentation
mysql_harness::DynamicLoader Class Reference

Loader for DynamicLibrary. More...

#include <dynamic_loader.h>

Public Member Functions

 DynamicLoader ()
 
 DynamicLoader (std::string search_path)
 construct DynamicLoader with search_path. More...
 
stdx::expected< DynamicLibrary, std::error_code > load (const std::string &name) const
 load a shared library from path. More...
 
std::string error_msg () const
 get error message if load() failed with DynamicLoaderErrc::DlError. More...
 
std::string search_path () const
 get current search path. More...
 

Private Attributes

std::string search_path_
 
std::string error_msg_
 

Detailed Description

Loader for DynamicLibrary.

Constructor & Destructor Documentation

◆ DynamicLoader() [1/2]

mysql_harness::DynamicLoader::DynamicLoader ( )
inline

◆ DynamicLoader() [2/2]

mysql_harness::DynamicLoader::DynamicLoader ( std::string  search_path)
inlineexplicit

construct DynamicLoader with search_path.

Member Function Documentation

◆ error_msg()

std::string mysql_harness::DynamicLoader::error_msg ( ) const
inline

get error message if load() failed with DynamicLoaderErrc::DlError.

◆ load()

stdx::expected< DynamicLibrary, std::error_code > mysql_harness::DynamicLoader::load ( const std::string &  name) const

load a shared library from path.

Parameters
namelibrary name without suffix
Returns
DynamicLibrary on success, std::error_code on failure

◆ search_path()

std::string mysql_harness::DynamicLoader::search_path ( ) const
inline

get current search path.

Member Data Documentation

◆ error_msg_

std::string mysql_harness::DynamicLoader::error_msg_
mutableprivate

◆ search_path_

std::string mysql_harness::DynamicLoader::search_path_
private

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