OGLplus  (0.59.0) a C++ wrapper for rendering APIs

Wrapper for a handle to dynamically linkable executable module. More...

#include <eagine/dynamic_library.hpp>

Public Types

using handle_type = void *
 Alias for the handle type.
 

Public Member Functions

 executable_module () noexcept=default
 Default constructor.
 
 executable_module (const executable_module &)=delete
 Not move constructible.
 
 executable_module (executable_module &&)=delete
 Not copy constructible.
 
auto operator= (const executable_module &)=delete
 Not move assignable.
 
auto operator= (executable_module &&)=delete
 Not copy assignable.
 
 ~executable_module () noexcept
 Closes the handle.
 
auto is_open () const noexcept -> bool
 Checks if the module is open. More...
 
auto find_symbol (string_view name) -> optionally_valid< void * >
 Returns a pointer to the exported symbol with the specifed name. More...
 
auto error_message () const noexcept -> string_view
 Returns the user-readable error message from the last failed operation.
 

Detailed Description

Wrapper for a handle to dynamically linkable executable module.

See also
shared_executable_module
Note
Do not use directly, consider using shared executable module.

Member Function Documentation

◆ find_symbol()

auto eagine::executable_module::find_symbol ( string_view  name) -> optionally_valid<void*>
inline

Returns a pointer to the exported symbol with the specifed name.

See also
is_open
error_message

◆ is_open()

auto eagine::executable_module::is_open ( ) const -> bool
inlinenoexcept

Checks if the module is open.

See also
find_symbol

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

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).