9#ifndef DAQDATAFORMATS_INCLUDE_DAQDATAFORMATS_TRIGGERRECORDHEADER_HPP_
10#define DAQDATAFORMATS_INCLUDE_DAQDATAFORMATS_TRIGGERRECORDHEADER_HPP_
47 inline explicit TriggerRecordHeader(
void* existing_trigger_record_header_buffer,
bool copy_from_buffer =
false);
155 bits[
static_cast<size_t>(bit)] = value;
263 throw std::bad_alloc();
269 std::memcpy(
m_data_arr, &header,
sizeof(header));
271 size_t offset =
sizeof(header);
272 for (
auto const&
component : components) {
280 if (!copy_from_buffer) {
281 m_data_arr = existing_trigger_record_header_buffer;
288 throw std::bad_alloc();
291 std::memcpy(
m_data_arr, existing_trigger_record_header_buffer,
size);
310 throw std::bad_alloc();
320 if (idx >=
header_()->num_requested_components) {
321 throw std::range_error(
"Supplied ComponentRequest index is larger than the maximum index.");
330 if (idx >=
header_()->num_requested_components) {
331 throw std::range_error(
"Supplied ComponentRequest index is larger than the maximum index.");
342 if (source_id == component_obj.
component) {
343 return component_obj;
346 throw std::invalid_argument(
"Supplied SourceID (" + source_id.
to_string() +
") was not found in the ComponentRequest list.");
FELIX Initialization std::string initerror FELIX queue timed std::string queuename Unexpected chunk size