OpendTect  7.0
Public Member Functions | List of all members
od_ostrstream Class Reference

OD class for stream write into string. More...

Inheritance diagram for od_ostrstream:
[legend]

Public Member Functions

 od_ostrstream ()
 
const char * result () const
 
void setEmpty ()
 
- Public Member Functions inherited from od_ostream
 od_ostream ()
 
 od_ostream (const char *fnm, bool useexist=false)
 
 od_ostream (const FilePath &fp, bool useexist=false)
 
 od_ostream (const OS::MachineCommand &mc, const char *workdir=nullptr)
 
 od_ostream (od_ostream &&)
 
 od_ostream (std::ostream &s)
 
 od_ostream (std::ostream *s)
 
od_ostreamadd (char)
 
od_ostreamadd (const char *)
 
od_ostreamadd (const CompoundKey &)
 
od_ostreamadd (const IOPar &)
 
od_ostreamadd (const MultiID &)
 
od_ostreamadd (const OD::String &)
 
od_ostreamadd (const SeparString &)
 
od_ostreamadd (const uiString &)
 
od_ostreamadd (const void *)
 produces pErrMsg but works More...
 
od_ostreamadd (double)
 
od_ostreamadd (float)
 
od_ostreamadd (long)
 
od_ostreamadd (od_istream &)
 
od_ostreamadd (od_ostream &)
 
od_ostreamadd (std::int16_t)
 
od_ostreamadd (std::int32_t)
 
od_ostreamadd (std::int64_t)
 
od_ostreamadd (std::uint16_t)
 
od_ostreamadd (std::uint32_t)
 
od_ostreamadd (std::uint64_t)
 
od_ostreamadd (unsigned char)
 
od_ostreamadd (unsigned long)
 
template<class T >
od_ostreamaddBin (const T &)
 
bool addBin (const void *, Count nrbytes)
 
od_ostreamaddNewLine ()
 
od_ostreamaddPrecise (double)
 
od_ostreamaddPrecise (float)
 
od_ostreamaddPtr (const void *)
 
od_ostreamaddTab ()
 
void flush ()
 
Pos lastWrittenPosition () const
 
bool open (const char *, bool useexist=false)
 
od_ostreamoperator= (od_ostream &&)
 
void setWritePosition (Pos, Ref r=Abs)
 
std::ostream & 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_ostream
static od_ostreamlogStream ()
 used by ErrMsg and UsrMsg More...
 
static od_ostreamnullStream ()
 
- 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 stream write into string.

<>

Constructor & Destructor Documentation

◆ od_ostrstream()

od_ostrstream::od_ostrstream ( )

Member Function Documentation

◆ result()

const char* od_ostrstream::result ( ) const

◆ setEmpty()

void od_ostrstream::setEmpty ( )

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