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 <
ers/OutputStream.hpp
>
14
#include "
erskafka/ERSPublisher.hpp
"
15
16
#include <string>
17
#include <vector>
18
#include <memory>
19
20
namespace
erskafka
21
{
30
31
class
ProtoBufStream
:
public
ers::OutputStream
{
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:80
ers::OutputStream
ERS abstract output stream interface.
Definition
OutputStream.hpp:50
erskafka::ProtoBufStream::ProtoBufStream
ProtoBufStream(const std::string ¶m)
Definition
ProtoBufStream.cpp:24
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:23
Generated on
for DUNE-DAQ by
1.17.0