Enhancements - T2::legacyParse

- T2 can now parse all supported legacy formats (ff2, ff3) as well as
  ff4.
- Added tag and attribute support to T2.
- Added T2 unit tests for all formats.
This commit is contained in:
Paul Beckingham 2009-06-07 22:17:11 -04:00
parent 72e3f76ed9
commit 9d48faa759
9 changed files with 246 additions and 56 deletions

View file

@ -188,6 +188,9 @@ int TDB2::load (std::vector <T2>& tasks, Filter& filter)
++line_number;
}
// TODO If the filter contains Status:x where x is not deleted or
// completed, then this can be skipped.
line_number = 1;
file = location->path + "/completed.data";
while (fgets (line, T_LINE_MAX, location->completed))
@ -243,6 +246,9 @@ void TDB2::update (T2& before, T2& after)
// TODO writes all, including comments
int TDB2::commit ()
{
// TODO Two passes: first the pending file.
// then the compelted file.
throw std::string ("unimplemented TDB2::commit");
}