ARGoS  3
A parallel, multi-engine simulator for swarm robotics
argos::CDynamicLoading Class Reference

Allows users to dynamically load shared libraries. More...

#include <dynamic_loading.h>

List of all members.

Public Types

typedef void * TDLHandle
 The handle to a loaded library.

Static Public Member Functions

static TDLHandle LoadLibrary (const std::string &str_lib)
 Loads a dynamic library.
static void UnloadLibrary (const std::string &str_lib)
 Unloads a dynamic library.
static void UnloadLibrary (TDLHandle t_lib)
 Unloads a dynamic library.
static void LoadAllLibraries ()
 Loads all the dynamic libraries in the current ARGOS_PLUGIN_PATH Internally used to execute queries (argos3 --query)
static void UnloadAllLibraries ()
 Unloads all the dynamic libraries.

Detailed Description

Allows users to dynamically load shared libraries.

Definition at line 24 of file dynamic_loading.h.


Member Typedef Documentation

The handle to a loaded library.

Definition at line 31 of file dynamic_loading.h.


Member Function Documentation

Loads all the dynamic libraries in the current ARGOS_PLUGIN_PATH Internally used to execute queries (argos3 --query)

Definition at line 127 of file dynamic_loading.cpp.

CDynamicLoading::TDLHandle argos::CDynamicLoading::LoadLibrary ( const std::string &  str_lib) [static]

Loads a dynamic library.

Parameters:
str_libThe path of the dynamic library to load
Returns:
A handle to the loaded dynamic library

Definition at line 23 of file dynamic_loading.cpp.

Unloads all the dynamic libraries.

Definition at line 189 of file dynamic_loading.cpp.

void argos::CDynamicLoading::UnloadLibrary ( const std::string &  str_lib) [static]

Unloads a dynamic library.

Parameters:
str_libThe path of the dynamic library to unload

Definition at line 105 of file dynamic_loading.cpp.

Unloads a dynamic library.

Parameters:
t_libThe handle to the dynamic library to unload

Definition at line 120 of file dynamic_loading.cpp.


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