DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
EmptyFragmentRequestHandlerModel.hpp
Go to the documentation of this file.
1
9#ifndef DATAHANDLINGLIBS_INCLUDE_DATAHANDLINGLIBS_MODELS_EMPTYFRAGMENTREQUESTHANDLERMODEL_HPP_
10#define DATAHANDLINGLIBS_INCLUDE_DATAHANDLINGLIBS_MODELS_EMPTYFRAGMENTREQUESTHANDLERMODEL_HPP_
11
13
14#include <memory>
15#include <utility>
16#include <vector>
17
21
22namespace dunedaq {
23namespace datahandlinglibs {
24
25template<class ReadoutType, class LatencyBufferType>
26class EmptyFragmentRequestHandlerModel : public DefaultRequestHandlerModel<ReadoutType, LatencyBufferType>
27{
28public:
29 // Using inherited typenames
33 using ResultCode =
35
36
37 // Explicit constructor to bind LB and error registry
38 explicit EmptyFragmentRequestHandlerModel(std::shared_ptr<LatencyBufferType>& latency_buffer,
39 std::unique_ptr<FrameErrorRegistry>& error_registry)
40 : DefaultRequestHandlerModel<ReadoutType, LatencyBufferType>(latency_buffer, error_registry)
41 {
42 TLOG_DEBUG(TLVL_WORK_STEPS) << "EmptyFragmentRequestHandlerModel created...";
43 }
44
45 // Override the issue_request implementation of the DefaultRequestHandlerModel
46 // in order to always respond with empty fragments.
47 void issue_request(dfmessages::DataRequest datarequest, bool is_retry=false) override;
48
49};
50
51} // namespace datahandlinglibs
52} // namespace dunedaq
53
54// Declarations
56
57#endif // DATAHANDLINGLIBS_INCLUDE_DATAHANDLINGLIBS_MODELS_EMPTYFRAGMENTREQUESTHANDLERMODEL_HPP_
typename dunedaq::datahandlinglibs::RequestHandlerConcept< ReadoutType, LatencyBufferType >::ResultCode ResultCode
EmptyFragmentRequestHandlerModel(std::shared_ptr< LatencyBufferType > &latency_buffer, std::unique_ptr< FrameErrorRegistry > &error_registry)
typename dunedaq::datahandlinglibs::RequestHandlerConcept< ReadoutType, LatencyBufferType >::RequestResult RequestResult
void issue_request(dfmessages::DataRequest datarequest, bool is_retry=false) override
Issue a data request to the request handler.
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112
Including Qt Headers.
This message represents a request for data sent to a single component of the DAQ.