1
0
Fork 0
forked from blue/lmdbal

finally, first working prototype

This commit is contained in:
Blue 2022-09-15 01:18:31 +03:00
parent d67a3c32eb
commit 5f90a21fe6
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
11 changed files with 193 additions and 112 deletions

View file

@ -23,8 +23,6 @@
#include "database.h"
namespace Core {
template<class T>
class DataBase::Serializer
{
@ -33,6 +31,7 @@ public:
Serializer(const T& value);
~Serializer();
T deserialize(const MDB_val& value);
MDB_val setData(const T& value);
MDB_val getData();
void clear();
@ -47,6 +46,7 @@ private:
QDataStream stream;
};
}
#include "serializer.hpp"
#include "serializer_uint32.hpp"
#endif // CORE_DATABASE_SERIALIZER_H