|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <SourceModel.hpp>
Public Types | |
| using | sink_t = iomanager::SenderConcept<TargetPayloadType> |
| using | inherited = SourceConcept |
| using | data_t = nlohmann::json |
Public Types inherited from dunedaq::opmonlib::MonitorableObject | |
| using | NodePtr = std::weak_ptr<MonitorableObject> |
| using | NewNodePtr = std::shared_ptr<MonitorableObject> |
| using | ElementId = std::string |
Public Member Functions | |
| SourceModel () | |
| SourceModel Constructor. | |
| ~SourceModel () | |
| void | set_sink (const std::string &sink_name, bool callback_mode) override |
| void | acquire_callback () override |
| std::shared_ptr< sink_t > & | get_sink () |
| bool | handle_payload (char *message, std::size_t size) |
| std::size_t | get_frame_size () const override |
| void | generate_opmon_data () override |
Public Member Functions inherited from dunedaq::crtmodules::SourceConcept | |
| SourceConcept () | |
| virtual | ~SourceConcept () |
| SourceConcept (const SourceConcept &)=delete | |
| SourceConcept is not copy-constructible. | |
| SourceConcept & | operator= (const SourceConcept &)=delete |
| SourceConcept is not copy-assignable. | |
| SourceConcept (SourceConcept &&)=delete | |
| SourceConcept is not move-constructible. | |
| SourceConcept & | operator= (SourceConcept &&)=delete |
| SourceConcept is not move-assignable. | |
| void | set_sink_name (const std::string &sink_name) |
Public Member Functions inherited from dunedaq::opmonlib::MonitorableObject | |
| MonitorableObject (const MonitorableObject &)=delete | |
| MonitorableObject & | operator= (const MonitorableObject &)=delete |
| MonitorableObject (MonitorableObject &&)=delete | |
| MonitorableObject & | operator= (MonitorableObject &&)=delete |
| virtual | ~MonitorableObject ()=default |
| auto | get_opmon_id () const noexcept |
| auto | get_opmon_level () const noexcept |
Static Public Attributes | |
| static constexpr auto | buffer_size = sizeof(TargetPayloadType) |
| Buffer size based on TargetPayloadType. | |
Private Types | |
| using | sink_cb_t = std::shared_ptr<std::function<void(TargetPayloadType&&)>> |
Private Attributes | |
| std::string | m_sink_id |
| bool | m_sink_is_set { false } |
| std::shared_ptr< sink_t > | m_sink_queue |
| bool | m_callback_mode |
| bool | m_callback_is_acquired { false } |
| sink_cb_t | m_sink_callback |
| std::atomic< uint64_t > | m_dropped_packets {0} |
Additional Inherited Members | |
Static Public Member Functions inherited from dunedaq::opmonlib::MonitorableObject | |
| static bool | publishable_metric (OpMonLevel entry, OpMonLevel system) noexcept |
Public Attributes inherited from dunedaq::crtmodules::SourceConcept | |
| std::string | m_sink_name |
Protected Member Functions inherited from dunedaq::opmonlib::MonitorableObject | |
| MonitorableObject ()=default | |
| void | register_node (ElementId name, NewNodePtr) |
| void | publish (google::protobuf::Message &&, CustomOrigin &&co={}, OpMonLevel l=to_level(EntryOpMonLevel::kDefault)) const noexcept |
Definition at line 36 of file SourceModel.hpp.
| using dunedaq::crtmodules::SourceModel< TargetPayloadType >::data_t = nlohmann::json |
Definition at line 41 of file SourceModel.hpp.
| using dunedaq::crtmodules::SourceModel< TargetPayloadType >::inherited = SourceConcept |
Definition at line 40 of file SourceModel.hpp.
|
private |
Definition at line 139 of file SourceModel.hpp.
| using dunedaq::crtmodules::SourceModel< TargetPayloadType >::sink_t = iomanager::SenderConcept<TargetPayloadType> |
Definition at line 39 of file SourceModel.hpp.
|
inline |
SourceModel Constructor.
| name | Instance name for this SourceModel instance |
Definition at line 52 of file SourceModel.hpp.
|
inline |
Definition at line 55 of file SourceModel.hpp.
|
inlineoverridevirtual |
Implements dunedaq::crtmodules::SourceConcept.
Definition at line 72 of file SourceModel.hpp.
|
inlineoverridevirtual |
Hook for customisable pubblication. The function can throw, exception will be caught by the monitoring thread
Reimplemented from dunedaq::opmonlib::MonitorableObject.
Definition at line 122 of file SourceModel.hpp.
|
inlineoverridevirtual |
Implements dunedaq::crtmodules::SourceConcept.
Definition at line 117 of file SourceModel.hpp.
|
inline |
Definition at line 88 of file SourceModel.hpp.
|
inlinevirtual |
Implements dunedaq::crtmodules::SourceConcept.
Definition at line 90 of file SourceModel.hpp.
|
inlineoverridevirtual |
Implements dunedaq::crtmodules::SourceConcept.
Definition at line 57 of file SourceModel.hpp.
|
staticconstexpr |
Buffer size based on TargetPayloadType.
Definition at line 46 of file SourceModel.hpp.
|
private |
Definition at line 138 of file SourceModel.hpp.
|
private |
Definition at line 137 of file SourceModel.hpp.
|
private |
Definition at line 142 of file SourceModel.hpp.
|
private |
Definition at line 140 of file SourceModel.hpp.
|
private |
Definition at line 132 of file SourceModel.hpp.
|
private |
Definition at line 133 of file SourceModel.hpp.
|
private |
Definition at line 134 of file SourceModel.hpp.