#include <Decoder.h>
Public Member Functions | |
ConstantIntegerDecoder (bool isScaledInteger, unsigned bytestreamNumber, SourceDestBuffer &dbuf, int64_t minimum, double scale, double offset, uint64_t maxRecordCount) | |
void | destBufferSetNew (std::vector< SourceDestBuffer > &dbufs) override |
size_t | inputProcess (const char *source, const size_t availableByteCount) override |
void | stateReset () override |
uint64_t | totalRecordsCompleted () override |
Public Member Functions inherited from e57::Decoder | |
unsigned | bytestreamNumber () const |
Decoder ()=delete | |
virtual void | destBufferSetNew (std::vector< SourceDestBuffer > &dbufs)=0 |
virtual size_t | inputProcess (const char *source, const size_t count)=0 |
virtual void | stateReset ()=0 |
virtual uint64_t | totalRecordsCompleted ()=0 |
virtual | ~Decoder ()=default |
Protected Attributes | |
uint64_t | currentRecordIndex_ = 0 |
std::shared_ptr< SourceDestBufferImpl > | destBuffer_ |
bool | isScaledInteger_ |
uint64_t | maxRecordCount_ |
int64_t | minimum_ |
double | offset_ |
double | scale_ |
Protected Attributes inherited from e57::Decoder | |
unsigned int | bytestreamNumber_ |
Additional Inherited Members | |
Static Public Member Functions inherited from e57::Decoder | |
static std::shared_ptr< Decoder > | DecoderFactory (unsigned bytestreamNumber, const CompressedVectorNodeImpl *cVector, std::vector< SourceDestBuffer > &dbufs, const ustring &codecPath) |
Protected Member Functions inherited from e57::Decoder | |
Decoder (unsigned bytestreamNumber) | |
ConstantIntegerDecoder::ConstantIntegerDecoder | ( | bool | isScaledInteger, |
unsigned | bytestreamNumber, | ||
SourceDestBuffer & | dbuf, | ||
int64_t | minimum, | ||
double | scale, | ||
double | offset, | ||
uint64_t | maxRecordCount | ||
) |
|
overridevirtual |
Implements e57::Decoder.
References destBuffer_, e57::E57_ERROR_INTERNAL, and e57::toString().
|
overridevirtual |
We don't need any input bytes to produce output, so ignore source and availableByteCount.
Fill dest buffer unless get to maxRecordCount
Implements e57::Decoder.
References currentRecordIndex_, destBuffer_, isScaledInteger_, maxRecordCount_, minimum_, offset_, and scale_.
|
overridevirtual |
Implements e57::Decoder.
|
overridevirtual |
Implements e57::Decoder.
References currentRecordIndex_.
|
protected |
Referenced by inputProcess(), and totalRecordsCompleted().
|
protected |
Referenced by destBufferSetNew(), and inputProcess().
|
protected |
Referenced by inputProcess().
|
protected |
Referenced by inputProcess().
|
protected |
Referenced by inputProcess().
|
protected |
Referenced by inputProcess().
|
protected |
Referenced by inputProcess().