|
g2o
|
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 &) |
Loading libraries during run-time.
Definition at line 46 of file dl_wrapper.h.
| g2o::DlWrapper::DlWrapper | ( | ) |
Definition at line 57 of file dl_wrapper.cpp.
|
virtual |
Definition at line 59 of file dl_wrapper.cpp.
|
private |
it's not allowed to draw a copy of the wrapper
| void g2o::DlWrapper::clear | ( | ) |
free all loaded libs, i.e., call dlclose()
Definition at line 101 of file dl_wrapper.cpp.
References _filenames.
| int g2o::DlWrapper::openLibraries | ( | const std::string & | directory, |
| const std::string & | pattern = "" |
||
| ) |
open all libs from a directory matching a specific pattern.
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().
| 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().
|
protected |
Definition at line 74 of file dl_wrapper.h.
Referenced by clear(), openLibraries(), and openLibrary().