DATRW++ library: seismic data I/O with multiple formats
I/O module for binary data

I/O module for binary data. More...

Namespaces

 datrw::binary
 internals of the binary I/O module
 

Classes

class  datrw::binary::ibinstream
 stream like class for binary input of basic types and classes More...
 
class  datrw::binary::obinstream
 binary output for basic types and classes More...
 
class  datrw::ibinarystream
 class to read binary data More...
 
class  datrw::obinarystream
 class to write binary More...
 

Enumerations

enum  datrw::binary::Eflags {
  datrw::binary::Fsrce = (1<<0), datrw::binary::Ffree = (1<<1), datrw::binary::Finfo = (1<<2), datrw::binary::Fdouble = (1<<3),
  datrw::binary::Ffloat = (1<<4), datrw::binary::Fint = (1<<5)
}
 indicate file or trace properties More...
 

Functions

void datrw::binary::checkfileflags (const char &flags)
 abort if file flags are inconsistent More...
 
void datrw::binary::checktraceflags (const char &flags)
 abort if trace flags are inconsistent More...
 
template<class C >
obinstreamdatrw::binary::operator<< (obinstream &obs, const C &v)
 output operator for basic types and classes More...
 
template<class C >
ibinstreamdatrw::binary::operator>> (ibinstream &ibs, C &v)
 input operator for basic types and classes More...
 

Variables

const char *const datrw::binary::magic ="TBIN"
 magic number to identify file type and bytesex More...
 
const short datrw::binary::version =1
 a version number for files - just in case More...
 
const bool datrw::binary::isbinary =false
 Format properties. More...
 
const char *const datrw::binary::streamID ="bin"
 Format properties. More...
 

Detailed Description

I/O module for binary data.