13 #define private protected 17 # define fpos_t od_int64 20 #ifndef _POS_TYPE_FROM_STATE 22 #define _POS_TYPE_FROM_STATE(postype, state, position) postype(state, position) 23 #define _POS_TYPE_TO_STATE(pos) pos.state() 48 isok_ = open( fnm, om );
51 bool isOK()
const {
return isok_; }
55 #define defom (ios_base::openmode)(ios_base::in | ios_base::out) 57 virtual pos_type
seekoff( off_type _Off, ios_base::seekdir _Way,
58 ios_base::openmode =
defom )
62 if ( _Mysb::gptr() == &_Mychar && _Way == ios_base::cur && _Pcvt == 0 )
63 _Off -= (off_type)
sizeof (
char);
65 if ( _Myfile==0 || !_Endwrite() || (_Off!=0 || _Way!=ios_base::cur) &&
66 _fseeki64(_Myfile,_Off,_Way) != 0 ||
67 fgetpos(_Myfile,&_Fileposition) != 0 )
70 if ( _Mysb::gptr() == &_Mychar )
71 _Mysb::setg( &_Mychar, &_Mychar+1, &_Mychar+1 );
99 setstate( ios_base::failbit );
105 setstate( ios_base::failbit );
109 {
return fb_->is_open(); }
132 setstate( ios_base::failbit );
138 setstate( ios_base::failbit );
142 {
return fb_->is_open(); }
#define od_int64
Definition: plftypes.h:36
Adapter for output streams on win64.
Definition: winstreambuf.h:119
~winofstream()
Definition: winstreambuf.h:135
Definition: fixedstreambuf.h:17
virtual pos_type seekoff(off_type _Off, ios_base::seekdir _Way, ios_base::openmode=(ios_base::openmode)(ios_base::in|ios_base::out))
Definition: winstreambuf.h:57
#define defom
Definition: winstreambuf.h:55
winifstream(const char *fnm, ios_base::openmode om)
Definition: winstreambuf.h:90
winfilebuf * fb_
Definition: winstreambuf.h:111
Adapter for input streams on win64.
Definition: winstreambuf.h:86
od_int64 realpos_
Definition: winstreambuf.h:78
bool isok_
Definition: winstreambuf.h:77
Adapter to seek in filebuffers on win64.
Definition: winstreambuf.h:42
#define _POS_TYPE_FROM_STATE(postype, state, position)
Definition: winstreambuf.h:22
od_int64 getRealPos() const
Definition: winstreambuf.h:52
#define _BADOFF
Definition: winstreambuf.h:24
bool is_open()
Definition: winstreambuf.h:141
winofstream(const char *fnm, ios_base::openmode om)
Definition: winstreambuf.h:123
winfilebuf * fb_
Definition: winstreambuf.h:144
bool is_open()
Definition: winstreambuf.h:108
winfilebuf(const char *fnm, ios_base::openmode om)
Definition: winstreambuf.h:45
#define mClass(module)
Definition: commondefs.h:164
bool isOK() const
Definition: winstreambuf.h:51
~winifstream()
Definition: winstreambuf.h:102