#include <RunTimeLibraryLoader.hxx>
Definition at line 10 of file RunTimeLibraryLoader.hxx.
Public Member Functions | |
virtual | ~RunTimeLibraryLoader () |
virtual void | Load () const |
virtual void | ReLoad () |
const std::string | CompletePathFor (const std::string &subpathAndName) const |
Static Public Member Functions | |
static void * | FullyLoadLibrary (const std::string &libraryPath) |
static void * | LazyLoadLibrary (const std::string &libraryPath) |
static bool | ReleaseLibraryHandler (void *handle, const std::string pluginFullFilename="") |
static const std::string | LibraryLoadError () |
static const std::string | FileOfSymbol (void *symbolAddress) |
Protected Member Functions | |
void | LoadLibrariesFromPath (const std::string &path) const |
std::vector< std::string > | SplitPathVariable (const std::string &pathVariable) const |
void * | GetLibraryHandler (const std::string &libraryPath) const |
const char * | pathSeparator () const |
virtual const char ** | standardPaths () const =0 |
virtual const char * | homePath () const =0 |
virtual const char * | pathEnvironmentVar () const =0 |
virtual const char * | libraryType () const =0 |
virtual const bool | needReleaseHandlerOnReload () const =0 |
virtual void | SetupLibrary (void *handle, const std::string &pluginFullFilename) const |
const std::string | getPathFromFullFileName (const std::string &fullFileNameConst) const |
bool | IsOnPath (const std::string &path) const |
virtual const std::list < std::string > | GetUsedLibraries () |
virtual RunTimeLibraryLoader::~RunTimeLibraryLoader | ( | ) | [inline, virtual] |
Definition at line 14 of file RunTimeLibraryLoader.hxx.
void RunTimeLibraryLoader::Load | ( | ) | const [virtual] |
Reimplemented in RunTimeFaustLibraryLoader.
Definition at line 81 of file RunTimeLibraryLoader.cxx.
References LoadLibrariesFromPath(), and SplitPathVariable().
Referenced by RunTimeFaustLibraryLoader::Load(), and ReLoad().
void RunTimeLibraryLoader::ReLoad | ( | ) | [virtual] |
Definition at line 18 of file RunTimeLibraryLoader.cxx.
References CLAM::Factory< AbstractProductType >::DeleteCreator(), CLAM::ProcessingFactory::GetInstance(), CLAM::Factory< AbstractProductType >::GetKeys(), GetLibraryHandler(), GetUsedLibraries(), Load(), needReleaseHandlerOnReload(), and ReleaseLibraryHandler().
const std::string RunTimeLibraryLoader::CompletePathFor | ( | const std::string & | subpathAndName | ) | const |
Definition at line 215 of file RunTimeLibraryLoader.cxx.
References SplitPathVariable().
Referenced by RunTimeFaustLibraryLoader::Load(), and RunTimeFaustLibraryLoader::SetupLibrary().
void * RunTimeLibraryLoader::FullyLoadLibrary | ( | const std::string & | libraryPath | ) | [static] |
void * RunTimeLibraryLoader::LazyLoadLibrary | ( | const std::string & | libraryPath | ) | [static] |
Definition at line 126 of file RunTimeLibraryLoader.cxx.
bool RunTimeLibraryLoader::ReleaseLibraryHandler | ( | void * | handle, | |
const std::string | pluginFullFilename = "" | |||
) | [static] |
Definition at line 149 of file RunTimeLibraryLoader.cxx.
Referenced by ReLoad(), RunTimeLadspaLibraryLoader::SetupLibrary(), and RunTimeFaustLibraryLoader::SetupLibrary().
const std::string RunTimeLibraryLoader::LibraryLoadError | ( | ) | [static] |
Definition at line 163 of file RunTimeLibraryLoader.cxx.
References NULL.
Referenced by RunTimeLadspaLibraryLoader::SetupLibrary(), and RunTimeFaustLibraryLoader::SetupLibrary().
const std::string RunTimeLibraryLoader::FileOfSymbol | ( | void * | symbolAddress | ) | [static] |
Definition at line 70 of file RunTimeLibraryLoader.cxx.
Referenced by CLAM::FactoryRegistrator< TheFactoryType, ConcreteProductType >::FactoryRegistrator().
void RunTimeLibraryLoader::LoadLibrariesFromPath | ( | const std::string & | path | ) | const [protected] |
Definition at line 92 of file RunTimeLibraryLoader.cxx.
References FullyLoadLibrary(), and SetupLibrary().
Referenced by Load(), RunTimeFaustLibraryLoader::Load(), and RunTimeFaustLibraryLoader::LoadPlugin().
std::vector< std::string > RunTimeLibraryLoader::SplitPathVariable | ( | const std::string & | pathVariable | ) | const [protected] |
Definition at line 181 of file RunTimeLibraryLoader.cxx.
References pathSeparator().
Referenced by CompletePathFor(), IsOnPath(), and Load().
void * RunTimeLibraryLoader::GetLibraryHandler | ( | const std::string & | libraryPath | ) | const [protected] |
const char* RunTimeLibraryLoader::pathSeparator | ( | ) | const [inline, protected] |
virtual const char** RunTimeLibraryLoader::standardPaths | ( | ) | const [protected, pure virtual] |
Implemented in RunTimeFaustLibraryLoader, and RunTimeLadspaLibraryLoader.
virtual const char* RunTimeLibraryLoader::homePath | ( | ) | const [protected, pure virtual] |
Implemented in RunTimeFaustLibraryLoader, and RunTimeLadspaLibraryLoader.
virtual const char* RunTimeLibraryLoader::pathEnvironmentVar | ( | ) | const [protected, pure virtual] |
Implemented in RunTimeFaustLibraryLoader, and RunTimeLadspaLibraryLoader.
virtual const char* RunTimeLibraryLoader::libraryType | ( | ) | const [protected, pure virtual] |
Implemented in RunTimeFaustLibraryLoader, and RunTimeLadspaLibraryLoader.
virtual const bool RunTimeLibraryLoader::needReleaseHandlerOnReload | ( | ) | const [protected, pure virtual] |
virtual void RunTimeLibraryLoader::SetupLibrary | ( | void * | handle, | |
const std::string & | pluginFullFilename | |||
) | const [inline, protected, virtual] |
Reimplemented in RunTimeFaustLibraryLoader, and RunTimeLadspaLibraryLoader.
Definition at line 46 of file RunTimeLibraryLoader.hxx.
Referenced by LoadLibrariesFromPath().
const std::string RunTimeLibraryLoader::getPathFromFullFileName | ( | const std::string & | fullFileNameConst | ) | const [inline, protected] |
bool RunTimeLibraryLoader::IsOnPath | ( | const std::string & | path | ) | const [protected] |
Definition at line 58 of file RunTimeLibraryLoader.cxx.
References SplitPathVariable().
Referenced by GetUsedLibraries().
const std::list< std::string > RunTimeLibraryLoader::GetUsedLibraries | ( | ) | [protected, virtual] |
Reimplemented in RunTimeFaustLibraryLoader.
Definition at line 43 of file RunTimeLibraryLoader.cxx.
References CLAM::ProcessingFactory::GetInstance(), getPathFromFullFileName(), CLAM::Factory< AbstractProductType >::GetSetOfValues(), and IsOnPath().
Referenced by ReLoad().