ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
e57::ConstantIntegerDecoder Class Reference

#include <Decoder.h>

Inheritance diagram for e57::ConstantIntegerDecoder:
Collaboration diagram for e57::ConstantIntegerDecoder:

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
 
uint64_t totalRecordsCompleted () override
 
size_t inputProcess (const char *source, const size_t availableByteCount) override
 
void stateReset () override
 
void dump (int indent=0, std::ostream &os=std::cout) override
 
- Public Member Functions inherited from e57::Decoder
 Decoder ()=delete
 
virtual ~Decoder ()=default
 
unsigned bytestreamNumber () const
 

Protected Attributes

uint64_t currentRecordIndex_ = 0
 
uint64_t maxRecordCount_
 
std::shared_ptr< SourceDestBufferImpldestBuffer_
 
bool isScaledInteger_
 
int64_t minimum_
 
double scale_
 
double offset_
 
- Protected Attributes inherited from e57::Decoder
unsigned int bytestreamNumber_
 

Additional Inherited Members

- Static Public Member Functions inherited from e57::Decoder
static std::shared_ptr< DecoderDecoderFactory (unsigned bytestreamNumber, const CompressedVectorNodeImpl *cVector, std::vector< SourceDestBuffer > &dbufs, const ustring &codecPath)
 
- Protected Member Functions inherited from e57::Decoder
 Decoder (unsigned bytestreamNumber)
 

Detailed Description

Definition at line 154 of file Decoder.h.

Constructor & Destructor Documentation

◆ ConstantIntegerDecoder()

ConstantIntegerDecoder::ConstantIntegerDecoder ( bool  isScaledInteger,
unsigned  bytestreamNumber,
SourceDestBuffer dbuf,
int64_t  minimum,
double  scale,
double  offset,
uint64_t  maxRecordCount 
)

Definition at line 818 of file Decoder.cpp.

Member Function Documentation

◆ destBufferSetNew()

void ConstantIntegerDecoder::destBufferSetNew ( std::vector< SourceDestBuffer > &  dbufs)
overridevirtual

Implements e57::Decoder.

Definition at line 826 of file Decoder.cpp.

References destBuffer_, e57::E57_ERROR_INTERNAL, E57_EXCEPTION2, and e57::toString().

◆ dump()

void ConstantIntegerDecoder::dump ( int  indent = 0,
std::ostream &  os = std::cout 
)
overridevirtual

◆ inputProcess()

size_t ConstantIntegerDecoder::inputProcess ( const char *  source,
const size_t  availableByteCount 
)
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.

Definition at line 836 of file Decoder.cpp.

References count, currentRecordIndex_, destBuffer_, QtCompat::endl(), isScaledInteger_, maxRecordCount_, minimum_, offset_, and scale_.

◆ stateReset()

void ConstantIntegerDecoder::stateReset ( )
overridevirtual

Implements e57::Decoder.

Definition at line 872 of file Decoder.cpp.

◆ totalRecordsCompleted()

uint64_t e57::ConstantIntegerDecoder::totalRecordsCompleted ( )
inlineoverridevirtual

Implements e57::Decoder.

Definition at line 160 of file Decoder.h.

References currentRecordIndex_.

Member Data Documentation

◆ currentRecordIndex_

uint64_t e57::ConstantIntegerDecoder::currentRecordIndex_ = 0
protected

Definition at line 170 of file Decoder.h.

Referenced by dump(), inputProcess(), and totalRecordsCompleted().

◆ destBuffer_

std::shared_ptr<SourceDestBufferImpl> e57::ConstantIntegerDecoder::destBuffer_
protected

Definition at line 173 of file Decoder.h.

Referenced by destBufferSetNew(), dump(), and inputProcess().

◆ isScaledInteger_

bool e57::ConstantIntegerDecoder::isScaledInteger_
protected

Definition at line 175 of file Decoder.h.

Referenced by dump(), and inputProcess().

◆ maxRecordCount_

uint64_t e57::ConstantIntegerDecoder::maxRecordCount_
protected

Definition at line 171 of file Decoder.h.

Referenced by dump(), and inputProcess().

◆ minimum_

int64_t e57::ConstantIntegerDecoder::minimum_
protected

Definition at line 176 of file Decoder.h.

Referenced by dump(), and inputProcess().

◆ offset_

double e57::ConstantIntegerDecoder::offset_
protected

Definition at line 178 of file Decoder.h.

Referenced by dump(), and inputProcess().

◆ scale_

double e57::ConstantIntegerDecoder::scale_
protected

Definition at line 177 of file Decoder.h.

Referenced by dump(), and inputProcess().


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