1 #ifndef artdaq_DAQrate_detail_RequestMessage_hh
2 #define artdaq_DAQrate_detail_RequestMessage_hh
4 #include "artdaq-core/Data/Fragment.hh"
33 ,
timestamp(Fragment::InvalidTimestamp) {}
40 RequestPacket(
const Fragment::sequence_id_t& seq,
const Fragment::timestamp_t& ts)
105 size_t size()
const {
return packets_.size(); }
112 void addRequest(
const Fragment::sequence_id_t& seq,
const Fragment::timestamp_t& time)
119 std::vector<RequestPacket> packets_;
122 #endif // artdaq_DAQrate_detail_RequestMessage
RequestHeader * header()
Get a pointer to the RequestHeader, filling in the current size of the message.
void addRequest(const Fragment::sequence_id_t &seq, const Fragment::timestamp_t &time)
Add a request for a sequence ID and timestamp combination.
Fragment::timestamp_t timestamp
The timestamp of the request.
A RequestMessage consists of a RequestHeader and zero or more RequestPackets. They will usually be se...
RequestPacket()
Default Constructor.
The RequestPacket contains information about a single data request.
RequestPacket * buffer()
Get a pointer to the first RequestPacket in contiguous storage.
size_t size() const
Get the number of RequestPackets in the RequestMessage.
bool isValid() const
Check the magic bytes of the packet.
RequestMessage()
Default Constructor.
RequestPacket(const Fragment::sequence_id_t &seq, const Fragment::timestamp_t &ts)
Create a RequestPacket using the given sequence ID and timestmap.
Fragment::sequence_id_t sequence_id
The sequence ID that responses to this request should use.