DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SourceConcept.hpp
Go to the documentation of this file.
1
11#ifndef DPDKLIBS_SRC_SOURCECONCEPT_HPP_
12#define DPDKLIBS_SRC_SOURCECONCEPT_HPP_
13
14//#include "DefaultParserImpl.hpp"
15
17#include "appfwk/DAQModule.hpp"
19//#include "packetformat/detail/block_parser.hpp"
20#include <nlohmann/json.hpp>
21
22#include <memory>
23#include <sstream>
24#include <string>
25
26namespace dunedaq {
27 namespace dpdklibs {
28
30 {
31 public:
33 virtual ~SourceConcept() {}
34
35 SourceConcept(const SourceConcept&) = delete;
39
40 // virtual void init(const nlohmann::json& args) = 0;
41 virtual void acquire_callback() = 0;
42 // virtual void conf(const nlohmann::json& args) = 0;
43 // virtual void start(const nlohmann::json& args) = 0;
44 // virtual void stop(const nlohmann::json& args) = 0;
45
46 // Meant to process an incoming raw byte buffer and extract complete frames of arbitrary types in specialized models.
47 virtual void handle_daq_frame(char* buffer, std::size_t size) = 0;
48
50 {
51 m_sink_conf = sink_conf;
52 }
53
54 // Disables DAQEth protocol on this source
58
59 // Sink or destination related
61
62 // Features
64
65 };
66
67 } // namespace dpdklibs
68} // namespace dunedaq
69
70#endif // DPDKLIBS_SRC_SOURCECONCEPT_HPP_
void set_sink_config(const appmodel::DataMoveCallbackConf *sink_conf)
SourceConcept(const SourceConcept &)=delete
SourceConcept is not copy-constructible.
SourceConcept & operator=(SourceConcept &&)=delete
SourceConcept is not move-assignable.
SourceConcept(SourceConcept &&)=delete
SourceConcept is not move-constructible.
const appmodel::DataMoveCallbackConf * m_sink_conf
virtual void handle_daq_frame(char *buffer, std::size_t size)=0
SourceConcept & operator=(const SourceConcept &)=delete
SourceConcept is not copy-assginable.
Including Qt Headers.
FELIX Initialization std::string initerror FELIX queue timed std::string queuename Unexpected chunk size