forked from blue/lmdbal
big refactoring part 1
This commit is contained in:
parent
6a8f67ac34
commit
19229f6c26
28 changed files with 867 additions and 795 deletions
13
serializer.h
13
serializer.h
|
@ -14,8 +14,8 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#ifndef CORE_DATABASE_SERIALIZER_H
|
||||
#define CORE_DATABASE_SERIALIZER_H
|
||||
#ifndef LMDBDATABASE_SERIALIZER_H
|
||||
#define LMDBDATABASE_SERIALIZER_H
|
||||
|
||||
#include <cstring>
|
||||
|
||||
|
@ -25,9 +25,10 @@
|
|||
|
||||
#include "database.h"
|
||||
|
||||
namespace LMDBDataBase {
|
||||
|
||||
template<class T>
|
||||
class DataBase::Serializer
|
||||
{
|
||||
class Serializer {
|
||||
public:
|
||||
Serializer();
|
||||
Serializer(const T& value);
|
||||
|
@ -48,6 +49,8 @@ private:
|
|||
QDataStream stream;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#include "serializer.hpp"
|
||||
#include "serializer_uint64.hpp"
|
||||
#include "serializer_uint32.hpp"
|
||||
|
@ -63,4 +66,4 @@ private:
|
|||
#include "serializer_qstring.hpp"
|
||||
#include "serializer_qbytearray.hpp"
|
||||
|
||||
#endif // CORE_DATABASE_SERIALIZER_H
|
||||
#endif // LMDBDATABASE_SERIALIZER_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue