19#include <vrs/ForwardDefinitions.h>
20#include <vrs/Record.h>
21#include <vrs/VrsExport.h>
32 uint32_t formatVersion;
71 if (record.recordType == Record::Type::DATA) {
72 return processDataHeader(record, outDataReference);
73 }
else if (record.recordType == Record::Type::CONFIGURATION) {
74 return processConfigurationHeader(record, outDataReference);
75 }
else if (record.recordType == Record::Type::STATE) {
76 return processStateHeader(record, outDataReference);
87 if (record.recordType == Record::Type::DATA) {
88 processData(record, readSize);
89 }
else if (record.recordType == Record::Type::CONFIGURATION) {
90 processConfiguration(record, readSize);
91 }
else if (record.recordType == Record::Type::STATE) {
92 processState(record, readSize);
Container of data pointers, to tell where to write data when reading a record.
Definition DataReference.h:61
The class to read VRS files.
Definition RecordFileReader.h:76
Type
Definition Record.h:91
Abstract VRS internal helper class to read & (if necessary) uncompress records.
Definition RecordReaders.h:30
VRS stream identifier class.
Definition StreamId.h:251
Class designed to receive record data when reading a VRS file.
Definition StreamPlayer.h:54
virtual bool processRecordHeader(const CurrentRecord &record, DataReference &outDataReference)
Definition StreamPlayer.h:70
virtual void processConfiguration(const CurrentRecord &, uint32_t)
Definition StreamPlayer.h:128
virtual void processRecord(const CurrentRecord &record, uint32_t readSize)
Definition StreamPlayer.h:86
virtual void flush()
Definition StreamPlayer.h:161
virtual void onAttachedToFileReader(RecordFileReader &, StreamId)
Definition StreamPlayer.h:61
virtual void processData(const CurrentRecord &, uint32_t)
Definition StreamPlayer.h:147
virtual int recordReadComplete(RecordFileReader &, const IndexRecord::RecordInfo &)
Definition StreamPlayer.h:152
virtual void processState(const CurrentRecord &, uint32_t)
Definition StreamPlayer.h:111
virtual bool processConfigurationHeader(const CurrentRecord &, DataReference &)
Definition StreamPlayer.h:118
virtual bool processDataHeader(const CurrentRecord &, DataReference &)
Definition StreamPlayer.h:137
virtual bool processStateHeader(const CurrentRecord &, DataReference &)
Definition StreamPlayer.h:101
Definition Compressor.cpp:113
Class describing which record is being read. Most fields are really self explanatory.
Definition StreamPlayer.h:28
uint32_t recordSize
Definition StreamPlayer.h:33
RecordReader * reader
Definition StreamPlayer.h:38
Helper class to hold the details about a single VRS record in memory.
Definition IndexRecord.h:110