#include <Loader.hh>
Public Member Functions | |
virtual | ~Loader () |
virtual void | setPath (const std::vector< std::string > &paths)=0 |
replace current path with new paths. | |
virtual std::vector< std::string > | getPath ()=0 |
return the list of directories searched for .cca files. | |
virtual int | loadPortLibrary (const std::string &portLibraryName)=0 |
Cause the named port interface library to be dynamically loaded. | |
virtual void | loadComponent (const std::string &paletteClassAlias, bool global, bool lazy)=0 |
Cause the named class to become instantiable by a subsequent call to BuilderSErvice.createComponentInstance(). |
It gives access to the global resources that handle dynamic loading of components (.so, .dll).
virtual void neo::cca::ports::Loader::setPath | ( | const std::vector< std::string > & | paths | ) | [pure virtual] |
replace current path with new paths.
each vector element is one directory name. Path is searched for .cca and possibly .scl elements.
virtual std::vector< std::string > neo::cca::ports::Loader::getPath | ( | ) | [pure virtual] |
return the list of directories searched for .cca files.
virtual int neo::cca::ports::Loader::loadPortLibrary | ( | const std::string & | portLibraryName | ) | [pure virtual] |
Cause the named port interface library to be dynamically loaded.
The port class will be loaded globally, as interfaces between components must be globally defined.
virtual void neo::cca::ports::Loader::loadComponent | ( | const std::string & | paletteClassAlias, | |
bool | global, | |||
bool | lazy | |||
) | [pure virtual] |
Cause the named class to become instantiable by a subsequent call to BuilderSErvice.createComponentInstance().
This activity may require side effects with dlopen. In dlopen terms, lazy=true -> RTLD_LAZY, false->RTLD_NOW; global=true ->RTLD_GLOBAL, false->RTLD_LOCAL.