diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-05-13 01:54:06 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-05-13 01:54:06 +0000 |
commit | eb71d88041ccbb0aec3532f9b1aa40e956e948c2 (patch) | |
tree | f2cb344f21b0cac643435701ddf4742c9a581707 /src/serializer.h | |
parent | 3df557a87b39fc4c2ff14006506e6992d1620ab0 (diff) | |
download | libbu++-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 'src/serializer.h')
-rw-r--r-- | src/serializer.h | 14 |
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 | ||
7 | class Serializer | 9 | class 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 | ||
67 | Serializer &operator<<(Serializer &, class Serializable &); | ||
68 | Serializer &operator>>(Serializer &, class Serializable &); | ||
69 | |||
70 | Serializer &operator<<(Serializer &, std::string &); | ||
71 | Serializer &operator>>(Serializer &, std::string &); | ||
72 | |||
67 | #endif | 73 | #endif |