16 #include <unordered_map>
23 #include "TInterpreter.h"
24 #include "TPluginManager.h"
33 static std::unordered_map<std::string, TPluginHandler *> loaded_;
37 if (!(param->insitu_visualization || param->export_visualization)) {
41 bool first_try = !loaded_.count(adaptor);
45 auto *h = gPluginMgr->FindHandler(
"VisualizationAdaptor", adaptor.c_str());
48 if (h->LoadPlugin() == 0) {
55 "Was unable to load plugin '", adaptor,
"'!");
60 "VisualizationAdaptor::Create",
"Unable to find plugin '", adaptor,
61 "'. This is most likely because bdm.rootrc was not read properly.");
65 if (loaded_[adaptor]) {
67 loaded_[adaptor]->ExecPlugin(0));
74 Log::Info(
"VisualizationAdaptor::Create",
"Loaded plugin '", adaptor,