1#ifndef TOFIO_H_INCLUDED
2#define TOFIO_H_INCLUDED
8#include "packets/tof_packet.h"
9#include "serialization.h"
34Vec<RBEventHeader> get_rbeventheaders(
const String &filename,
bool is_header=
false);
48Vec<u32> get_event_ids_from_raw_stream(
const Vec<u8> &bytestream, u64 &start_pos);
58Vec<TofPacket> get_tofpackets(
const Vec<u8> &bytestream, u64 start_pos, PacketType filter=PacketType::Unknown);
68Vec<TofPacket> get_tofpackets(
const String filename, PacketType filter = PacketType::Unknown);
77Vec<TofEvent> unpack_tofevents_from_tofpackets(
const Vec<u8> &bytestream, u64 start_pos);
85Vec<TofEvent> unpack_tofevents_from_tofpackets(
const String filename);
128 std::ifstream stream_file_;
130 usize n_packets_read_;
bool is_exhausted() const
usize n_packets_read() const
TofPacket get_next_packet()
Walk over the file and return the next packet.
String get_filename() const
Return the filename we assigned.
void set_filename(String filename)
**
Definition caraspace.hpp:8
Definition tof_packet.h:81