OpendTect
6.6
|
OD class for stream read common access to the std::cin. More...
Public Member Functions | |
od_istream () | |
od_istream (const char *fnm) | |
od_istream (const FilePath &fp) | |
od_istream (const od_istream &)=delete | |
od_istream (const OS::MachineCommand &mc, const char *workdir=nullptr) | |
od_istream (od_istream &&) | |
od_istream (std::istream &s) | |
od_istream (std::istream *s) | |
bool | atEOF () const |
Pos | endPosition () const |
od_istream & | get (BufferString &bs, bool allowgotonextline=true) |
od_istream & | get (char &) |
od_istream & | get (char *) |
unsafe - use getC instead -> pErrMsga More... | |
od_istream & | get (CompoundKey &) |
od_istream & | get (double &) |
od_istream & | get (FixedString &) |
does nothing + pErrMsg More... | |
od_istream & | get (float &) |
od_istream & | get (int &) |
od_istream & | get (int64_t &) |
od_istream & | get (IOPar &) |
od_istream & | get (long &) |
od_istream & | get (SeparString &) |
od_istream & | get (short &) |
od_istream & | get (uint64_t &) |
od_istream & | get (unsigned char &) |
od_istream & | get (unsigned int &) |
od_istream & | get (unsigned long &) |
od_istream & | get (unsigned short &) |
od_istream & | get (void *) |
does nothing + pErrMsg More... | |
bool | getAll (BufferString &) |
template<class T > | |
od_istream & | getBin (T &) |
bool | getBin (void *, Count nrbytes) |
od_istream & | getC (char *, int maxnrchar) |
od_istream & | getC (char *, int sz, int maxnrchar) |
bool | getLine (BufferString &, bool *newline_found=0) |
bool | getWord (BufferString &, bool allowgotonextline=true) |
void | ignore (Count) |
Count | lastNrBytesRead () const |
bool | open (const char *) |
od_istream & | operator= (const od_istream &)=delete |
od_istream & | operator= (od_istream &&) |
char | peek () const |
bool | reOpen () |
void | setReadPosition (Pos, Ref r=Abs) |
bool | skipLine () |
bool | skipUntil (char) |
bool | skipWord () |
std::istream & | stdStream () |
Public Member Functions inherited from od_stream | |
virtual | ~od_stream () |
void | addErrMsgTo (BufferString &) const |
void | addErrMsgTo (uiRetVal &) const |
void | addErrMsgTo (uiString &) const |
void | close () |
uiString | errMsg () const |
see also below. More... | |
const char * | fileName () const |
bool | forRead () const |
bool | forWrite () const |
bool | isBad () const |
eof is not Bad More... | |
bool | isLocal () const |
bool | isOK () const |
eof is not OK More... | |
Pos | position () const |
void | setFileName (const char *) |
void | setNoClose (bool yn=true) |
void | setPosition (Pos, Ref r=Abs) |
StreamData & | streamData () |
const StreamData & | streamData () const |
Static Public Member Functions | |
static od_istream & | nullStream () |
Static Public Member Functions inherited from od_stream | |
static od_stream * | create (const char *, bool forread, BufferString &errmsg) |
returns null on failure, never a bad stream More... | |
static od_stream * | create (const char *, bool forread, uiString &errmsg) |
returns null on failure, never a bad stream More... | |
static const char * | sStdErr () |
pass this as filename to get cerr More... | |
static const char * | sStdIO () |
pass this as filename to get cin or cout More... | |
Additional Inherited Members | |
Public Types inherited from od_stream | |
typedef od_stream_Count | Count |
typedef od_stream_Pos | Pos |
enum | Ref { Abs , Rel , End } |
Protected Member Functions inherited from od_stream | |
od_stream () | |
od_stream (const char *, bool, bool editmode=false) | |
od_stream (const FilePath &, bool, bool editmode=false) | |
od_stream (const OS::MachineCommand &, const char *workdir, bool editmode=false) | |
od_stream (std::istream &) | |
od_stream (std::istream *) | |
od_stream (std::ostream &) | |
od_stream (std::ostream *) | |
BufferString | noStdStreamPErrMsg () const |
od_stream & | operator= (const od_stream &)=delete |
Protected Attributes inherited from od_stream | |
uiString | errmsg_ |
bool | mine_ = true |
bool | noclose_ = false |
StreamData | sd_ |
OD class for stream read common access to the std::cin.
<>
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
delete |
od_istream::od_istream | ( | od_istream && | ) |
bool od_istream::atEOF | ( | ) | const |
equivalent to: !isOK() && !isBad() avoid using it in normal circumstances
Pos od_istream::endPosition | ( | ) | const |
|
inline |
od_istream& od_istream::get | ( | char & | ) |
od_istream& od_istream::get | ( | char * | ) |
unsafe - use getC instead -> pErrMsga
od_istream& od_istream::get | ( | CompoundKey & | ) |
od_istream& od_istream::get | ( | double & | ) |
od_istream& od_istream::get | ( | FixedString & | ) |
does nothing + pErrMsg
od_istream& od_istream::get | ( | float & | ) |
od_istream& od_istream::get | ( | int & | ) |
od_istream& od_istream::get | ( | int64_t & | ) |
od_istream& od_istream::get | ( | IOPar & | ) |
od_istream& od_istream::get | ( | long & | ) |
od_istream& od_istream::get | ( | SeparString & | ) |
od_istream& od_istream::get | ( | short & | ) |
od_istream& od_istream::get | ( | uint64_t & | ) |
od_istream& od_istream::get | ( | unsigned char & | ) |
od_istream& od_istream::get | ( | unsigned int & | ) |
od_istream& od_istream::get | ( | unsigned long & | ) |
od_istream& od_istream::get | ( | unsigned short & | ) |
od_istream& od_istream::get | ( | void * | ) |
does nothing + pErrMsg
bool od_istream::getAll | ( | BufferString & | ) |
|
inline |
bool od_istream::getBin | ( | void * | , |
Count | nrbytes | ||
) |
od_istream& od_istream::getC | ( | char * | , |
int | maxnrchar | ||
) |
od_istream& od_istream::getC | ( | char * | , |
int | sz, | ||
int | maxnrchar | ||
) |
bool od_istream::getLine | ( | BufferString & | , |
bool * | newline_found = 0 |
||
) |
bool od_istream::getWord | ( | BufferString & | , |
bool | allowgotonextline = true |
||
) |
void od_istream::ignore | ( | Count | ) |
Count od_istream::lastNrBytesRead | ( | ) | const |
|
static |
bool od_istream::open | ( | const char * | ) |
|
delete |
od_istream& od_istream::operator= | ( | od_istream && | ) |
char od_istream::peek | ( | ) | const |
bool od_istream::reOpen | ( | ) |
bool od_istream::skipLine | ( | ) |
bool od_istream::skipUntil | ( | char | ) |
bool od_istream::skipWord | ( | ) |
std::istream& od_istream::stdStream | ( | ) |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022