DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SourceConcept.hpp
Go to the documentation of this file.
1
12#ifndef CRTMODULES_SRC_SOURCECONCEPT_HPP_
13#define CRTMODULES_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 {
28 namespace crtmodules {
29
31 {
32 public:
34 virtual ~SourceConcept() {}
35
36 SourceConcept(const SourceConcept&) = delete;
40
41 // virtual void init(const nlohmann::json& args) = 0;
42 virtual void acquire_callback() = 0;
43 // virtual void conf(const nlohmann::json& args) = 0;
44 // virtual void start(const nlohmann::json& args) = 0;
45 // virtual void stop(const nlohmann::json& args) = 0;
46
47 virtual bool handle_payload(char* message, std::size_t size) = 0;
48 virtual std::size_t get_frame_size() const = 0;
49
50 void set_sink_config(const appmodel::DataMoveCallbackConf* sink_conf) { m_sink_conf = sink_conf; }
51
53 };
54
55 } // namespace crtmodules
56} // namespace dunedaq
57
58#endif // CRTMODULES_SRC_SOURCECONCEPT_HPP_
void set_sink_config(const appmodel::DataMoveCallbackConf *sink_conf)
const appmodel::DataMoveCallbackConf * m_sink_conf
virtual std::size_t get_frame_size() const =0
SourceConcept(SourceConcept &&)=delete
SourceConcept is not move-constructible.
virtual bool handle_payload(char *message, std::size_t size)=0
SourceConcept & operator=(const SourceConcept &)=delete
SourceConcept is not copy-assignable.
SourceConcept(const SourceConcept &)=delete
SourceConcept is not copy-constructible.
SourceConcept & operator=(SourceConcept &&)=delete
SourceConcept is not move-assignable.
Including Qt Headers.
FELIX Initialization std::string initerror FELIX queue timed std::string queuename Unexpected chunk size