From 04fb190243442e83349f129b523ab747e58100bf Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 05 Apr 2008 11:17:33 +0000 Subject: Initial commit into public repository Signed-off-by: Michael Krelin --- (limited to 'src/db.h') diff --git a/src/db.h b/src/db.h new file mode 100644 index 0000000..3794eae --- a/dev/null +++ b/src/db.h @@ -0,0 +1,28 @@ +#ifndef __N_DB_H +#define __N_DB_H + +#include +#include +#include +#include "sqlite.h" + +namespace napkin { + using std::string; + using std::list; + + class db_t : public sqlite::db_t { + public: + string datadir; + + db_t(); + + void store(const hypnodata_t& hd); + void remove(const hypnodata_t& hd); + + void load(list& rv, + const string& sql); + }; + +} + +#endif /* __N_DB_H */ -- cgit v0.9.0.2