|
FERS 0.1.0
The Flexible Extensible Radar Simulator
|
Classes | |
| struct | StreamState |
Public Member Functions | |
| Impl (std::string out_dir, std::shared_ptr< core::OutputMetadataCollector > collector) | |
| void | initializeRun (const core::OutputConfig &config, const std::string &) |
| std::uint32_t | registerStream (const core::ReceiverStreamDescriptor &stream) |
| void | openStream (const std::uint32_t stream_id, const RealType) |
| void | submitBlock (const core::ReceiverSampleBlock &block) |
| void | closeStream (const std::uint32_t stream_id) |
| core::OutputStats | finalize () |
| std::string | outputPath (const std::string &receiver_name) const |
| StreamState & | stateFor (const std::uint32_t stream_id) |
| void | writePulsedBlock (StreamState &state, const core::ReceiverSampleBlock &block) |
| void | appendStreamingBlock (StreamState &state, const core::ReceiverSampleBlock &block) |
| void | closePulsedStream (StreamState &state) |
| void | closeStreamingStream (StreamState &state) |
Static Public Member Functions | |
| static bool | isPulsed (const StreamState &state) |
| static std::size_t | expectedStreamingSamples (const RealType sample_rate) |
| static std::string | streamKey (const core::ReceiverStreamDescriptor &stream) |
Public Attributes | |
| std::string | output_dir |
| std::shared_ptr< core::OutputMetadataCollector > | metadata_collector |
| std::recursive_mutex | mutex |
| std::unordered_map< std::uint32_t, StreamState > | streams |
| std::unordered_map< std::string, std::uint32_t > | stream_ids |
| std::uint32_t | next_stream_id = 1 |
| bool | finalized = false |
Definition at line 60 of file hdf5_output_sink.cpp.
| serial::Hdf5OutputSink::Impl::Impl | ( | std::string | out_dir, |
| std::shared_ptr< core::OutputMetadataCollector > | collector | ||
| ) |
Definition at line 74 of file hdf5_output_sink.cpp.
| void serial::Hdf5OutputSink::Impl::appendStreamingBlock | ( | StreamState & | state, |
| const core::ReceiverSampleBlock & | block | ||
| ) |
Definition at line 260 of file hdf5_output_sink.cpp.
References max.
Referenced by submitBlock().
Here is the caller graph for this function:| void serial::Hdf5OutputSink::Impl::closePulsedStream | ( | StreamState & | state | ) |
Definition at line 273 of file hdf5_output_sink.cpp.
References serial::hdf5_global_mutex, max, metadata_collector, and serial::writeOutputFileMetadataAttributes().
Referenced by closeStream().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 160 of file hdf5_output_sink.cpp.
References closePulsedStream(), closeStreamingStream(), isPulsed(), max, mutex, and stateFor().
Referenced by finalize().
Here is the call graph for this function:
Here is the caller graph for this function:| void serial::Hdf5OutputSink::Impl::closeStreamingStream | ( | StreamState & | state | ) |
Definition at line 291 of file hdf5_output_sink.cpp.
References processing::pipeline::exportStreamingToHdf5(), max, metadata_collector, core::OutputFileMetadata::path, processing::quantizeAndScaleWindow(), core::OutputFileMetadata::receiver_id, core::OutputFileMetadata::sample_end_exclusive, core::OutputFileMetadata::sample_start, core::OutputFileMetadata::sampling_rate, and core::OutputFileMetadata::total_samples.
Referenced by closeStream().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 205 of file hdf5_output_sink.cpp.
References params::endTime(), max, and params::startTime().
Referenced by openStream().
Here is the call graph for this function:
Here is the caller graph for this function:| core::OutputStats serial::Hdf5OutputSink::Impl::finalize | ( | ) |
Definition at line 180 of file hdf5_output_sink.cpp.
References closeStream(), finalized, core::Hdf5, max, core::OutputStats::mode, mutex, and streams.
Here is the call graph for this function:| void serial::Hdf5OutputSink::Impl::initializeRun | ( | const core::OutputConfig & | config, |
| const std::string & | |||
| ) |
Definition at line 79 of file hdf5_output_sink.cpp.
References finalized, core::Hdf5, max, mutex, and output_dir.
|
static |
Definition at line 203 of file hdf5_output_sink.cpp.
References max.
Referenced by closeStream(), openStream(), and submitBlock().
Here is the caller graph for this function:Definition at line 112 of file hdf5_output_sink.cpp.
References expectedStreamingSamples(), serial::hdf5_global_mutex, isPulsed(), max, mutex, output_dir, and stateFor().
Referenced by submitBlock().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string serial::Hdf5OutputSink::Impl::outputPath | ( | const std::string & | receiver_name | ) | const |
Definition at line 220 of file hdf5_output_sink.cpp.
References max, and output_dir.
Referenced by registerStream().
Here is the caller graph for this function:| std::uint32_t serial::Hdf5OutputSink::Impl::registerStream | ( | const core::ReceiverStreamDescriptor & | stream | ) |
Definition at line 90 of file hdf5_output_sink.cpp.
References max, core::ReceiverStreamDescriptor::mode, mutex, next_stream_id, outputPath(), core::OutputFileMetadata::receiver_id, core::ReceiverStreamDescriptor::receiver_id, core::ReceiverStreamDescriptor::receiver_name, core::ReceiverStreamDescriptor::sample_rate, stream_ids, streamKey(), and streams.
Referenced by submitBlock().
Here is the call graph for this function:
Here is the caller graph for this function:| StreamState & serial::Hdf5OutputSink::Impl::stateFor | ( | const std::uint32_t | stream_id | ) |
Definition at line 226 of file hdf5_output_sink.cpp.
Referenced by closeStream(), openStream(), and submitBlock().
Here is the caller graph for this function:
|
static |
Definition at line 215 of file hdf5_output_sink.cpp.
References core::ReceiverStreamDescriptor::mode, core::ReceiverStreamDescriptor::receiver_id, and core::ReceiverStreamDescriptor::receiver_name.
Referenced by registerStream().
Here is the caller graph for this function:| void serial::Hdf5OutputSink::Impl::submitBlock | ( | const core::ReceiverSampleBlock & | block | ) |
Definition at line 138 of file hdf5_output_sink.cpp.
References appendStreamingBlock(), isPulsed(), max, mutex, openStream(), registerStream(), stateFor(), and writePulsedBlock().
Here is the call graph for this function:| void serial::Hdf5OutputSink::Impl::writePulsedBlock | ( | StreamState & | state, |
| const core::ReceiverSampleBlock & | block | ||
| ) |
Definition at line 236 of file hdf5_output_sink.cpp.
References serial::addChunkToFile(), max, and processing::quantizeAndScaleWindow().
Referenced by submitBlock().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 326 of file hdf5_output_sink.cpp.
Referenced by finalize(), and initializeRun().
| std::shared_ptr<core::OutputMetadataCollector> serial::Hdf5OutputSink::Impl::metadata_collector |
Definition at line 321 of file hdf5_output_sink.cpp.
Referenced by closePulsedStream(), and closeStreamingStream().
| std::recursive_mutex serial::Hdf5OutputSink::Impl::mutex |
Definition at line 322 of file hdf5_output_sink.cpp.
Referenced by closeStream(), finalize(), initializeRun(), openStream(), registerStream(), and submitBlock().
| std::uint32_t serial::Hdf5OutputSink::Impl::next_stream_id = 1 |
Definition at line 325 of file hdf5_output_sink.cpp.
Referenced by registerStream().
| std::string serial::Hdf5OutputSink::Impl::output_dir |
Definition at line 320 of file hdf5_output_sink.cpp.
Referenced by initializeRun(), openStream(), and outputPath().
| std::unordered_map<std::string, std::uint32_t> serial::Hdf5OutputSink::Impl::stream_ids |
Definition at line 324 of file hdf5_output_sink.cpp.
Referenced by registerStream().
| std::unordered_map<std::uint32_t, StreamState> serial::Hdf5OutputSink::Impl::streams |
Definition at line 323 of file hdf5_output_sink.cpp.
Referenced by finalize(), registerStream(), and stateFor().