HAL
hal::RuntimeLibrary Class Reference

#include <runtime_library.h>

Collaboration diagram for hal::RuntimeLibrary:
Collaboration graph

Public Member Functions

 RuntimeLibrary ()
 
 ~RuntimeLibrary ()
 
bool load_library (const std::string &file_name)
 
std::string get_file_name () const
 
bool unload_library ()
 
lib_fn_ptr_t get_function (const std::string &function_name)
 

Detailed Description

Definition at line 48 of file runtime_library.h.

Constructor & Destructor Documentation

◆ RuntimeLibrary()

hal::RuntimeLibrary::RuntimeLibrary ( )

Definition at line 7 of file runtime_library.cpp.

◆ ~RuntimeLibrary()

hal::RuntimeLibrary::~RuntimeLibrary ( )

Definition at line 12 of file runtime_library.cpp.

References unload_library().

Member Function Documentation

◆ get_file_name()

std::string hal::RuntimeLibrary::get_file_name ( ) const

Gets the file name of the loaded library.

Returns
The file name.

Definition at line 21 of file runtime_library.cpp.

◆ get_function()

lib_fn_ptr_t hal::RuntimeLibrary::get_function ( const std::string &  function_name)

Gets the function pointer to a function by name.

Parameters
[in]function_name- Name of the function.
Returns
The function pointer.

Definition at line 78 of file runtime_library.cpp.

References log_debug, and log_error.

◆ load_library()

bool hal::RuntimeLibrary::load_library ( const std::string &  file_name)

Loads a library.

Parameters
[in]file_name- Name of the library.
Returns
True on success.

Definition at line 26 of file runtime_library.cpp.

References log_debug, and log_error.

◆ unload_library()

bool hal::RuntimeLibrary::unload_library ( )

Unloads the library.

Returns
True on success.

Definition at line 51 of file runtime_library.cpp.

References log_debug, and log_error.

Referenced by ~RuntimeLibrary().


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