Introduce ChecksumStream 12/33812/27
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Thu, 15 Jan 2015 07:19:15 +0000 (08:19 +0100)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Wed, 4 Mar 2015 10:32:45 +0000 (11:32 +0100)
commitbf8b0794dbe4d401430cae787e6bc3e6e0d09224
tree89dc7a6254007186031613704eb50229981b1059
parent58d92c8f005be204b6d0cb990d8276aed1f3b76a
Introduce ChecksumStream

ChecksumStream will replace std::ofstream for saving database contents
in storage. This way data will be not only written to the files, but
also its checksums will be computed and stored in given stream (database
index equivalent for storing checksums).

Checksum computing is performed during stream destruction in order to be
sure that all necessary data was already collected.

Change-Id: I4a9ff2e29361f337cacd790d77364feca854a706
src/storage/CMakeLists.txt
src/storage/ChecksumStream.cpp [new file with mode: 0644]
src/storage/ChecksumStream.h [new file with mode: 0644]
test/CMakeLists.txt