LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
stringstream_mfPlugin.cc
Go to the documentation of this file.
1 // vim: set sw=2 expandtab :
3 
5 
8 
9 #include <memory>
10 #include <sstream>
11 #include <string>
12 
13 using namespace std;
14 using cet::ostream_handle;
15 using mf::priv::streams;
16 
17 MAKE_MFPLUGIN_START(psetName, pset)
18 {
19  auto ret = streams.emplace(psetName, ostream_handle{ostringstream{}});
20  return make_unique<MFPLUGIN_RESULT_BASE>(pset, ret.first->second);
21 }
22 MAKE_PLUGIN_END
23 
STL namespace.
MAKE_MFPLUGIN_START(psetName, pset)
#define FHICL_PROVIDE_ALLOWED_CONFIGURATION(klass)
#define MFPLUGIN_RESULT_BASE
Definition: mfPlugin.h:15
std::map< std::string, cet::ostream_handle > streams
Definition: stringstream.cc:9