BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/facilities/facilities-00-00-04/facilities/binarystream.h File Reference
#include "streamdef.h"

Go to the source code of this file.

Classes

class  basic_binstreambuf< _Ch, _Tr >
 
class  basic_binostream< _Ch, _Tr >
 
class  basic_binistream< _Ch, _Tr >
 

Typedefs

typedef basic_binostream< char > binostream
 
typedef basic_binistream< char > binistream
 
typedef basic_binstreambuf< char > binstreambuf
 

Functions

template<class _Ty , class _Ch , class _Tr >
basic_binostream< _Ch, _Tr > & operator<< (basic_binostream< _Ch, _Tr > &o, const _Ty t)
 
template<class _Ty , class _Ch , class _Tr >
basic_binistream< _Ch, _Tr > & operator>> (basic_binistream< _Ch, _Tr > &i, _Ty &t)
 

Typedef Documentation

◆ binistream

◆ binostream

◆ binstreambuf

Function Documentation

◆ operator<<()

template<class _Ty , class _Ch , class _Tr >
basic_binostream< _Ch, _Tr > & operator<< ( basic_binostream< _Ch, _Tr > &  o,
const _Ty  t 
)
inline

Definition at line 1 of file Calibration/facilities/facilities-00-00-04/facilities/binarystream.h.

130 {
131 int sz = sizeof(_Ty);
132 o.write ((const _Ch*)(&t), sz);
133 return o;
134}
int t()
Definition: t.c:1

◆ operator>>()

template<class _Ty , class _Ch , class _Tr >
basic_binistream< _Ch, _Tr > & operator>> ( basic_binistream< _Ch, _Tr > &  i,
_Ty &  t 
)
inline

Definition at line 137 of file Calibration/facilities/facilities-00-00-04/facilities/binarystream.h.

137 {
138 int sz = sizeof(_Ty);
139 i.read ((_Ch*)(&t),sz);
140 return i;
141}