Class HeapLayout::PacketLayout

Nested Relationships

This class is a nested type of Class HeapLayout.

Inheritance Relationships

Base Type

Class Documentation

class PacketLayout : public ska::pst::common::PacketLayout

Stores the offsets and sizes of data, weights, and scales of each packet in a heap.

Data and weights are stored in separate heaps in blocks of shared memory or data from file

Public Functions

PacketLayout(const ska::pst::common::AsciiHeader &data_config, const ska::pst::common::AsciiHeader &weights_config)

Configure a HeapLayout::PacketLayout from the AsciiHeader of the data and weights streams.

Both data_config and weights_config must specify the following attributes: NCHAN NPOL NDIM NBIT UDP_NSAMP UDP_NCHAN WT_NSAMP

Optionally, the weights_config may also specify PACKET_SCALES_SIZE PACKET_WEIGHTS_SIZE

If PACKET_SCALES_SIZE is specified, then it overrides the assumed default. If PACKET_WEIGHTS_SIZE is specified, then it is verified (if it is inconsistent, an exception is thrown).

Parameters
  • data_configAsciiHeader containing the configuration of the data stream

  • weights_configAsciiHeader containing the configuration of the weights stream