init: Added initializeDatabase stub

This commit is contained in:
Paul Beckingham 2016-03-02 08:21:34 -05:00
parent 3b332eb96c
commit 1ced4bdd1a
3 changed files with 12 additions and 0 deletions

View file

@ -25,12 +25,19 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Database.h>
#include <Rules.h>
#include <common.h>
#include <commands.h>
#include <vector>
#include <string>
#include <iostream> // TODO Remove
////////////////////////////////////////////////////////////////////////////////
void initializeDatabase (Database& database)
{
}
////////////////////////////////////////////////////////////////////////////////
int dispatchCommand (int argc, const char** argv, Rules& rules)
{

View file

@ -26,6 +26,7 @@
#include <cmake.h>
//#include <Grammar.h>
#include <Database.h>
#include <Rules.h>
#include <common.h>
#include <commands.h>
@ -51,6 +52,8 @@ int main (int argc, const char** argv)
try
{
// TODO Load configuration ~/.timewrc || $TIMEWRC.
Database database;
initializeDatabase (database);
// TODO Arrange the following to minimize memory use.
// TODO Load CLI grammar.

View file

@ -27,9 +27,11 @@
#ifndef INCLUDED_TIMEW
#define INCLUDED_TIMEW
#include <Database.h>
#include <Rules.h>
// init.cpp
void initializeDatabase (Database&);
int dispatchCommand (int, const char**, Rules&);
#endif