diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-03-19 18:44:25 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-03-19 18:44:25 +0000 |
commit | 2b8255fabce194b35f7b2a350fd08f43d1e698a6 (patch) | |
tree | 61ef7a7918b603d37d022bd0cb599b238615816b /src/serializer.h | |
parent | 5a345983b99ecf8528d58ddca2ab5f52d87d9a95 (diff) | |
download | libbu++-2b8255fabce194b35f7b2a350fd08f43d1e698a6.tar.gz libbu++-2b8255fabce194b35f7b2a350fd08f43d1e698a6.tar.bz2 libbu++-2b8255fabce194b35f7b2a350fd08f43d1e698a6.tar.xz libbu++-2b8255fabce194b35f7b2a350fd08f43d1e698a6.zip |
Fixed some bugs and added some new goo. You can serialize FStrings and Heshes
now.
Diffstat (limited to 'src/serializer.h')
-rw-r--r-- | src/serializer.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/serializer.h b/src/serializer.h index e79c810..3af489c 100644 --- a/src/serializer.h +++ b/src/serializer.h | |||
@@ -35,6 +35,7 @@ public: | |||
35 | virtual Serializer &operator<<(uint16_t); | 35 | virtual Serializer &operator<<(uint16_t); |
36 | virtual Serializer &operator<<(uint32_t); | 36 | virtual Serializer &operator<<(uint32_t); |
37 | virtual Serializer &operator<<(uint64_t); | 37 | virtual Serializer &operator<<(uint64_t); |
38 | virtual Serializer &operator<<(long); | ||
38 | virtual Serializer &operator<<(float); | 39 | virtual Serializer &operator<<(float); |
39 | virtual Serializer &operator<<(double); | 40 | virtual Serializer &operator<<(double); |
40 | virtual Serializer &operator<<(long double); | 41 | virtual Serializer &operator<<(long double); |
@@ -48,30 +49,30 @@ public: | |||
48 | virtual Serializer &operator>>(uint16_t &); | 49 | virtual Serializer &operator>>(uint16_t &); |
49 | virtual Serializer &operator>>(uint32_t &); | 50 | virtual Serializer &operator>>(uint32_t &); |
50 | virtual Serializer &operator>>(uint64_t &); | 51 | virtual Serializer &operator>>(uint64_t &); |
52 | virtual Serializer &operator>>(long &); | ||
51 | virtual Serializer &operator>>(float &); | 53 | virtual Serializer &operator>>(float &); |
52 | virtual Serializer &operator>>(double &); | 54 | virtual Serializer &operator>>(double &); |
53 | virtual Serializer &operator>>(long double &); | 55 | virtual Serializer &operator>>(long double &); |
54 | 56 | ||
55 | /* | 57 | virtual Serializer &operator&&(bool &); |
56 | virtual Serializer &operator&(bool &); | 58 | virtual Serializer &operator&&(int8_t &); |
57 | virtual Serializer &operator&(int8_t &); | 59 | virtual Serializer &operator&&(int16_t &); |
58 | virtual Serializer &operator&(int16_t &); | 60 | virtual Serializer &operator&&(int32_t &); |
59 | virtual Serializer &operator&(int32_t &); | 61 | virtual Serializer &operator&&(int64_t &); |
60 | virtual Serializer &operator&(int64_t &); | 62 | virtual Serializer &operator&&(uint8_t &); |
61 | virtual Serializer &operator&(uint8_t &); | 63 | virtual Serializer &operator&&(uint16_t &); |
62 | virtual Serializer &operator&(uint16_t &); | 64 | virtual Serializer &operator&&(uint32_t &); |
63 | virtual Serializer &operator&(uint32_t &); | 65 | virtual Serializer &operator&&(uint64_t &); |
64 | virtual Serializer &operator&(uint64_t &); | 66 | virtual Serializer &operator&&(float &); |
65 | virtual Serializer &operator&(float &); | 67 | virtual Serializer &operator&&(double &); |
66 | virtual Serializer &operator&(double &); | 68 | virtual Serializer &operator&&(long double &); |
67 | virtual Serializer &operator&(long double &); | ||
68 | */ | ||
69 | 69 | ||
70 | //virtual Serializer &operator&(Serializable &); | 70 | //virtual Serializer &operator&(Serializable &); |
71 | }; | 71 | }; |
72 | 72 | ||
73 | Serializer &operator<<(Serializer &, class Serializable &); | 73 | Serializer &operator<<(Serializer &, class Serializable &); |
74 | Serializer &operator>>(Serializer &, class Serializable &); | 74 | Serializer &operator>>(Serializer &, class Serializable &); |
75 | Serializer &operator&&(Serializer &s, class Serializable &p); | ||
75 | 76 | ||
76 | Serializer &operator<<(Serializer &, std::string &); | 77 | Serializer &operator<<(Serializer &, std::string &); |
77 | Serializer &operator>>(Serializer &, std::string &); | 78 | Serializer &operator>>(Serializer &, std::string &); |