]> git.sesse.net Git - nageru/blob - db.h
Embed shaders into the binary.
[nageru] / db.h
1 #ifndef DB_H
2 #define DB_H 1
3
4 #include "state.pb.h"
5
6 #include <sqlite3.h>
7 #include <string>
8
9 class DB {
10 public:
11         explicit DB(const std::string &filename);
12         DB(const DB &) = delete;
13
14         StateProto get_state();
15         void store_state(const StateProto &state);
16
17 private:
18         StateProto state;
19         sqlite3 *db;
20 };
21
22 #endif  // !defined(DB_H)