39 #ifndef ORO_COMPONENTLOADER_HPP_ 40 #define ORO_COMPONENTLOADER_HPP_ 44 #include <boost/shared_ptr.hpp> 68 LoadedLib(std::string n, std::string short_name,
void* h)
91 : instance(0), type(
"")
103 typedef std::map<std::string, ComponentData>
CompList;
155 static boost::shared_ptr<ComponentLoader>
Instance();
170 bool import(std::string
const& path_list);
190 bool import(std::string
const& name, std::string
const& path_list);
TaskContext *(* ComponentLoaderSignature)(std::string instance_name)
LoadedLib(std::string n, std::string short_name, void *h)
boost::shared_ptr< ComponentLoader > shared_ptr
bool loadInProcess(std::string filename, std::string shortname, bool log_error)
bool isImported(std::string type_name)
RTT::TaskContext * loadComponent(std::string const &name, std::string const &type)
void addFactory(std::string const &name, ComponentLoaderSignature factory)
static boost::shared_ptr< ComponentLoader > Instance()
std::string component_path
std::map< std::string, ComponentLoaderSignature > FactoryMap
std::vector< std::string > listComponents() const
std::string getComponentPath() const
bool loadLibrary(std::string const &path)
std::vector< LoadedLib > loadedLibs
RTT::TaskContext * instance
std::vector< std::string > listComponentTypes() const
bool reloadLibrary(std::string const &filepath)
void setComponentPath(std::string const &newpath)
std::map< std::string, ComponentData > CompList
std::vector< std::string > components_type
bool unloadComponent(RTT::TaskContext *tc)
std::vector< std::string > loadedPackages
bool importInstalledPackage(std::string const &package, std::string const &path_list)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
bool reloadInProcess(std::string filename, std::string shortname)
const FactoryMap & getFactories() const
bool isCompatibleComponent(std::string const &filepath)