forked from blue/lmdbal
finally, first working prototype
This commit is contained in:
parent
d67a3c32eb
commit
5f90a21fe6
11 changed files with 193 additions and 112 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue