artdaq  v2_02_03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
artdaq::detail::RequestMessage Class Reference

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.
 
RequestHeaderheader ()
 Get a pointer to the RequestHeader, filling in the current size of the message. More...
 
RequestPacketbuffer ()
 Get a pointer to the first RequestPacket in contiguous storage. More...
 
size_t size () const
 Get the number of RequestPackets in the RequestMessage. More...
 
void addRequest (const Fragment::sequence_id_t &seq, const Fragment::timestamp_t &time)
 Add a request for a sequence ID and timestamp combination. More...
 

Detailed Description

A RequestMessage consists of a RequestHeader and zero or more RequestPackets. They will usually be sent in two calls to send()

Definition at line 77 of file RequestMessage.hh.

Member Function Documentation

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.

Parameters
seqSequence ID to request
timeTimestamp of request

Definition at line 112 of file RequestMessage.hh.

RequestPacket* artdaq::detail::RequestMessage::buffer ( )
inline

Get a pointer to the first RequestPacket in contiguous storage.

Returns
Pointer to the first Request Packet

Definition at line 100 of file RequestMessage.hh.

RequestHeader* artdaq::detail::RequestMessage::header ( )
inline

Get a pointer to the RequestHeader, filling in the current size of the message.

Returns
A pointer to the RequestHeader

Definition at line 90 of file RequestMessage.hh.

size_t artdaq::detail::RequestMessage::size ( ) const
inline

Get the number of RequestPackets in the RequestMessage.

Returns
The number of RequestPackets in the RequestMessage

Definition at line 105 of file RequestMessage.hh.


The documentation for this class was generated from the following file: