![]() |
gaps-online-software 0.10
online software for the TOF system for the GAPS experiment
|
#include <io.hpp>
Public Member Functions | |
TofPacketReader (String filename) | |
TofPacketReader (const TofPacketReader &)=delete | |
void | set_filename (String filename) |
TofPacket | get_next_packet () |
Walk over the file and return the next packet. | |
String | get_filename () const |
Return the filename we assigned. | |
bool | is_exhausted () const |
usize | n_packets_read () const |
Read serialized TofPackets from a file and emit them as packets
bool Gaps::TofPacketReader::is_exhausted | ( | ) | const |
All packets have been read from the file. If they should be read again, the reader has to be created again
usize Gaps::TofPacketReader::n_packets_read | ( | ) | const |
The number of files this reader has read from the file
void Gaps::TofPacketReader::set_filename | ( | String | filename | ) |
Set a filename where to read packets from. This is a binary file format, typically ending in ".tof.gaps"