DABC (Data Acquisition Backbone Core)  2.9.9
Public Member Functions | Protected Attributes
hadaq::WriteIterator Class Reference

Write iterator for HADAQ events/subevents. More...

#include <hadaq/Iterator.h>

Public Member Functions

bool AddAllSubevents (hadaq::RawEvent *evnt)
 
bool AddSubevent (const dabc::Pointer &source)
 
bool AddSubevent (const void *ptr, unsigned len)
 
bool AddSubevent (hadaq::RawSubevent *sub)
 
dabc::Buffer Close ()
 
hadaq::RawEventevnt () const
 
bool FinishEvent ()
 
bool FinishSubEvent (uint32_t rawdatasz)
 
bool IsBuffer () const
 
bool IsEmpty () const
 
bool IsPlaceForEvent (uint32_t subeventsize)
 
uint32_t maxrawdatasize () const
 
bool NewEvent (uint32_t evtSeqNr=0, uint32_t runNr=0, uint32_t minsubeventsize=0)
 
bool NewSubevent (uint32_t minrawsize=0, uint32_t trigger=0)
 
void * rawdata () const
 
bool Reset (const dabc::Buffer &buf)
 
hadaq::RawSubeventsubevnt () const
 
 WriteIterator ()
 
 WriteIterator (const dabc::Buffer &buf)
 
 ~WriteIterator ()
 

Protected Attributes

dabc::Buffer fBuffer
 
dabc::Pointer fEvPtr
 
dabc::BufferSize_t fFullSize
 
dabc::Pointer fSubPtr
 

Detailed Description

Write iterator for HADAQ events/subevents.

Definition at line 104 of file Iterator.h.

Constructor & Destructor Documentation

◆ WriteIterator() [1/2]

hadaq::WriteIterator::WriteIterator ( )

Definition at line 269 of file Iterator.cxx.

◆ WriteIterator() [2/2]

hadaq::WriteIterator::WriteIterator ( const dabc::Buffer buf)

Definition at line 277 of file Iterator.cxx.

◆ ~WriteIterator()

hadaq::WriteIterator::~WriteIterator ( )

Definition at line 286 of file Iterator.cxx.

Member Function Documentation

◆ Reset()

bool hadaq::WriteIterator::Reset ( const dabc::Buffer buf)

Definition at line 291 of file Iterator.cxx.

◆ IsBuffer()

bool hadaq::WriteIterator::IsBuffer ( ) const
inline

Definition at line 112 of file Iterator.h.

◆ IsEmpty()

bool hadaq::WriteIterator::IsEmpty ( ) const
inline

Definition at line 113 of file Iterator.h.

◆ IsPlaceForEvent()

bool hadaq::WriteIterator::IsPlaceForEvent ( uint32_t  subeventsize)

Definition at line 322 of file Iterator.cxx.

◆ NewEvent()

bool hadaq::WriteIterator::NewEvent ( uint32_t  evtSeqNr = 0,
uint32_t  runNr = 0,
uint32_t  minsubeventsize = 0 
)

Definition at line 333 of file Iterator.cxx.

◆ NewSubevent()

bool hadaq::WriteIterator::NewSubevent ( uint32_t  minrawsize = 0,
uint32_t  trigger = 0 
)

Definition at line 353 of file Iterator.cxx.

◆ FinishSubEvent()

bool hadaq::WriteIterator::FinishSubEvent ( uint32_t  rawdatasz)

Definition at line 367 of file Iterator.cxx.

◆ AddSubevent() [1/3]

bool hadaq::WriteIterator::AddSubevent ( const dabc::Pointer source)

Definition at line 380 of file Iterator.cxx.

◆ AddSubevent() [2/3]

bool hadaq::WriteIterator::AddSubevent ( const void *  ptr,
unsigned  len 
)

Definition at line 396 of file Iterator.cxx.

◆ AddSubevent() [3/3]

bool hadaq::WriteIterator::AddSubevent ( hadaq::RawSubevent sub)
inline

Definition at line 121 of file Iterator.h.

◆ AddAllSubevents()

bool hadaq::WriteIterator::AddAllSubevents ( hadaq::RawEvent evnt)
inline

Definition at line 125 of file Iterator.h.

◆ FinishEvent()

bool hadaq::WriteIterator::FinishEvent ( )

Definition at line 413 of file Iterator.cxx.

◆ Close()

dabc::Buffer hadaq::WriteIterator::Close ( )

Definition at line 309 of file Iterator.cxx.

◆ evnt()

hadaq::RawEvent* hadaq::WriteIterator::evnt ( ) const
inline

Definition at line 133 of file Iterator.h.

◆ subevnt()

hadaq::RawSubevent* hadaq::WriteIterator::subevnt ( ) const
inline

Definition at line 134 of file Iterator.h.

◆ rawdata()

void* hadaq::WriteIterator::rawdata ( ) const
inline

Definition at line 135 of file Iterator.h.

◆ maxrawdatasize()

uint32_t hadaq::WriteIterator::maxrawdatasize ( ) const
inline

Definition at line 136 of file Iterator.h.

Field Documentation

◆ fBuffer

dabc::Buffer hadaq::WriteIterator::fBuffer
protected

Definition at line 139 of file Iterator.h.

◆ fEvPtr

dabc::Pointer hadaq::WriteIterator::fEvPtr
protected

Definition at line 140 of file Iterator.h.

◆ fSubPtr

dabc::Pointer hadaq::WriteIterator::fSubPtr
protected

Definition at line 141 of file Iterator.h.

◆ fFullSize

dabc::BufferSize_t hadaq::WriteIterator::fFullSize
protected

Definition at line 142 of file Iterator.h.


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