FF4 - Skeleton code for 2.0

- Created new objects for the 2.0.0 code base, needed in 1.8.0.
- Sketched out basic interfaces.
This commit is contained in:
Paul Beckingham
2009-05-16 17:38:54 -04:00
parent 833fac3c13
commit 69ed1e0ebb
21 changed files with 357 additions and 79 deletions

View File

@@ -25,6 +25,7 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <string>
#include "TDB.h"
////////////////////////////////////////////////////////////////////////////////
@@ -35,15 +36,17 @@ TDB::TDB ()
////////////////////////////////////////////////////////////////////////////////
TDB::TDB (const TDB& other)
{
// mOne = other.mOne;
throw std::string ("unimplemented");
mLocations = other.mLocations;
}
////////////////////////////////////////////////////////////////////////////////
TDB& TDB::operator= (const TDB& other)
{
throw std::string ("unimplemented");
if (this != &other)
{
// mOne = other.mOne;
mLocations = other.mLocations;
}
return *this;
@@ -55,4 +58,39 @@ TDB::~TDB ()
}
////////////////////////////////////////////////////////////////////////////////
void TDB::location (const std::string& path)
{
throw std::string ("unimplemented");
mLocations.push_back (path);
}
////////////////////////////////////////////////////////////////////////////////
// TODO Returns number of filtered tasks.
int TDB::load (std::vector <T>& tasks, Filter& filter)
{
throw std::string ("unimplemented");
return 0;
}
////////////////////////////////////////////////////////////////////////////////
// TODO Write to transaction log.
void TDB::update (T& before, T& after)
{
throw std::string ("unimplemented");
}
////////////////////////////////////////////////////////////////////////////////
// TODO writes all, including comments
int TDB::commit ()
{
throw std::string ("unimplemented");
}
////////////////////////////////////////////////////////////////////////////////
// TODO -> FF4
void TDB::upgrade ()
{
throw std::string ("unimplemented");
}
////////////////////////////////////////////////////////////////////////////////