aboutsummaryrefslogtreecommitdiff
path: root/src/serializer.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-05-13 01:54:06 +0000
committerMike Buland <eichlan@xagasoft.com>2006-05-13 01:54:06 +0000
commiteb71d88041ccbb0aec3532f9b1aa40e956e948c2 (patch)
treef2cb344f21b0cac643435701ddf4742c9a581707 /src/serializer.h
parent3df557a87b39fc4c2ff14006506e6992d1620ab0 (diff)
downloadlibbu++-eb71d88041ccbb0aec3532f9b1aa40e956e948c2.tar.gz
libbu++-eb71d88041ccbb0aec3532f9b1aa40e956e948c2.tar.bz2
libbu++-eb71d88041ccbb0aec3532f9b1aa40e956e948c2.tar.xz
libbu++-eb71d88041ccbb0aec3532f9b1aa40e956e948c2.zip
Changed some things in the serializer...it's cool
Diffstat (limited to '')
-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