The IBinaryDataController provides managment of the file from disc, resources or memory.
More...
#include <IBinaryDataController.h>
Inherits istd::IPolymorphic.
Inherited by imtdb::CRestoringDatabaseControllerComp, and imtlic::CProductControllerComp [virtual].
|
| virtual bool | SetData (const QByteArray &data, QByteArray &dataId) const =0 |
| | writes data to providing file
|
| |
| 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.
|
| |
The IBinaryDataController provides managment of the file from disc, resources or memory.
Definition at line 15 of file IBinaryDataController.h.
◆ EnsureDataExists()
| virtual bool imtrest::IBinaryDataController::EnsureDataExists |
( |
const QByteArray & |
dataId | ) |
const |
|
pure virtual |
Checks if file by provided id alerady exists.
- Parameters
-
| dataId | - id for checking file |
- Returns
- existence of file
-
true if file exists and false otherwise
◆ RemoveData()
| virtual bool imtrest::IBinaryDataController::RemoveData |
( |
const QByteArray & |
dataId | ) |
const |
|
pure virtual |
removes data from providing file
- Parameters
-
| dataId | [INPUT] - name of providing file |
- Returns
- result of extracting data
◆ SetData()
| virtual bool imtrest::IBinaryDataController::SetData |
( |
const QByteArray & |
data, |
|
|
QByteArray & |
dataId |
|
) |
| const |
|
pure virtual |
writes data to providing file
- Parameters
-
| data | [INPUT] - data of providing file |
| dataId | [INPUT] - name of providing file |
- Returns
- result of extracting data