1#ifndef TOFIO_H_INCLUDED
2#define TOFIO_H_INCLUDED
7#include "result/result.h"
10#include "packets/tof_packet.h"
11#include "serialization.h"
41[[deprecated(
"This might not even be correct!")]]
42Vec<u32> get_event_ids_from_raw_stream(
const Vec<u8> &bytestream, u64 &start_pos);
52Vec<TofPacket> get_tofpackets(
const Vec<u8> &bytestream, u64 start_pos, PacketType filter=PacketType::Unknown);
62Vec<TofPacket> get_tofpackets(
const String filename, PacketType filter = PacketType::Unknown);
71Vec<TofEvent> unpack_tofevents_from_tofpackets(
const Vec<u8> &bytestream, u64 start_pos);
79Vec<TofEvent> unpack_tofevents_from_tofpackets(
const String filename);
107 std::ifstream stream_file_;
109 usize n_packets_read_;
auto get_next_packet() -> r::Result< TofPacket, Gaps::IOError >
Walk over the file and return the next packet.
auto n_packets_read() const -> usize
auto is_exhausted() const -> bool
auto get_filename() const -> std::string
Return the filename we assigned.
void set_filename(String filename)
Definition calibration.h:105