#include <SharedLibrary.h>
Public Member Functions | |
const boost::filesystem::path & | path () const |
SharedLibrary (const boost::filesystem::path &iName) | |
bool | symbol (const std::string &iSymbolName, void *&iSymbol) const |
~SharedLibrary () | |
Private Member Functions | |
const SharedLibrary & | operator= (const SharedLibrary &) |
SharedLibrary (const SharedLibrary &) | |
Private Attributes | |
Reflex::SharedLibrary * | library_ |
boost::filesystem::path | path_ |
Definition at line 31 of file SharedLibrary.h.
SharedLibrary::SharedLibrary | ( | const boost::filesystem::path & | iName | ) |
Definition at line 34 of file SharedLibrary.cc.
References Exception, and library_.
: library_(0), path_(iName) { std::auto_ptr<Reflex::SharedLibrary> lib(new Reflex::SharedLibrary(iName.native_file_string())); if( !lib->Load() ) { throw cms::Exception("PluginLibraryLoadError")<<"unable to load "<<iName.native_file_string()<<" because "<<lib->Error(); } library_ = lib.release(); }
SharedLibrary::~SharedLibrary | ( | ) |
edmplugin::SharedLibrary::SharedLibrary | ( | const SharedLibrary & | ) | [private] |
const SharedLibrary& edmplugin::SharedLibrary::operator= | ( | const SharedLibrary & | ) | [private] |
const boost::filesystem::path& edmplugin::SharedLibrary::path | ( | ) | const [inline] |
Definition at line 40 of file SharedLibrary.h.
References path_.
Referenced by edmplugin::PluginCapabilities::load(), edmplugin::PluginCapabilities::tryToFind(), edmplugin::PluginFactoryBase::tryToFindPMaker(), and edmplugin::PluginCapabilities::tryToLoad().
{ return path_;}
bool SharedLibrary::symbol | ( | const std::string & | iSymbolName, |
void *& | iSymbol | ||
) | const |
Definition at line 75 of file SharedLibrary.cc.
References library_.
Referenced by edmplugin::PluginCapabilities::tryToFind().
{ return library_->Symbol(iSymbolName,iSymbol); }
Reflex::SharedLibrary* edmplugin::SharedLibrary::library_ [mutable, private] |
Definition at line 52 of file SharedLibrary.h.
Referenced by SharedLibrary(), symbol(), and ~SharedLibrary().
boost::filesystem::path edmplugin::SharedLibrary::path_ [private] |
Definition at line 53 of file SharedLibrary.h.
Referenced by path().