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

@@ -27,28 +27,28 @@
#ifndef INCLUDED_TDB
#define INCLUDED_TDB
#include <vector>
#include <string>
#include "Filter.h"
#include "T.h"
class TDB
{
public:
TDB (); // Default constructor
TDB (); // Default constructor
TDB (const TDB&); // Copy constructor
TDB& operator= (const TDB&); // Assignment operator
~TDB (); // Destructor
~TDB (); // Destructor
/*
location (path to task dir)
std::vector <T> load (filter)
caches all raw, including comments
update (T& old, T& new)
commit ()
writes all, including comments
autoupgrade ()
-> FF4
*/
void location (const std::string&);
int load (std::vector <T>&, Filter&);
void update (T&, T&);
int commit ();
void upgrade ();
private:
std::vector <std::string> mLocations;
// TODO Need cache of raw file contents.
};
#endif