mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Database: Added ::getLatestInterval
This commit is contained in:
parent
221cf863b2
commit
61b04ff0e8
2 changed files with 8 additions and 0 deletions
|
@ -60,6 +60,12 @@ void Database::initialize (const std::string& location)
|
|||
// TODO If there is no data file named YYYY—MM.data, then create it.
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Interval Database::getLatestInterval () const
|
||||
{
|
||||
return _files[0].getLatestInterval ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Database::addExclusion (const std::string& exclusion)
|
||||
{
|
||||
|
|
|
@ -38,6 +38,8 @@ public:
|
|||
Database () = default;
|
||||
void initialize (const std::string&);
|
||||
|
||||
Interval getLatestInterval () const;
|
||||
|
||||
void addExclusion (const std::string&);
|
||||
void addInterval (const Interval&);
|
||||
void modifyInterval (const Interval&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue