diff --git a/src/Database.cpp b/src/Database.cpp index 22169f31..6d57711c 100644 --- a/src/Database.cpp +++ b/src/Database.cpp @@ -47,6 +47,7 @@ void Database::initialize (const std::string& location) { if (1 /* TODO looks like one of our data files */) { + // Don't add the current file twice. if (file != _current) { Datafile oldFile; @@ -59,6 +60,21 @@ void Database::initialize (const std::string& location) // TODO If there is no data file named YYYY—MM.data, then create it. } +//////////////////////////////////////////////////////////////////////////////// +void Database::addExclusion (const std::string& exclusion) +{ +} + +//////////////////////////////////////////////////////////////////////////////// +void Database::addInterval (const Interval& interval) +{ +} + +//////////////////////////////////////////////////////////////////////////////// +void Database::modifyInterval (const Interval& interval) +{ +} + //////////////////////////////////////////////////////////////////////////////// std::string Database::dump () const { diff --git a/src/Database.h b/src/Database.h index 095afa17..3e68f077 100644 --- a/src/Database.h +++ b/src/Database.h @@ -28,6 +28,7 @@ #define INCLUDED_DATABASE #include +#include #include #include @@ -36,6 +37,11 @@ class Database public: Database () = default; void initialize (const std::string&); + + void addExclusion (const std::string&); + void addInterval (const Interval&); + void modifyInterval (const Interval&); + std::string dump () const; private: