 |
OpendTect
6.6
|
Go to the documentation of this file.
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 std::filebuf* openstrm = open( fnm, om );
52 bool isOK()
const {
return isok_; }
56 #define defom (ios_base::openmode)(ios_base::in | ios_base::out)
58 virtual pos_type
seekoff( off_type _Off, ios_base::seekdir _Way,
59 ios_base::openmode =
defom )
63 if ( _Mysb::gptr() == &_Mychar && _Way == ios_base::cur && _Pcvt == 0 )
64 _Off -= (off_type)
sizeof (
char);
66 if ( _Myfile==0 || !_Endwrite() || (_Off!=0 || _Way!=ios_base::cur) &&
67 _fseeki64(_Myfile,_Off,_Way) != 0 ||
68 fgetpos(_Myfile,&_Fileposition) != 0 )
71 if ( _Mysb::gptr() == &_Mychar )
72 _Mysb::setg( &_Mychar, &_Mychar+1, &_Mychar+1 );
100 setstate( ios_base::failbit );
106 setstate( ios_base::failbit );
111 {
return fb_->is_open(); }
134 setstate( ios_base::failbit );
140 setstate( ios_base::failbit );
145 {
return fb_->is_open(); }
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:58
od_int64 getRealPos() const
Definition: winstreambuf.h:53
~winifstream()
Definition: winstreambuf.h:103
#define od_int64
Definition: plftypes.h:35
Adapter for input streams on win64.
Definition: winstreambuf.h:88
bool is_open()
Definition: winstreambuf.h:144
winofstream(const char *fnm, ios_base::openmode om)
Definition: winstreambuf.h:125
winfilebuf * fb_
Definition: winstreambuf.h:147
bool is_open()
Definition: winstreambuf.h:110
bool isok_
Definition: winstreambuf.h:78
#define mClass(module)
Definition: commondefs.h:181
winfilebuf * fb_
Definition: winstreambuf.h:113
bool isOK() const
Definition: winstreambuf.h:52
winfilebuf(const char *fnm, ios_base::openmode om)
Definition: winstreambuf.h:45
#define defom
Definition: winstreambuf.h:56
od_int64 realpos_
Definition: winstreambuf.h:79
Definition: fixedstreambuf.h:20
~winofstream()
Definition: winstreambuf.h:137
Adapter to seek in filebuffers on win64.
Definition: winstreambuf.h:43
#define _BADOFF
Definition: winstreambuf.h:24
Adapter for output streams on win64.
Definition: winstreambuf.h:122
winifstream(const char *fnm, ios_base::openmode om)
Definition: winstreambuf.h:91
#define _POS_TYPE_FROM_STATE(postype, state, position)
Definition: winstreambuf.h:22
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021