OpendTect  7.0
Public Member Functions | Protected Attributes | List of all members
ascbinostream Class Reference

writes to a stream that can be Ascii or Binary. More...

Public Member Functions

 ascbinostream (od_ostream &, bool binary)
 
 ascbinostream (od_ostream *, bool binary)
 
virtual ~ascbinostream ()
 
ascbinostreamadd (char, char post='\t')
 
ascbinostreamadd (char, const char *post)
 
ascbinostreamadd (double, char post='\t')
 
ascbinostreamadd (double, const char *post)
 
ascbinostreamadd (float, char post='\t')
 
ascbinostreamadd (float, const char *post)
 
ascbinostreamadd (std::int16_t, char post='\t')
 
ascbinostreamadd (std::int16_t, const char *post)
 
ascbinostreamadd (std::int32_t, char post='\t')
 
ascbinostreamadd (std::int32_t, const char *post)
 
ascbinostreamadd (std::int64_t, char post='\t')
 
ascbinostreamadd (std::int64_t, const char *post)
 
ascbinostreamadd (std::uint16_t, char post='\t')
 
ascbinostreamadd (std::uint16_t, const char *post)
 
ascbinostreamadd (std::uint32_t, char post='\t')
 
ascbinostreamadd (std::uint32_t, const char *post)
 
ascbinostreamadd (std::uint64_t, char post='\t')
 
ascbinostreamadd (std::uint64_t, const char *post)
 
ascbinostreamadd (unsigned char, char post='\t')
 
ascbinostreamadd (unsigned char, const char *post)
 
template<class T , class IT >
ascbinostreamaddArr (const T *, IT sz, const char *between="\t", const char *post="\n")
 Will write both sz and the array. More...
 
template<class T >
ascbinostreamaddBin (const T &t)
 
ascbinostreamaddBin (const void *, od_stream_Count nrbytes)
 
template<class T >
ascbinostreamaddEOL (T t)
 
bool isBad () const
 
bool isOK () const
 
od_ostreamstream ()
 

Protected Attributes

const bool binary_
 
od_ostreamstrm_
 
const bool strmmine_
 

Detailed Description

writes to a stream that can be Ascii or Binary.

In Ascii mode every write will get a post-character or post-string written, usually either a tab (default) or a newline. In binary mode the bytes of the input values are simply dumped to the stream.

<>

Constructor & Destructor Documentation

◆ ascbinostream() [1/2]

ascbinostream::ascbinostream ( od_ostream ,
bool  binary 
)

◆ ascbinostream() [2/2]

ascbinostream::ascbinostream ( od_ostream ,
bool  binary 
)

◆ ~ascbinostream()

virtual ascbinostream::~ascbinostream ( )
virtual

Member Function Documentation

◆ add() [1/20]

ascbinostream& ascbinostream::add ( char  ,
char  post = '\t' 
)

◆ add() [2/20]

ascbinostream& ascbinostream::add ( char  ,
const char *  post 
)

◆ add() [3/20]

ascbinostream& ascbinostream::add ( double  ,
char  post = '\t' 
)

◆ add() [4/20]

ascbinostream& ascbinostream::add ( double  ,
const char *  post 
)

◆ add() [5/20]

ascbinostream& ascbinostream::add ( float  ,
char  post = '\t' 
)

◆ add() [6/20]

ascbinostream& ascbinostream::add ( float  ,
const char *  post 
)

◆ add() [7/20]

ascbinostream& ascbinostream::add ( std::int16_t  ,
char  post = '\t' 
)

◆ add() [8/20]

ascbinostream& ascbinostream::add ( std::int16_t  ,
const char *  post 
)

◆ add() [9/20]

ascbinostream& ascbinostream::add ( std::int32_t  ,
char  post = '\t' 
)

◆ add() [10/20]

ascbinostream& ascbinostream::add ( std::int32_t  ,
const char *  post 
)

◆ add() [11/20]

ascbinostream& ascbinostream::add ( std::int64_t  ,
char  post = '\t' 
)

◆ add() [12/20]

ascbinostream& ascbinostream::add ( std::int64_t  ,
const char *  post 
)

◆ add() [13/20]

ascbinostream& ascbinostream::add ( std::uint16_t  ,
char  post = '\t' 
)

◆ add() [14/20]

ascbinostream& ascbinostream::add ( std::uint16_t  ,
const char *  post 
)

◆ add() [15/20]

ascbinostream& ascbinostream::add ( std::uint32_t  ,
char  post = '\t' 
)

◆ add() [16/20]

ascbinostream& ascbinostream::add ( std::uint32_t  ,
const char *  post 
)

◆ add() [17/20]

ascbinostream& ascbinostream::add ( std::uint64_t  ,
char  post = '\t' 
)

◆ add() [18/20]

ascbinostream& ascbinostream::add ( std::uint64_t  ,
const char *  post 
)

◆ add() [19/20]

ascbinostream& ascbinostream::add ( unsigned char  ,
char  post = '\t' 
)

◆ add() [20/20]

ascbinostream& ascbinostream::add ( unsigned char  ,
const char *  post 
)

◆ addArr()

template<class T , class IT >
ascbinostream & ascbinostream::addArr ( const T *  arr,
IT  sz,
const char *  between = "\t",
const char *  post = "\n" 
)
inline

Will write both sz and the array.

◆ addBin() [1/2]

template<class T >
ascbinostream& ascbinostream::addBin ( const T &  t)
inline

◆ addBin() [2/2]

ascbinostream& ascbinostream::addBin ( const void *  ,
od_stream_Count  nrbytes 
)

◆ addEOL()

template<class T >
ascbinostream& ascbinostream::addEOL ( t)
inline

◆ isBad()

bool ascbinostream::isBad ( ) const

◆ isOK()

bool ascbinostream::isOK ( ) const

◆ stream()

od_ostream& ascbinostream::stream ( )
inline

Member Data Documentation

◆ binary_

const bool ascbinostream::binary_
protected

◆ strm_

od_ostream& ascbinostream::strm_
protected

◆ strmmine_

const bool ascbinostream::strmmine_
protected

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