Class BlockSegmentProducer

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class BlockSegmentProducer : public ska::pst::common::SegmentProducer

Base class used for reading blocks of voltage data and weights.

This class implements an interface to data+weights that can be from any source, including file (see FileSegmentProducer) or ring buffer (in principal).

Subclassed by ska::pst::common::FileSegmentProducer, ska::pst::smrb::SmrbSegmentProducer

Public Functions

virtual ~BlockSegmentProducer() = default

Destroy the BlockSegmentProducer object.

virtual const ska::pst::common::AsciiHeader &get_data_header() const

Get the AsciiHeader that describes the data block stream.

Returns

const ska::pst::common::AsciiHeader& header of the data block stream

virtual const ska::pst::common::AsciiHeader &get_weights_header() const

Get the AsciiHeader that describes the weights block stream.

Returns

const ska::pst::common::AsciiHeader& header of the weights block stream

virtual Segment next_segment()

Get the next Segment of data and weights.

Protected Attributes

std::shared_ptr<BlockProducer> data_block_producer
std::shared_ptr<BlockProducer> weights_block_producer