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;
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 }
23 
STL namespace.
#define MAKE_PLUGIN_END
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