Subversion Repositories spk

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
114 cycrow 1
#ifdef BOB_STREAM_OPERATORS_INCLUDED
2
#define BOB_STREAM_OPERATORS_INCLUDED
3
 
4
#include "stream.h"
5
 
6
inline
7
template <class Ty>
8
ibinaryfilestream& operator >> (ibinaryfilestream& is, Ty& o)
9
{
10
	o.load(is);
11
	return is;
12
}
13
 
14
inline
15
template <class Ty>
16
obinaryfilestream& operator << (obinaryfilestream& os, Ty& o)
17
{
18
	o.toFile(os);
19
	return os;
20
}
21
 
22
#endif // !defined(BOB_STREAM_OPERATORS_INCLUDED)