ImagingTools Core SDK
Public Member Functions | List of all members
imtrest::IBinaryDataProviderabstract

The IBinaryDataProvider class provides file from disc, resources or memory. More...

#include <IBinaryDataProvider.h>

Inheritance diagram for imtrest::IBinaryDataProvider:
imtrest::CBinaryDataProviderComp

Public Member Functions

virtual bool GetData (QByteArray &data, const QByteArray &dataId, qint64 readFromPosition=0, qint64 readMaxLength=-1) const =0
 extracts data from providing file and puts it in data param
 

Detailed Description

The IBinaryDataProvider class provides file from disc, resources or memory.

Definition at line 16 of file IBinaryDataProvider.h.

Member Function Documentation

◆ GetData()

virtual bool imtrest::IBinaryDataProvider::GetData ( QByteArray &  data,
const QByteArray &  dataId,
qint64  readFromPosition = 0,
qint64  readMaxLength = -1 
) const
pure virtual

extracts data from providing file and puts it in data param

Parameters
data[OUTPUT] - data of providing file
dataId[INPUT] - id of providing file
readFromPosition- sets the current position to start reading
readMaxLength- sets maximum size of data to be read
Note
if it is negative - reads as much data as possible
Returns
result of extracting data