OpendTect  6.6
Public Member Functions | List of all members
od_istrstream Class Reference

OD class for streaming from string. More...

Inheritance diagram for od_istrstream:
[legend]

Public Member Functions

 od_istrstream (const char *)
 
const char * input () const
 
void setInput (const char *)
 
- Public Member Functions inherited from od_istream
 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_istreamget (BufferString &bs, bool allowgotonextline=true)
 
od_istreamget (char &)
 
od_istreamget (char *)
 unsafe - use getC instead -> pErrMsga More...
 
od_istreamget (CompoundKey &)
 
od_istreamget (double &)
 
od_istreamget (FixedString &)
 does nothing + pErrMsg More...
 
od_istreamget (float &)
 
od_istreamget (int &)
 
od_istreamget (int64_t &)
 
od_istreamget (IOPar &)
 
od_istreamget (long &)
 
od_istreamget (SeparString &)
 
od_istreamget (short &)
 
od_istreamget (uint64_t &)
 
od_istreamget (unsigned char &)
 
od_istreamget (unsigned int &)
 
od_istreamget (unsigned long &)
 
od_istreamget (unsigned short &)
 
od_istreamget (void *)
 does nothing + pErrMsg More...
 
bool getAll (BufferString &)
 
template<class T >
od_istreamgetBin (T &)
 
bool getBin (void *, Count nrbytes)
 
od_istreamgetC (char *, int maxnrchar)
 
od_istreamgetC (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_istreamoperator= (const od_istream &)=delete
 
od_istreamoperator= (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)
 
StreamDatastreamData ()
 
const StreamDatastreamData () const
 

Additional Inherited Members

- Public Types inherited from od_stream
typedef od_stream_Count Count
 
typedef od_stream_Pos Pos
 
enum  Ref { Abs , Rel , End }
 
- Static Public Member Functions inherited from od_istream
static od_istreamnullStream ()
 
- Static Public Member Functions inherited from od_stream
static od_streamcreate (const char *, bool forread, BufferString &errmsg)
 returns null on failure, never a bad stream More...
 
static od_streamcreate (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...
 
- 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_streamoperator= (const od_stream &)=delete
 
- Protected Attributes inherited from od_stream
uiString errmsg_
 
bool mine_ = true
 
bool noclose_ = false
 
StreamData sd_
 

Detailed Description

OD class for streaming from string.

<>

Constructor & Destructor Documentation

◆ od_istrstream()

od_istrstream::od_istrstream ( const char *  )

Member Function Documentation

◆ input()

const char* od_istrstream::input ( ) const

◆ setInput()

void od_istrstream::setInput ( const char *  )

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