VRS
A file format for sensor data.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
vrs::DataLayoutBlockReader Class Reference

Specialized version of ContentBlockReader to handle DataLayout blocks. More...

#include <ContentBlockReader.h>

Inheritance diagram for vrs::DataLayoutBlockReader:
vrs::ContentBlockReader

Public Member Functions

 DataLayoutBlockReader (const RecordFormat &recordFormat, size_t blockIndex, unique_ptr< DataLayout > &&blockLayout)
 
bool readBlock (const CurrentRecord &, RecordFormatStreamPlayer &) override
 
bool mapToBlockLayout (DataLayout &desiredLayout)
 
- Public Member Functions inherited from vrs::ContentBlockReader
virtual ~ContentBlockReader ()
 Virtual destructor, since this is an abstract class.
 

Additional Inherited Members

- Static Public Member Functions inherited from vrs::ContentBlockReader
static unique_ptr< ContentBlockReaderbuild (const RecordFormat &recordFormat, size_t blockIndex, unique_ptr< DataLayout > &&blockLayout)
 
- Protected Member Functions inherited from vrs::ContentBlockReader
 ContentBlockReader (const RecordFormat &recordFormat, size_t blockIndex)
 
bool findNextContentBlockSpec (const CurrentRecord &record, RecordFormatStreamPlayer &player)
 
size_t findContentBlockSize (const CurrentRecord &record, RecordFormatStreamPlayer &player)
 
uint32_t findAudioSampleCount (const CurrentRecord &record, RecordFormatStreamPlayer &player)
 
- Protected Attributes inherited from vrs::ContentBlockReader
const RecordFormatrecordFormat_
 
const size_t blockIndex_
 
unique_ptr< datalayout_conventions::NextContentBlockSpeccontentBlockSpec_
 

Detailed Description

Specialized version of ContentBlockReader to handle DataLayout blocks.

Member Function Documentation

◆ mapToBlockLayout()

bool vrs::DataLayoutBlockReader::mapToBlockLayout ( DataLayout desiredLayout)
inline

Convenience methods to map a desired layout to the block's layout, if we have one.

Parameters
desiredLayoutLayout to map to the block's layout.
Returns
True when there was a block layout to map to, False otherwise.

◆ readBlock()

bool vrs::DataLayoutBlockReader::readBlock ( const CurrentRecord ,
RecordFormatStreamPlayer  
)
overridevirtual

Method called by RecordFormatStreamPlayer when a content block needs to be read. To be implemented by each specialized ContentBlockReader class, which can then interpret the data of the format it expects.

Implements vrs::ContentBlockReader.


The documentation for this class was generated from the following files: