Commit graph

28 commits

Author SHA1 Message Date
Thomas Lauf
ad58309159 Update Copyright
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-04-19 12:41:23 +02:00
Shaun Ruffell
4b3a907cbb Use AtomicFile for data, tags, undo, and config files
Now changes accross all of these files either happen all together or not
at all.

Related to issue #155
2020-02-23 19:03:40 +01:00
Shaun Ruffell
ea3bbd0e85 Datafile: allLines() can return const reference instead of copy.
Not only does this eliminate the need to copy the stings to the caller, it will
also eliminate the need for any iterators over the entries in the Database from
having to hold a copy of the lines from the Datafile.

Related to #245.
2020-01-17 17:48:57 +01:00
Thomas Lauf
e15fcd30d0 Update copyright holders
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-10-18 10:59:16 +02:00
Thomas Lauf
d64017a7a6 Update copyright dates
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-10-18 10:59:16 +02:00
Simon Ruderich
2271bd9eea Use https:// link for opensource.org 2018-03-16 23:11:08 +01:00
Paul Beckingham
db3c3fb14c Datafile: Removed exclusions 2016-04-27 18:05:37 -04:00
Paul Beckingham
4176bf23d4 Range: Renamed Daterange to Range 2016-04-23 08:52:16 -04:00
Paul Beckingham
779e0ce239 Datafile: Exclusions inserted when not found in data 2016-04-17 10:10:57 -04:00
Paul Beckingham
13da904da0 Datafile: Converted from a Datetime pair to a Daterange 2016-04-17 09:35:45 -04:00
Paul Beckingham
9e2ed873ae Datafile: Removed bool result from ::deleteInterval 2016-04-17 09:02:04 -04:00
Paul Beckingham
365b1eb2ff Datafile: Removed bool result from ::addInterval 2016-04-17 08:52:37 -04:00
Paul Beckingham
91f6600909 Datafile: Refactored data I/O 2016-04-11 08:23:30 -04:00
Paul Beckingham
a65f4c3fd2 Datafile: Exclusions now provided at a vector 2016-04-10 16:56:31 -04:00
Paul Beckingham
6fc25a3de1 Datafile: Removed unused ::getAllIntervalsSince 2016-03-22 00:22:47 -04:00
Paul Beckingham
9a513ea1b2 Datafile: Handles modified intervals 2016-03-22 00:09:59 -04:00
Paul Beckingham
f2b4cc5873 Datafile: Added ::load_intervals 2016-03-21 18:52:21 -04:00
Paul Beckingham
15090cba95 Datafile: Added ::load_lines 2016-03-20 18:44:02 -04:00
Paul Beckingham
2cc9bc8551 Datafile: Captures added/modified data 2016-03-20 18:40:24 -04:00
Paul Beckingham
c1ccf45ccd Datafile: _name --> _file 2016-03-20 18:23:43 -04:00
Paul Beckingham
889ccaaf73 Datafile: Added stubbed ::getAllIntervals[Since] methods 2016-03-20 18:11:28 -04:00
Paul Beckingham
d0da2c9ac6 Datafile: Extracts YYYY and MM from it's file 2016-03-20 17:41:57 -04:00
Paul Beckingham
a199c2e161 Data{base,file}: Made ::getLatestInterval non-const 2016-03-20 17:20:05 -04:00
Paul Beckingham
2d0051d696 Datafile: Added ::commit, dependent on _dirty flag 2016-03-20 17:05:42 -04:00
Paul Beckingham
221cf863b2 Datafile: Added ::getLatestInterval 2016-03-20 11:31:28 -04:00
Paul Beckingham
b3e315e08b Datafile: Added data injection methods 2016-03-20 11:11:55 -04:00
Paul Beckingham
eebc2afaaf Datafile: Added name accessor 2016-03-19 08:53:40 -04:00
Paul Beckingham
86b11ea54e Datafile: ∧dded object for managing data
- Will perform lazy reads/writes.
2016-03-19 08:45:19 -04:00