g2o
Loading...
Searching...
No Matches
g2o::DlWrapper Class Reference

Loading libraries during run-time. More...

#include <dl_wrapper.h>

Public Member Functions

 DlWrapper ()
virtual ~DlWrapper ()
int openLibraries (const std::string &directory, const std::string &pattern="")
bool openLibrary (const std::string &filename)
void clear ()

Protected Attributes

std::vector< std::string > _filenames

Private Member Functions

 DlWrapper (const DlWrapper &)
DlWrapper & operator= (const DlWrapper &)

Detailed Description

Loading libraries during run-time.

Definition at line 46 of file dl_wrapper.h.

Constructor & Destructor Documentation

◆ DlWrapper() [1/2]

g2o::DlWrapper::DlWrapper ( )

Definition at line 57 of file dl_wrapper.cpp.

Referenced by DlWrapper(), and operator=().

◆ ~DlWrapper()

g2o::DlWrapper::~DlWrapper ( )
virtual

Definition at line 59 of file dl_wrapper.cpp.

◆ DlWrapper() [2/2]

g2o::DlWrapper::DlWrapper ( const DlWrapper & )
private

it's not allowed to draw a copy of the wrapper

References DlWrapper().

Member Function Documentation

◆ clear()

void g2o::DlWrapper::clear ( )

free all loaded libs, i.e., call dlclose()

Definition at line 101 of file dl_wrapper.cpp.

References _filenames.

◆ openLibraries()

int g2o::DlWrapper::openLibraries ( const std::string & directory,
const std::string & pattern = "" )

open all libs from a directory matching a specific pattern.

Returns
number of loaded libs

Definition at line 63 of file dl_wrapper.cpp.

References _filenames, g2o::getFilesByPattern(), openLibrary(), SO_EXT, and SO_EXT_LEN.

Referenced by g2o::loadStandardSolver(), and g2o::loadStandardTypes().

◆ openLibrary()

bool g2o::DlWrapper::openLibrary ( const std::string & filename)

open a specific library

Definition at line 115 of file dl_wrapper.cpp.

References __PRETTY_FUNCTION__, and _filenames.

Referenced by g2o::loadStandardSolver(), g2o::loadStandardTypes(), and openLibraries().

◆ operator=()

DlWrapper & g2o::DlWrapper::operator= ( const DlWrapper & )
private

References DlWrapper().

Member Data Documentation

◆ _filenames

std::vector<std::string> g2o::DlWrapper::_filenames
protected

Definition at line 74 of file dl_wrapper.h.

Referenced by clear(), openLibraries(), and openLibrary().


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