![]() |
OpendTect 8.0
|
writes to a stream that can be Ascii or Binary. More...
#include <ascbinstream.h>
Public Member Functions | |
| ascbinostream (const ascbinostream &)=delete | |
| ascbinostream (od_ostream &, bool binary) | |
| ascbinostream (od_ostream *, bool binary) | |
| virtual | ~ascbinostream () |
| ascbinostream & | add (char, char post='\t') |
| ascbinostream & | add (char, const char *post) |
| ascbinostream & | add (double, char post='\t') |
| ascbinostream & | add (double, const char *post) |
| ascbinostream & | add (float, char post='\t') |
| ascbinostream & | add (float, const char *post) |
| ascbinostream & | add (od_int16, char post='\t') |
| ascbinostream & | add (od_int16, const char *post) |
| ascbinostream & | add (od_int32, char post='\t') |
| ascbinostream & | add (od_int32, const char *post) |
| ascbinostream & | add (od_int64, char post='\t') |
| ascbinostream & | add (od_int64, const char *post) |
| ascbinostream & | add (od_uint16, char post='\t') |
| ascbinostream & | add (od_uint16, const char *post) |
| ascbinostream & | add (od_uint32, char post='\t') |
| ascbinostream & | add (od_uint32, const char *post) |
| ascbinostream & | add (od_uint64, char post='\t') |
| ascbinostream & | add (od_uint64, const char *post) |
| ascbinostream & | add (unsigned char, char post='\t') |
| ascbinostream & | add (unsigned char, const char *post) |
| template<class T , class IT > | |
| ascbinostream & | addArr (const T *, IT sz, const char *between="\t", const char *post="\n") |
| Will write both sz and the array. | |
| template<class T > | |
| ascbinostream & | addBin (const T &t) |
| ascbinostream & | addBin (const void *, od_stream_Count nrbytes) |
| template<class T > | |
| ascbinostream & | addEOL (T t) |
| bool | isBad () const |
| bool | isOK () const |
| ascbinostream & | operator= (const ascbinostream &)=delete |
| od_ostream & | stream () |
Protected Attributes | |
| const bool | binary_ |
| od_ostream & | strm_ |
| const bool | strmmine_ |
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.
<>
| ascbinostream::ascbinostream | ( | od_ostream & | , |
| bool | binary ) |
| ascbinostream::ascbinostream | ( | od_ostream * | , |
| bool | binary ) |
|
virtual |
|
delete |
| ascbinostream & ascbinostream::add | ( | char | , |
| char | post = '\t' ) |
| ascbinostream & ascbinostream::add | ( | char | , |
| const char * | post ) |
| ascbinostream & ascbinostream::add | ( | double | , |
| char | post = '\t' ) |
| ascbinostream & ascbinostream::add | ( | double | , |
| const char * | post ) |
| ascbinostream & ascbinostream::add | ( | float | , |
| char | post = '\t' ) |
| ascbinostream & ascbinostream::add | ( | float | , |
| const char * | post ) |
| ascbinostream & ascbinostream::add | ( | od_int16 | , |
| char | post = '\t' ) |
| ascbinostream & ascbinostream::add | ( | od_int16 | , |
| const char * | post ) |
| ascbinostream & ascbinostream::add | ( | od_int32 | , |
| char | post = '\t' ) |
| ascbinostream & ascbinostream::add | ( | od_int32 | , |
| const char * | post ) |
| ascbinostream & ascbinostream::add | ( | od_int64 | , |
| char | post = '\t' ) |
| ascbinostream & ascbinostream::add | ( | od_int64 | , |
| const char * | post ) |
| ascbinostream & ascbinostream::add | ( | od_uint16 | , |
| char | post = '\t' ) |
| ascbinostream & ascbinostream::add | ( | od_uint16 | , |
| const char * | post ) |
| ascbinostream & ascbinostream::add | ( | od_uint32 | , |
| char | post = '\t' ) |
| ascbinostream & ascbinostream::add | ( | od_uint32 | , |
| const char * | post ) |
| ascbinostream & ascbinostream::add | ( | od_uint64 | , |
| char | post = '\t' ) |
| ascbinostream & ascbinostream::add | ( | od_uint64 | , |
| const char * | post ) |
| ascbinostream & ascbinostream::add | ( | unsigned char | , |
| char | post = '\t' ) |
| ascbinostream & ascbinostream::add | ( | unsigned char | , |
| const char * | post ) |
|
inline |
Will write both sz and the array.
|
inline |
| ascbinostream & ascbinostream::addBin | ( | const void * | , |
| od_stream_Count | nrbytes ) |
|
inline |
| bool ascbinostream::isBad | ( | ) | const |
| bool ascbinostream::isOK | ( | ) | const |
|
delete |
|
inline |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2025