From 27e0164234c916adaf0ce78e29dffe565302ef53 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 25 Nov 2006 23:38:14 +0000 Subject: I think this is a better serializer model. --- src/serializer.h | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'src/serializer.h') diff --git a/src/serializer.h b/src/serializer.h index 334c3c7..e79c810 100644 --- a/src/serializer.h +++ b/src/serializer.h @@ -26,31 +26,31 @@ public: virtual void write(const void *, int32_t)=0; virtual void read(void *, int32_t)=0; - virtual Serializer &operator<<(bool)=0; - virtual Serializer &operator<<(int8_t)=0; - virtual Serializer &operator<<(int16_t)=0; - virtual Serializer &operator<<(int32_t)=0; - virtual Serializer &operator<<(int64_t)=0; - virtual Serializer &operator<<(uint8_t)=0; - virtual Serializer &operator<<(uint16_t)=0; - virtual Serializer &operator<<(uint32_t)=0; - virtual Serializer &operator<<(uint64_t)=0; - virtual Serializer &operator<<(float)=0; - virtual Serializer &operator<<(double)=0; - virtual Serializer &operator<<(long double)=0; + virtual Serializer &operator<<(bool); + virtual Serializer &operator<<(int8_t); + virtual Serializer &operator<<(int16_t); + virtual Serializer &operator<<(int32_t); + virtual Serializer &operator<<(int64_t); + virtual Serializer &operator<<(uint8_t); + virtual Serializer &operator<<(uint16_t); + virtual Serializer &operator<<(uint32_t); + virtual Serializer &operator<<(uint64_t); + virtual Serializer &operator<<(float); + virtual Serializer &operator<<(double); + virtual Serializer &operator<<(long double); - virtual Serializer &operator>>(bool &)=0; - virtual Serializer &operator>>(int8_t &)=0; - virtual Serializer &operator>>(int16_t &)=0; - virtual Serializer &operator>>(int32_t &)=0; - virtual Serializer &operator>>(int64_t &)=0; - virtual Serializer &operator>>(uint8_t &)=0; - virtual Serializer &operator>>(uint16_t &)=0; - virtual Serializer &operator>>(uint32_t &)=0; - virtual Serializer &operator>>(uint64_t &)=0; - virtual Serializer &operator>>(float &)=0; - virtual Serializer &operator>>(double &)=0; - virtual Serializer &operator>>(long double &)=0; + virtual Serializer &operator>>(bool &); + virtual Serializer &operator>>(int8_t &); + virtual Serializer &operator>>(int16_t &); + virtual Serializer &operator>>(int32_t &); + virtual Serializer &operator>>(int64_t &); + virtual Serializer &operator>>(uint8_t &); + virtual Serializer &operator>>(uint16_t &); + virtual Serializer &operator>>(uint32_t &); + virtual Serializer &operator>>(uint64_t &); + virtual Serializer &operator>>(float &); + virtual Serializer &operator>>(double &); + virtual Serializer &operator>>(long double &); /* virtual Serializer &operator&(bool &); -- cgit v1.2.3