|
HIPO
4.3.0
High Performance Output data format for experimental physics
|
Container for multiple events packed into a single frame. More...
#include <record.h>
Public Member Functions | |
| dataframe () | |
| Construct an empty dataframe with default limits. More... | |
| dataframe (int max_events, int max_size) | |
| Construct a dataframe with custom capacity limits. More... | |
| ~dataframe () | |
| Default destructor. More... | |
| void | init (const char *ptr) |
| Initialize the dataframe from an existing raw buffer. More... | |
| bool | addEvent (hipo::event &event) |
| Append an event to the dataframe. More... | |
| int | getEventAt (int pos, hipo::event &event) |
| Retrieve the event at the given position. More... | |
| int | count () |
| Return the number of events currently stored in the frame. More... | |
| int | size () |
| Return the total size of the internal buffer in bytes. More... | |
| void | reset () |
| Clear all events and reset the dataframe to an empty state. More... | |
| const char * | buffer () |
| Return a pointer to the underlying data buffer. More... | |
| void | summary () |
| Print a summary of the dataframe contents to standard output. More... | |
Container for multiple events packed into a single frame.
A dataframe accumulates events up to a configurable maximum count or byte size and provides random access to individual events within the frame.
|
inline |
| hipo::dataframe::dataframe | ( | int | max_events, |
| int | max_size | ||
| ) |
Construct a dataframe with custom capacity limits.
| max_events | Maximum number of events the frame may hold. |
| max_size | Maximum total size in bytes. |
Definition at line 550 of file record.cpp.
| bool hipo::dataframe::addEvent | ( | hipo::event & | event | ) |
Append an event to the dataframe.
| event | The event to add. |
Definition at line 569 of file record.cpp.
|
inline |
| int hipo::dataframe::count | ( | ) |
Return the number of events currently stored in the frame.
Definition at line 595 of file record.cpp.
| int hipo::dataframe::getEventAt | ( | int | pos, |
| hipo::event & | event | ||
| ) |
Retrieve the event at the given position.
| pos | Zero-based index of the event. |
| event | Output event to populate. |
Definition at line 583 of file record.cpp.
| void hipo::dataframe::init | ( | const char * | ptr | ) |
Initialize the dataframe from an existing raw buffer.
| ptr | Pointer to the raw record data. |
Definition at line 589 of file record.cpp.
| void hipo::dataframe::reset | ( | ) |
Clear all events and reset the dataframe to an empty state.
Definition at line 556 of file record.cpp.
| int hipo::dataframe::size | ( | ) |
Return the total size of the internal buffer in bytes.
Definition at line 596 of file record.cpp.
| void hipo::dataframe::summary | ( | ) |
Print a summary of the dataframe contents to standard output.
Definition at line 598 of file record.cpp.