Class BlockProducer
Defined in File BlockProducer.h
Nested Relationships
Nested Types
Inheritance Relationships
Derived Types
public ska::pst::common::FileBlockProducer(Class FileBlockProducer)public ska::pst::smrb::SmrbBlockProducer(Class SmrbBlockProducer)
Class Documentation
-
class BlockProducer
Interface used for reading blocks of data from a source.
Subclassed by ska::pst::common::FileBlockProducer, ska::pst::smrb::SmrbBlockProducer
Public Functions
-
virtual ~BlockProducer() = default
Virtual destructor required for interfaces.
-
virtual const ska::pst::common::AsciiHeader &get_header() const = 0
Get the AsciiHeader that describes the block stream.
- Returns
const ska::pst::common::AsciiHeader& header of the data
-
class Block
Stores the base address and size, in bytes, of a block of data.
Public Functions
-
inline Block(char *_block = nullptr, size_t _size = 0, size_t _obs_offset = 0)
Default constructor.
- Parameters
_block – pointer to the base address of the block in memory
_size – number of bytes in the block of memory
_obs_offset – the offset from the base address to the first byte of data
-
inline Block(char *_block = nullptr, size_t _size = 0, size_t _obs_offset = 0)
-
virtual ~BlockProducer() = default