Module io

Source
Expand description

gaps-online-software i/o system

Re-exports§

pub use serialization::Serialization;
pub use tof_reader::TofPacketReader;
pub use tof_writer::TofPacketWriter;
pub use telemetry_reader::TelemetryPacketReader;
pub use data_source::DataSource;
pub use streamers::*;

Modules§

caraspace
The following file is part of gaps-online-software and published under the GPLv3 license
data_source
Generic approach to read all kinds of data within the GAPS wider ecosystem.
ipbus
The following file is part of gaps-online-software and published under the GPLv3 license
parsers
This file contains generic parsers to read data from a stream of bytes and interpret them as various types.
serialization
The following file is part of gaps-online-software and published under the GPLv3 license
streamers
RBEventMemoryStreamer: Walk over “raw” RBEvents representations (“RBEventMemoryView”) and extract RBEvents
telemetry_reader
The TelemetryPacketReader allows to read a (file) stream of serialized TelemetryPackets, which are typically the .bin files as generated by the gcu
tof_reader
The TofPacketReader allows to read a (file) stream of serialized TofPackets
tof_writer

Structs§

DataSourceKindIter
An iterator over the variants of DataSourceKind

Enums§

DataSourceKind
Identifier for different data sources
FileType
Types of files

Traits§

DataReader
Generics for packet reading (TofPacket, Telemetry packet,…) FIXME - not implemented yet

Functions§

get_califilename
A standardized name for calibration files saved by the liftof suite
get_datetime
Retrieve the DateTime object from a string as used in the names of the run files
get_rundata_from_file
Get the timestamp from a .tof.gaps file
get_runfilename
A standardized name for regular run files saved by the liftof suite
get_unix_timestamp
Retrieve the UNIX timestamp from a string as used in the names of the run files
get_unix_timestamp_from_telemetry
Retrieve the utc timestamp from any telemetry (binary) file
get_utc_date
Create date string in YYMMDD format
get_utc_timestamp
Get a human readable timestamp for NOW
list_path_contents_sorted
Get all filenames in the current path sorted by timestamp if available If the given path is a file and not a directory, return only that file instead