DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
FormattedStandardStream.hpp
Go to the documentation of this file.
1/*
2 * FormattedStandardStream.h
3 * ers
4 *
5 * Created by Serguei Kolos on 02.08.07.
6 * Copyright 2007 CERN. All rights reserved.
7 *
8 */
9
14
15#ifndef ERS_FORMATTED_STANDARD_STREAM_H
16#define ERS_FORMATTED_STANDARD_STREAM_H
17
18#include <map>
19
20#include <ers/OutputStream.hpp>
21
22namespace ers {
23
49
50template<class Device>
52 : public OutputStream
53 , public Device
54{
55 using Device::device;
56
58
66 explicit FormattedStandardStream(const std::string& format);
67
68 void write(const Issue& issue) override;
69
70private:
71 void report(std::ostream& out, const Issue& issue);
72
73 struct Fields : public std::map<std::string, format::Token>
74 {
75 Fields();
76 };
77
78 static std::string get_file_name(const std::string& param);
79 static std::string get_format(const std::string& param);
80
82 std::vector<format::Token> m_tokens;
83};
84}
85
87
88#endif
Base class for any user define issue.
Definition Issue.hpp:76
void report(std::ostream &out, const Issue &issue)
std::vector< format::Token > m_tokens
static std::string get_file_name(const std::string &param)
static std::string get_format(const std::string &param)
void write(const Issue &issue) override