E2SAR 0.2.0
All Data Structures Namespaces Functions Typedefs Enumerations
e2sar::REHdr Struct Reference

Public Member Functions

void set (u_int16_t data_id, u_int32_t buff_off, u_int32_t buff_len, EventNum_t event_num)
 
EventNum_t get_eventNum () const
 
u_int32_t get_bufferLength () const
 
u_int32_t get_bufferOffset () const
 
u_int16_t get_dataId () const
 
const boost::tuple< u_int16_t, u_int32_t, u_int32_t, EventNum_t > get_Fields () const
 

Data Fields

u_int8_t preamble [2] {rehdrVersionNibble, 0}
 
u_int16_t dataId {0}
 
u_int32_t bufferOffset {0}
 
u_int32_t bufferLength {0}
 
EventNum_t eventNum {0}
 

Member Function Documentation

◆ get_bufferLength()

u_int32_t e2sar::REHdr::get_bufferLength ( ) const
inline

get buffer length in host byte order

◆ get_bufferOffset()

u_int32_t e2sar::REHdr::get_bufferOffset ( ) const
inline

get buffer offset in host byte order

◆ get_dataId()

u_int16_t e2sar::REHdr::get_dataId ( ) const
inline

get data id in host byte order

◆ get_eventNum()

EventNum_t e2sar::REHdr::get_eventNum ( ) const
inline

Get event number on host byte order

◆ get_Fields()

const boost::tuple< u_int16_t, u_int32_t, u_int32_t, EventNum_t > e2sar::REHdr::get_Fields ( ) const
inline

Convenience method to get all fields in host byte order. Best way to use it is u_int16_t myDataId;
u_int32_t myBufferOffset; u_int32_t myBufferLength; EventNum_t myEventNum;

boost::tie(myDataId, myBufferOffset, myBufferLength, myEventNum) = rehdr.get_fields();

◆ set()

void e2sar::REHdr::set ( u_int16_t data_id,
u_int32_t buff_off,
u_int32_t buff_len,
EventNum_t event_num )
inline

Set all fields to network/big-endian byte order values


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