$treeview $search $mathjax $extrastylesheet
artdaq
v3_04_00
$projectbrief
|
$projectbrief
|
$searchbox |
A RequestMessage consists of a RequestHeader and zero or more RequestPackets. They will usually be sent in two calls to send(). More...
#include <artdaq/DAQrate/detail/RequestMessage.hh>
Public Member Functions | |
RequestMessage () | |
Default Constructor. | |
std::vector< uint8_t > | GetMessage () |
void | setMode (RequestMessageMode mode) |
Set the Request Message Mode for this request. | |
void | setRank (int rank) |
Set the rank in the header for this request. This will be the rank from which the request originates. | |
void | setRunNumber (int run) |
Set the run number in the header for this request. This will be the Run for which the request is valid. | |
size_t | size () const |
Get the number of RequestPackets in the RequestMessage. | |
void | addRequest (const Fragment::sequence_id_t &seq, const Fragment::timestamp_t &time) |
Add a request for a sequence ID and timestamp combination. |
A RequestMessage consists of a RequestHeader and zero or more RequestPackets. They will usually be sent in two calls to send().
Definition at line 117 of file RequestMessage.hh.
void artdaq::detail::RequestMessage::addRequest | ( | const Fragment::sequence_id_t & | seq, | |
const Fragment::timestamp_t & | time | |||
) | [inline] |
Add a request for a sequence ID and timestamp combination.
seq | Sequence ID to request | |
time | Timestamp of request |
Definition at line 178 of file RequestMessage.hh.
void artdaq::detail::RequestMessage::setMode | ( | RequestMessageMode | mode | ) | [inline] |
Set the Request Message Mode for this request.
mode | Mode for this Request Message |
Definition at line 143 of file RequestMessage.hh.
void artdaq::detail::RequestMessage::setRank | ( | int | rank | ) | [inline] |
Set the rank in the header for this request. This will be the rank from which the request originates.
rank | Rank for this Request Message |
Definition at line 152 of file RequestMessage.hh.
void artdaq::detail::RequestMessage::setRunNumber | ( | int | run | ) | [inline] |
Set the run number in the header for this request. This will be the Run for which the request is valid.
run | Run number for this Request Message |
Definition at line 162 of file RequestMessage.hh.
size_t artdaq::detail::RequestMessage::size | ( | ) | const [inline] |
Get the number of RequestPackets in the RequestMessage.
Definition at line 171 of file RequestMessage.hh.