mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TDB2::get
- Implemented high-level accessors for tasks, by ID and UUID. This permits full DOM implementation.
This commit is contained in:
parent
dab06f8672
commit
60ca284e3a
2 changed files with 77 additions and 0 deletions
|
@ -59,6 +59,7 @@ public:
|
|||
void load_lines ();
|
||||
void load_contents ();
|
||||
|
||||
// ID <--> UUID mapping.
|
||||
std::string uuid (int);
|
||||
int id (const std::string&);
|
||||
|
||||
|
@ -98,6 +99,10 @@ public:
|
|||
int gc ();
|
||||
int next_id ();
|
||||
|
||||
// Generalized task accessors.
|
||||
bool get (int, Task&);
|
||||
bool get (const std::string&, Task&);
|
||||
|
||||
void dump ();
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue