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 }
1.3.6