Database: Added ::getLatestInterval

This commit is contained in:
Paul Beckingham 2016-03-20 11:33:16 -04:00
parent 221cf863b2
commit 61b04ff0e8
2 changed files with 8 additions and 0 deletions

View file

@ -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)
{

View file

@ -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&);