summaryrefslogtreecommitdiff
path: root/src/serializerbinary.h
blob: 8510fcd29adf244fc95f466cdbaf4fee2a3fce78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef SERIALIZER_BINARY_H
#define SERIALIZER_BINARY_H

#include "serializer.h"
#include <stdio.h>

class SerializerBinary : public Serializer
{
public:
	SerializerBinary(FILE *fhFile, bool bLoading);
	SerializerBinary(const char *sFileName, bool bLoading);
	virtual ~SerializerBinary();

	virtual void close();

	virtual void write(const void *, int32_t);
	virtual void read(void *, int32_t);
	
private:
	FILE *fhFile;
	bool bCloseFile;
};

#endif