1 #include "PythonFunctions.hh" 2 #include "PythonFunctionsCore.hh" 8 std::map<QString,QObject*> map_;
11 void setPluginPointer(QString _name , QObject* _pointer) {
12 map_[_name] = _pointer;
15 QObject* getPluginPointer(QString _name) {
17 auto it = map_.find(_name);
18 if ( it != map_.end() ) {
21 std::cerr <<
"No plugin found with name " << _name.toStdString() <<
" for PythonFunctions" << std::endl;
26 const QStringList getPythonPlugins() {
29 for (
auto it = map_.begin() ; it != map_.end() ; ++it ) {
30 plugins.push_back(it->first);
std::vector< PluginInfo > & plugins()
Get the vector of all PluginInfos.