4 namespace bfs = boost::filesystem;
5 using cet::LibraryManager;
12 getType<suffix_type::module>(cet::LibraryManager
const& lm,
13 std::string
const& fullSpec)
17 auto type = [&lm, &fullSpec] {
19 lm.getSymbolByLibspec(fullSpec,
"moduleType", symbolType);
28 getType<suffix_type::plugin>(cet::LibraryManager
const& lm,
29 std::string
const& fullSpec)
31 using PluginTypeFunc_t = std::string();
33 auto type = [&lm, &fullSpec] {
34 PluginTypeFunc_t* symbolType{
nullptr};
35 lm.getSymbolByLibspec(fullSpec,
"pluginType", symbolType);
44 getType<suffix_type::tool>(cet::LibraryManager
const& lm,
45 std::string
const& fullSpec)
47 using ToolTypeFunc_t = std::string();
49 auto type = [&lm, &fullSpec] {
50 ToolTypeFunc_t* symbolType{
nullptr};
51 lm.getSymbolByLibspec(fullSpec,
"toolType", symbolType);
ModuleType( ModuleTypeFunc_t)
RT resolve_if_present(F f, std::string const &caller, RT result)
std::string to_string(ModuleType mt)