DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
daqdataformats
include
daqdataformats
detail
ComponentRequest.hxx
Go to the documentation of this file.
1
2
namespace
dunedaq::daqdataformats
{
3
4
static_assert
(std::is_trivially_copyable<ComponentRequest>::value,
5
"ComponentRequest isn't trivially copyable and can't be safely std::memcpy'd"
);
6
7
static_assert
(std::is_standard_layout<ComponentRequest>::value,
8
"ComponentRequest isn't standard layout; reinterpret_cast and offsetof can't safely be used with it"
);
9
10
static_assert
(
ComponentRequest::s_component_request_version
== 2,
11
"This is intentionally designed to tell the developer to update the static_assert checks (including this "
12
"one) when the version is bumped"
);
13
14
static_assert
(
sizeof
(
ComponentRequest
) == 32,
"ComponentRequest struct size different than expected!"
);
15
static_assert
(offsetof(
ComponentRequest
,
version
) == 0,
"ComponentRequest version field not at expected offset"
);
16
static_assert
(offsetof(
ComponentRequest
, unused) == 4,
"ComponentRequest unused field not at expected offset"
);
17
static_assert
(offsetof(
ComponentRequest
,
component
) == 8,
"ComponentRequest component field not at expected offset"
);
18
static_assert
(offsetof(
ComponentRequest
, window_begin) == 16,
19
"ComponentRequest window_begin field not at expected offset"
);
20
static_assert
(offsetof(
ComponentRequest
, window_end) == 24,
"ComponentRequest window_end field not at expected offset"
);
21
22
inline
std::ostream&
23
operator<<
(std::ostream& o,
ComponentRequest
const
& cr)
24
{
25
return
o << cr.
component
<<
", begin: "
<< cr.
window_begin
<<
", end: "
<< cr.
window_end
;
26
}
27
28
}
// namespace dunedaq::daqdataformats
version
version
Definition
TriggerActivity_serialization.hpp:50
dunedaq::daqdataformats
Definition
ComponentRequest.hpp:20
dunedaq::daqdataformats::operator<<
std::ostream & operator<<(std::ostream &o, ComponentRequest const &cr)
Definition
ComponentRequest.hxx:23
dunedaq::component
No such component
Definition
ConfigurationManager.hpp:39
dunedaq::daqdataformats::ComponentRequest
A request sent to a Component, including the SourceID of the component and the window offset and widt...
Definition
ComponentRequest.hpp:26
dunedaq::daqdataformats::ComponentRequest::window_end
timestamp_t window_end
End of the data collection window.
Definition
ComponentRequest.hpp:38
dunedaq::daqdataformats::ComponentRequest::s_component_request_version
static constexpr uint32_t s_component_request_version
Definition
ComponentRequest.hpp:27
dunedaq::daqdataformats::ComponentRequest::component
SourceID component
The ID of the Requested Component.
Definition
ComponentRequest.hpp:32
dunedaq::daqdataformats::ComponentRequest::window_begin
timestamp_t window_begin
Start of the data collection window.
Definition
ComponentRequest.hpp:35
Generated on
for DUNE-DAQ by
1.17.0