15 #include <TInterpreter.h>
17 #include <boost/algorithm/string.hpp>
29 std::vector<std::string> preloaderList;
32 if (preloaderList.size() % 2 != 0)
35 return StatusCode::FAILURE;
38 for (std::size_t iter = 0; iter < preloaderList.size(); iter += 2)
40 const std::string&
libName = preloaderList[iter];
41 const std::string& funcName = preloaderList[iter + 1];
43 if (gSystem->Load(
libName.c_str()) != 0)
46 return StatusCode::FAILURE;
48 if (gInterpreter->Calc((funcName +
"()").c_str()) != 1)
51 return StatusCode::FAILURE;
55 return StatusCode::SUCCESS;