aboutsummaryrefslogtreecommitdiff
path: root/src/serializer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/serializer.h')
-rw-r--r--src/serializer.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/serializer.h b/src/serializer.h
index f2648e3..274d8de 100644
--- a/src/serializer.h
+++ b/src/serializer.h
@@ -2,6 +2,8 @@
2#define SERIALIZABLE_H 2#define SERIALIZABLE_H
3 3
4#include <stdint.h> 4#include <stdint.h>
5#include <string>
6#include <list>
5//#include "serializable.h" 7//#include "serializable.h"
6 8
7class Serializer 9class Serializer
@@ -15,9 +17,9 @@ public:
15 virtual ~Serializer(); 17 virtual ~Serializer();
16 virtual void close()=0; 18 virtual void close()=0;
17 19
18 virtual void write(void *, int32_t)=0; 20 virtual void write(const void *, int32_t)=0;
19 virtual void read(void *, int32_t)=0; 21 virtual void read(void *, int32_t)=0;
20 22
21 virtual Serializer &operator<<(bool)=0; 23 virtual Serializer &operator<<(bool)=0;
22 virtual Serializer &operator<<(int8_t)=0; 24 virtual Serializer &operator<<(int8_t)=0;
23 virtual Serializer &operator<<(int16_t)=0; 25 virtual Serializer &operator<<(int16_t)=0;
@@ -59,9 +61,13 @@ public:
59 virtual Serializer &operator&(long double &); 61 virtual Serializer &operator&(long double &);
60 */ 62 */
61 63
62 virtual Serializer &operator<<(class Serializable &);
63 virtual Serializer &operator>>(class Serializable &);
64 //virtual Serializer &operator&(Serializable &); 64 //virtual Serializer &operator&(Serializable &);
65}; 65};
66 66
67Serializer &operator<<(Serializer &, class Serializable &);
68Serializer &operator>>(Serializer &, class Serializable &);
69
70Serializer &operator<<(Serializer &, std::string &);
71Serializer &operator>>(Serializer &, std::string &);
72
67#endif 73#endif