12#ifndef DAQDATAFORMATS_INCLUDE_DAQDATAFORMATS_TRIGGERRECORDHEADER_HPP_
13#define DAQDATAFORMATS_INCLUDE_DAQDATAFORMATS_TRIGGERRECORDHEADER_HPP_
51 explicit TriggerRecordHeader(
void* existing_trigger_record_header_buffer,
bool copy_from_buffer =
false);
86 bits[
static_cast<size_t>(bit)] = value;
141 other.m_alloc =
false;
147 other.m_alloc =
false;
179 throw std::bad_alloc();
185 std::memcpy(
m_data_arr, &header,
sizeof(header));
186 std::memcpy(
static_cast<uint8_t*
>(
m_data_arr) +
sizeof(header),
193 if (!copy_from_buffer) {
194 m_data_arr = existing_trigger_record_header_buffer;
201 throw std::bad_alloc();
204 std::memcpy(
m_data_arr, existing_trigger_record_header_buffer,
size);
224 throw std::bad_alloc();
234 if (idx >=
header_()->num_requested_components) {
235 throw std::range_error(std::format(
236 "Supplied ComponentRequest index {} out of range (size: {})", idx,
header_()->num_requested_components));
248 if (source_id == component_obj.
component) {
249 return component_obj;
252 throw std::invalid_argument(
"Supplied SourceID (" + source_id.
to_string() +
253 ") was not found in the ComponentRequest list.");
FELIX Initialization std::string initerror FELIX queue timed std::string queuename Unexpected chunk size