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
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
34
35template <class Device>
37 public Device {
38 using Device::device;
39
41
49 explicit FormattedStandardStream( const std::string & format );
50
51 void write( const Issue & issue ) override;
52
53 private:
54 void report( std::ostream & out, const Issue & issue );
55
56 struct Fields : public std::map< std::string, format::Token > {
57 Fields();
58 };
59
60 static std::string get_file_name( const std::string & param );
61 static std::string get_format( const std::string & param );
62
64 std::vector<format::Token> m_tokens;
65};
66}
67
69
70#endif
Base class for any user define issue.
Definition Issue.hpp:69
ERS abstract output stream interface.
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