ImagingTools Core SDK
IBinaryDataProvider.h
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2#pragma once
3
4
5// ACF includes
6#include <istd/IPolymorphic.h>
7
8
9namespace imtrest
10{
11
12
16class IBinaryDataProvider: virtual public istd::IPolymorphic
17{
18public:
28 virtual bool GetData(
29 QByteArray& data,
30 const QByteArray& dataId,
31 qint64 readFromPosition = 0,
32 qint64 readMaxLength = -1) const = 0;
33
34};
35
36
37} // namespace imtrest
38
39
The IBinaryDataProvider class provides file from disc, resources or memory.
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