Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Tools/Streams/Streamable.cpp

Go to the documentation of this file.
00001 #include "Streamable.h"
00002 
00003 void Streamable::streamOut(Out& out) const
00004 {
00005   const_cast<Streamable*>(this)->serialize(NULL, &out);
00006 }
00007 void Streamable::streamIn(In& in)
00008 {
00009   serialize(&in,NULL);
00010 }
00011 In& operator>>(In& in, Streamable& streamable)
00012 {
00013     streamable.streamIn( in);
00014     return in;
00015 }
00016 Out& operator<<(Out& out, const Streamable& streamable)
00017 {
00018   streamable.streamOut(out);
00019   return out;
00020 }

Generated on Mon Mar 20 22:00:09 2006 for GT2005 by doxygen 1.3.6