OpendTect  7.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
std::winfilebuf Class Reference

Adapter to seek in filebuffers on win64. More...

Inheritance diagram for std::winfilebuf:
[legend]

Public Member Functions

 winfilebuf (const char *fnm, ios_base::openmode om)
 
od_int64 getRealPos () const
 
bool isOK () const
 

Protected Member Functions

virtual pos_type seekoff (off_type _Off, ios_base::seekdir _Way, ios_base::openmode=(ios_base::openmode)(ios_base::in|ios_base::out))
 

Protected Attributes

bool isok_
 
od_int64 realpos_
 

Detailed Description

Adapter to seek in filebuffers on win64.

Usage like:

  std::winfilebuf fb;
  std::istream strm( &fb );

After "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\fstream" Only change is: fseek -> _fseeki64

<>

Constructor & Destructor Documentation

◆ winfilebuf()

std::winfilebuf::winfilebuf ( const char *  fnm,
ios_base::openmode  om 
)
inline

Member Function Documentation

◆ getRealPos()

od_int64 std::winfilebuf::getRealPos ( ) const
inline

◆ isOK()

bool std::winfilebuf::isOK ( ) const
inline

◆ seekoff()

virtual pos_type std::winfilebuf::seekoff ( off_type  _Off,
ios_base::seekdir  _Way,
ios_base::openmode  = (ios_base::openmode)(ios_base::in | ios_base::out) 
)
inlineprotectedvirtual

Member Data Documentation

◆ isok_

bool std::winfilebuf::isok_
protected

◆ realpos_

od_int64 std::winfilebuf::realpos_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024