4 #include "cetlib/PluginTypeDeducer.h" 5 #include "cetlib/ProvideFilePathMacro.h" 6 #include "cetlib/ProvideMakePluginMacros.h" 24 map<string, cet::ostream_handle> streams;
31 auto const I = streams.find(psetName);
32 if (I != streams.end()) {
33 return dynamic_cast<ostringstream&
>(
static_cast<ostream&
>(I->second));
36 <<
"Unable to find specified messagefacility logging stream \"" << psetName
37 <<
":\" please ensure it has been configured as a destination.";
42 auto ret = streams.emplace(psetName, cet::ostream_handle{ostringstream{}});
43 return make_unique<ELostreamOutput>(pset, ret.first->second);
47 CET_PROVIDE_FILE_PATH()
std::ostringstream & getStringStream(std::string const &psetName)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
#define FHICL_PROVIDE_ALLOWED_CONFIGURATION(klass)
MAKE_PLUGIN_START(auto, string const &psetName, fhicl::ParameterSet const &pset)