LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
stringstream_mfPlugin.cc
Go to the documentation of this file.
1
// vim: set sw=2 expandtab :
2
#include "
private/stringstream_streams.h
"
3
4
#include "
messagefacility/plugins/mfPlugin.h
"
5
6
#include "
fhiclcpp/ParameterSet.h
"
7
#include "
fhiclcpp/types/AllowedConfigurationMacro.h
"
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
24
FHICL_PROVIDE_ALLOWED_CONFIGURATION
(
MFPLUGIN_RESULT_BASE
)
AllowedConfigurationMacro.h
std
STL namespace.
ParameterSet.h
MAKE_MFPLUGIN_START
MAKE_MFPLUGIN_START(psetName, pset)
Definition:
stringstream_mfPlugin.cc:17
stringstream_streams.h
mfPlugin.h
FHICL_PROVIDE_ALLOWED_CONFIGURATION
#define FHICL_PROVIDE_ALLOWED_CONFIGURATION(klass)
Definition:
AllowedConfigurationMacro.h:43
MFPLUGIN_RESULT_BASE
#define MFPLUGIN_RESULT_BASE
Definition:
mfPlugin.h:15
mf::priv::streams
std::map< std::string, cet::ostream_handle > streams
Definition:
stringstream.cc:9
messagefacility
plugins
stringstream_mfPlugin.cc
Generated on Thu May 2 2024 20:59:52 for LArSoft by
1.8.11