mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Database: Added ::files
This commit is contained in:
parent
c9c1125fa8
commit
08f1a0000a
2 changed files with 11 additions and 0 deletions
|
@ -73,6 +73,16 @@ void Database::commit ()
|
|||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::vector <std::string> Database::files () const
|
||||
{
|
||||
std::vector <std::string> all;
|
||||
for (auto& file : _files)
|
||||
all.push_back (file.name ());
|
||||
|
||||
return all;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Interval Database::getLatestInterval ()
|
||||
{
|
||||
|
|
|
@ -38,6 +38,7 @@ public:
|
|||
Database () = default;
|
||||
void initialize (const std::string&);
|
||||
void commit ();
|
||||
std::vector <std::string> files () const;
|
||||
|
||||
Interval getLatestInterval ();
|
||||
std::vector <Interval> getAllIntervals ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue