Class for simple ascii/binary stream read/write.
More...
List of all members.
Public Member Functions |
| | StreamIO (std::ostream &s, bool binary) |
| | StreamIO (std::istream &s, bool binary) |
| bool | writeInt16 (const short &, const char *post="\t") |
| bool | writeInt32 (const int &, const char *post="\t") |
| bool | writeInt64 (const int64_t &, const char *post="\t") |
| bool | writeFloat (const float &, const char *post="\t") |
| virtual short | readInt16 () const |
| virtual int | readInt32 () const |
| virtual int64_t | readInt64 () const |
| virtual float | readFloat () const |
| int64_t | tellg () const |
| int64_t | tellp () const |
| bool | seekg (int64_t, std::ios_base::seekdir=std::ios_base::beg) |
| bool | seekp (int64_t, std::ios_base::seekdir=std::ios_base::beg) |
| virtual void | fillPar (IOPar &) const |
| virtual bool | usePar (const IOPar &) |
Protected Attributes |
| std::ostream * | ostrm_ |
| std::istream * | istrm_ |
| bool | binary_ |
Detailed Description
Class for simple ascii/binary stream read/write.
Constructor & Destructor Documentation
| StreamIO::StreamIO |
( |
std::ostream & |
s, |
|
|
bool |
binary | |
|
) |
| | [inline] |
| StreamIO::StreamIO |
( |
std::istream & |
s, |
|
|
bool |
binary | |
|
) |
| | [inline] |
Member Function Documentation
| virtual void StreamIO::fillPar |
( |
IOPar & |
|
) |
const [inline, virtual] |
| virtual float StreamIO::readFloat |
( |
|
) |
const [virtual] |
| virtual short StreamIO::readInt16 |
( |
|
) |
const [virtual] |
| virtual int StreamIO::readInt32 |
( |
|
) |
const [virtual] |
| virtual int64_t StreamIO::readInt64 |
( |
|
) |
const [virtual] |
| bool StreamIO::seekg |
( |
int64_t |
, |
|
|
std::ios_base::seekdir |
= std::ios_base::beg | |
|
) |
| | |
| bool StreamIO::seekp |
( |
int64_t |
, |
|
|
std::ios_base::seekdir |
= std::ios_base::beg | |
|
) |
| | |
| int64_t StreamIO::tellg |
( |
|
) |
const |
| int64_t StreamIO::tellp |
( |
|
) |
const |
| virtual bool StreamIO::usePar |
( |
const IOPar & |
|
) |
[inline, virtual] |
| bool StreamIO::writeFloat |
( |
const float & |
, |
|
|
const char * |
post = "\t" | |
|
) |
| | |
| bool StreamIO::writeInt16 |
( |
const short & |
, |
|
|
const char * |
post = "\t" | |
|
) |
| | |
| bool StreamIO::writeInt32 |
( |
const int & |
, |
|
|
const char * |
post = "\t" | |
|
) |
| | |
| bool StreamIO::writeInt64 |
( |
const int64_t & |
, |
|
|
const char * |
post = "\t" | |
|
) |
| | |
Member Data Documentation