DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SourceConcept.hpp
Go to the documentation of this file.
1
12#ifndef ASIOLIBS_SRC_SOURCECONCEPT_HPP_
13#define ASIOLIBS_SRC_SOURCECONCEPT_HPP_
14
15//#include "DefaultParserImpl.hpp"
16
18#include "appfwk/DAQModule.hpp"
20//#include "packetformat/detail/block_parser.hpp"
21#include <nlohmann/json.hpp>
22
23#include <memory>
24#include <sstream>
25#include <string>
26
27namespace dunedaq::asiolibs {
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) = 0;
48 virtual std::size_t get_expected_frame_size() const = 0;
49
51 {
52 m_sink_conf = sink_conf;
53 }
54
55 // Sink or destination related
57 };
58
59} // namespace dunedaq::asiolibs
60
61#endif // ASIOLIBS_SRC_SOURCECONCEPT_HPP_
SourceConcept & operator=(SourceConcept &&)=delete
SourceConcept is not move-assignable.
SourceConcept(SourceConcept &&)=delete
SourceConcept is not move-constructible.
SourceConcept & operator=(const SourceConcept &)=delete
SourceConcept is not copy-assginable.
const appmodel::DataMoveCallbackConf * m_sink_conf
virtual void handle_daq_frame(char *buffer)=0
void set_sink_config(const appmodel::DataMoveCallbackConf *sink_conf)
SourceConcept(const SourceConcept &)=delete
SourceConcept is not copy-constructible.
virtual std::size_t get_expected_frame_size() const =0