DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TimingNode.hpp
Go to the documentation of this file.
1
12#ifndef TIMING_INCLUDE_TIMING_TIMINGNODE_HPP_
13#define TIMING_INCLUDE_TIMING_TIMINGNODE_HPP_
14
15// uHal Headers
16#include "uhal/DerivedNode.hpp"
17
18#include "ers/Issue.hpp"
19
20// C++ Headers
21#include <chrono>
22#include <map>
23#include <string>
24#include <typeinfo>
25
26namespace dunedaq {
27namespace timing {
31class TimingNode : public uhal::Node
32{
33
34public:
35 explicit TimingNode(const uhal::Node& node);
36 virtual ~TimingNode();
37
41 virtual std::string get_status(bool print_out = false) const = 0;
42
46 std::map<std::string, uhal::ValWord<uint32_t>> read_sub_nodes(const uhal::Node& node, // NOLINT(build/unsigned)
47 bool dispatch = true) const;
48
52 void reset_sub_nodes(const uhal::Node& node,
53 uint32_t aValue = 0x0, // NOLINT(build/unsigned)
54 bool dispatch = true) const;
55
56};
57
58} // namespace timing
59} // namespace dunedaq
60
61#endif // TIMING_INCLUDE_TIMING_TIMINGNODE_HPP_
Base class for timing nodes.
void reset_sub_nodes(const uhal::Node &node, uint32_t aValue=0x0, bool dispatch=true) const
Reset subnodes.
TimingNode(const uhal::Node &node)
std::map< std::string, uhal::ValWord< uint32_t > > read_sub_nodes(const uhal::Node &node, bool dispatch=true) const
Read subnodes.
virtual std::string get_status(bool print_out=false) const =0
Get the status string of the timing node. Optionally print it.
Including Qt Headers.