Database: Added ::files

This commit is contained in:
Paul Beckingham 2016-03-22 01:32:23 -04:00
parent c9c1125fa8
commit 08f1a0000a
2 changed files with 11 additions and 0 deletions

View file

@ -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 () Interval Database::getLatestInterval ()
{ {

View file

@ -38,6 +38,7 @@ public:
Database () = default; Database () = default;
void initialize (const std::string&); void initialize (const std::string&);
void commit (); void commit ();
std::vector <std::string> files () const;
Interval getLatestInterval (); Interval getLatestInterval ();
std::vector <Interval> getAllIntervals (); std::vector <Interval> getAllIntervals ();