OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | List of all members
od_ostream Class Reference

OD class for stream write common access to the user log file, or std::cout in batch progs. More...

Inheritance diagram for od_ostream:
[legend]

Public Member Functions

 od_ostream ()
 
 od_ostream (const char *fnm, bool useexist=false)
 
 od_ostream (const FilePath &fp, bool useexist=false)
 
 od_ostream (std::ostream *s)
 
 od_ostream (std::ostream &s)
 
 od_ostream (const od_ostream &s)
 
od_ostreamoperator= (const od_ostream &s)
 
bool open (const char *, bool useexist=false)
 
od_ostreamadd (char)
 
od_ostreamadd (unsigned char)
 
od_ostreamadd (const char *)
 
od_ostreamadd (short)
 
od_ostreamadd (unsigned short)
 
od_ostreamadd (int)
 
od_ostreamadd (unsigned int)
 
od_ostreamadd (int64_t)
 
od_ostreamadd (uint64_t)
 
od_ostreamadd (long)
 
od_ostreamadd (unsigned long)
 
od_ostreamadd (float)
 
od_ostreamadd (double)
 
od_ostreamaddPrecise (float)
 
od_ostreamaddPrecise (double)
 
od_ostreamadd (const OD::String &)
 
od_ostreamadd (const uiString &)
 
od_ostreamadd (const IOPar &)
 
od_ostreamadd (const SeparString &)
 
od_ostreamadd (const CompoundKey &)
 
od_ostreamadd (const void *)
 produces pErrMsg but works More...
 
od_ostreamaddPtr (const void *)
 
od_ostreamadd (od_istream &)
 
od_ostreamadd (od_ostream &)
 
bool addBin (const void *, Count nrbytes)
 
template<class T >
od_ostreamaddBin (const T &)
 
std::ostream & stdStream ()
 
void flush ()
 
void setWritePosition (Pos p, Ref r=Abs)
 
Pos lastWrittenPosition () const
 
- Public Member Functions inherited from od_stream
virtual ~od_stream ()
 
bool isOK () const
 eof is not OK More...
 
bool isBad () const
 eof is not Bad More...
 
uiString errMsg () const
 see also below. More...
 
bool forRead () const
 
bool forWrite () const
 
Pos position () const
 
void setPosition (Pos, Ref r=Abs)
 
Pos endPosition () const
 
const char * fileName () const
 
void setFileName (const char *)
 
StreamDatastreamData ()
 
const StreamDatastreamData () const
 
void setNoClose (bool yn=true)
 
void releaseStream (StreamData &)
 
void close ()
 
void addErrMsgTo (BufferString &) const
 
void addErrMsgTo (uiString &) const
 

Static Public Member Functions

static od_ostreamnullStream ()
 
static od_ostreamlogStream ()
 used by ErrMsg and UsrMsg More...
 
- 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 * sStdIO ()
 pass this as filename to get cin or cout More...
 
static const char * sStdErr ()
 pass this as filename to get cerr More...
 

Additional Inherited Members

- Public Types inherited from od_stream
enum  Ref { Abs, Rel, End }
 
typedef od_stream_Count Count
 
typedef od_stream_Pos Pos
 
- 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 (std::ostream *)
 
 od_stream (std::ostream &)
 
 od_stream (std::istream *)
 
 od_stream (std::istream &)
 
 od_stream (const od_stream &)
 
od_streamoperator= (const od_stream &)
 
- Protected Attributes inherited from od_stream
StreamDatasd_
 
bool mine_
 
bool noclose_
 
uiString errmsg_
 

Detailed Description

OD class for stream write common access to the user log file, or std::cout in batch progs.

Constructor & Destructor Documentation

od_ostream::od_ostream ( )
inline
od_ostream::od_ostream ( const char *  fnm,
bool  useexist = false 
)
inline
od_ostream::od_ostream ( const FilePath fp,
bool  useexist = false 
)
inline
od_ostream::od_ostream ( std::ostream *  s)
inline
od_ostream::od_ostream ( std::ostream &  s)
inline
od_ostream::od_ostream ( const od_ostream s)
inline

Member Function Documentation

od_ostream& od_ostream::add ( char  )
od_ostream& od_ostream::add ( unsigned  char)
od_ostream& od_ostream::add ( const char *  )
od_ostream& od_ostream::add ( short  )
od_ostream& od_ostream::add ( unsigned  short)
od_ostream& od_ostream::add ( int  )
od_ostream& od_ostream::add ( unsigned  int)
od_ostream& od_ostream::add ( int64_t  )
od_ostream& od_ostream::add ( uint64_t  )
od_ostream& od_ostream::add ( long  )
od_ostream& od_ostream::add ( unsigned  long)
od_ostream& od_ostream::add ( float  )
od_ostream& od_ostream::add ( double  )
od_ostream& od_ostream::add ( const OD::String )
od_ostream& od_ostream::add ( const uiString )
od_ostream& od_ostream::add ( const IOPar )
od_ostream& od_ostream::add ( const SeparString )
od_ostream& od_ostream::add ( const CompoundKey )
od_ostream& od_ostream::add ( const void *  )

produces pErrMsg but works

od_ostream& od_ostream::add ( od_istream )
od_ostream& od_ostream::add ( od_ostream )
inline
bool od_ostream::addBin ( const void *  ,
Count  nrbytes 
)
template<class T >
od_ostream & od_ostream::addBin ( const T &  t)
inline
od_ostream& od_ostream::addPrecise ( float  )
od_ostream& od_ostream::addPrecise ( double  )
od_ostream& od_ostream::addPtr ( const void *  )
void od_ostream::flush ( )
Pos od_ostream::lastWrittenPosition ( ) const
inline
static od_ostream& od_ostream::logStream ( )
static

used by ErrMsg and UsrMsg

static od_ostream& od_ostream::nullStream ( )
static
bool od_ostream::open ( const char *  ,
bool  useexist = false 
)
od_ostream& od_ostream::operator= ( const od_ostream s)
inline
void od_ostream::setWritePosition ( Pos  p,
Ref  r = Abs 
)
inline
std::ostream& od_ostream::stdStream ( )

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