Commit graph

17 commits

Author SHA1 Message Date
2478df4149 Fix: Re-set file length before writing to it 2017-07-04 19:12:34 +02:00
14f261a84e Add some debug output to JSON mapper 2017-06-20 20:57:53 +02:00
e7e3a75924 Add another JSON test for an empty JSON 2017-06-20 20:57:25 +02:00
2c97d6f194 Merge pull request #974 from matthiasbeyer/libimagstore/embellishments
Remove unnecessary clone() call
2017-06-18 20:03:29 +02:00
c814171875 Add backend draining 2017-06-18 18:52:21 +02:00
b572e7e8b9 Abstract away the output of the IO backend
This patch refactors the output part of the IO backend into an own
backend which is simply used by the IO-backend.

This way we can have a pure-output backend.
2017-06-18 18:52:03 +02:00
97741fd4ee Remove unnecessary clone() call 2017-06-18 13:37:35 +02:00
266311d743 Change backends to do less ser-/deserialization
This commit changes the backends to do less de/ser, as it now stores the
Entry objects in the backend and does the de/serialization there.

This means the store does only serialize things once from json to toml
in the io backend.

See the diff of the documentation for more details.
2017-06-18 12:32:04 +02:00
52011a59b2 Move serialize/deserialize calls of Entry to backend 2017-06-18 12:32:03 +02:00
3af1042593 Fix fs_to_write() to serialize headers correctly 2017-06-18 11:33:18 +02:00
91c427925b Make backend generic over Read/Write 2017-06-18 11:33:18 +02:00
73c1e79084 Implement high-level store test with IO backend 2017-06-18 11:33:18 +02:00
c4b2287876 Move the documentation to the docs 2017-06-18 11:33:18 +02:00
76dfe23f65 Add StdIoFileAbstraction module documentation 2017-06-18 11:33:18 +02:00
e5c8e9a1ac Add simple tests 2017-06-18 11:33:18 +02:00
aede9a112b Add first code draft for JSON mapper implementation 2017-06-18 11:33:17 +02:00
4abd9dd7cf Split into module-files 2017-06-18 11:31:55 +02:00