DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
erskafka
src
ProtoBufStream.hpp
Go to the documentation of this file.
1
9
10
#ifndef ERSKAFKA_PROTOBUFSTREAM_HPP
11
#define ERSKAFKA_PROTOBUFSTREAM_HPP
12
13
#include "
erskafka/ERSPublisher.hpp
"
14
#include <
ers/OutputStream.hpp
>
15
16
#include <memory>
17
#include <string>
18
#include <vector>
19
20
namespace
erskafka
{
29
30
class
ProtoBufStream
:
public
ers::OutputStream
31
{
32
public
:
33
explicit
ProtoBufStream
(
const
std::string& param);
34
void
write
(
const
ers::Issue
& issue)
override
;
35
36
private
:
37
std::unique_ptr<dunedaq::erskafka::ERSPublisher>
m_publisher
;
38
std::string
m_session
;
39
std::string
m_application
;
40
};
41
}
// namespace erskafka
42
43
#endif
// ERSKAFKA_ERSSTREAM_HPP
ERSPublisher.hpp
OutputStream.hpp
ers::Issue
Base class for any user define issue.
Definition
Issue.hpp:76
ers::OutputStream
ERS abstract output stream interface.
Definition
OutputStream.hpp:48
erskafka::ProtoBufStream::ProtoBufStream
ProtoBufStream(const std::string ¶m)
Definition
ProtoBufStream.cpp:23
erskafka::ProtoBufStream::m_publisher
std::unique_ptr< dunedaq::erskafka::ERSPublisher > m_publisher
Definition
ProtoBufStream.hpp:37
erskafka::ProtoBufStream::write
void write(const ers::Issue &issue) override
Definition
ProtoBufStream.cpp:44
erskafka::ProtoBufStream::m_application
std::string m_application
Definition
ProtoBufStream.hpp:39
erskafka::ProtoBufStream::m_session
std::string m_session
Definition
ProtoBufStream.hpp:38
erskafka
Definition
KafkaStream.cpp:22
Generated on
for DUNE-DAQ by
1.18.0