DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
GenericReceiverConcept.hpp
Go to the documentation of this file.
1
8#ifndef ASIOLIBS_PLUGINS_GENERICRECEIVERCONCEPT_HPP_
9#define ASIOLIBS_PLUGINS_GENERICRECEIVERCONCEPT_HPP_
10
12
13namespace dunedaq::asiolibs {
14
16{
17public:
22 std::shared_ptr<const void> owner;
26 const void* data;
30 std::size_t size;
31 };
32
33 virtual ~GenericReceiverConcept() = default;
34 virtual std::optional<TypeErasedPayload> try_receive(dunedaq::iomanager::Receiver::timeout_t timeout) = 0;
35};
36
37} // namespace dunedaq::asiolibs
38
39#endif // ASIOLIBS_PLUGINS_GENERICRECEIVERCONCEPT_HPP_
virtual std::optional< TypeErasedPayload > try_receive(dunedaq::iomanager::Receiver::timeout_t timeout)=0
std::chrono::milliseconds timeout_t
Definition Receiver.hpp:27
std::shared_ptr< const void > owner
Keeps the payload's memory alive.