type_label_for.h
Go to the documentation of this file.
1 #ifndef art_Framework_Principal_detail_type_label_for_h
2 #define art_Framework_Principal_detail_type_label_for_h
3 
7 
8 namespace art::detail {
9  inline TypeLabel
10  type_label_for(TypeID const typeID,
11  std::string const& instance,
12  bool const supportsView,
13  ModuleDescription const& md)
14  {
15  if (md.isEmulatedModule()) {
16  return TypeLabel{typeID, instance, supportsView, md.moduleLabel()};
17  }
18  return TypeLabel{typeID, instance, supportsView, false};
19  }
20 }
21 
22 #endif /* art_Framework_Principal_detail_type_label_for_h */
23 
24 // Local Variables:
25 // mode: c++
26 // End:
std::string string
Definition: nybbler.cc:12
std::string const & moduleLabel() const
TypeLabel type_label_for(TypeID const typeID, std::string const &instance, bool const supportsView, ModuleDescription const &md)
const std::string instance
bool isEmulatedModule() const