ImagingTools Core SDK
IBinaryDataController.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
15class IBinaryDataController: virtual public istd::IPolymorphic
16{
17public:
24 virtual bool SetData(const QByteArray& data, QByteArray& dataId) const = 0;
25
31 virtual bool RemoveData(const QByteArray& dataId) const = 0;
32
39 virtual bool EnsureDataExists(const QByteArray& dataId) const = 0;
40};
41
42
43} // namespace imtrest
44
45
The IBinaryDataController provides managment of the file from disc, resources or memory.
virtual bool RemoveData(const QByteArray &dataId) const =0
removes data from providing file
virtual bool EnsureDataExists(const QByteArray &dataId) const =0
Checks if file by provided id alerady exists.
virtual bool SetData(const QByteArray &data, QByteArray &dataId) const =0
writes data to providing file