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

Some components used by several I/O format modules. More...

Classes

union  IOUnion
 
class  seriesreservoir
 

Enumerations

enum  Ecpu_type { cpu_Intel = 1, cpu_Motorola = 2, cpu_unknown = 3 }
 Define different CPU type that are recognized. More...
 
enum  Emagic_type { magic_match = 1, magic_swap = 2, magic_nomatch = 3 }
 Define bytesex indicator for magic number test. More...
 
enum  Ereport { Fwarning, Fnonfatal, Ffatal }
 report categories More...
 
enum  Evaluetype { Fnone, Fdouble, Ffloat, Finteger }
 

Functions

std::string clipstring (std::string &s, const std::string &delim=":")
 strip substringStrips off first substring up to given delimiter. The string is passed as a reference and will be modified (i.e. the stripped substring as well as the delimiter will be erased). More...
 
std::string commatospace (std::string s)
 
template<class Cin , class Cout >
Cout convert (const typename Cin::Tcoc &data)
 function template to convert a whole series More...
 
template<class Cin , class Cout >
void convert (const Cin &data, Cout &outdata)
 two-argument conversion function which allows template function specialization More...
 
template<class C >
void convert (const C &data, C &outdata)
 specialization of function in case where no conversion is required More...
 
Ecpu_type cpu ()
 check for my CPU model More...
 
Emagic_type file_magic_test (std::istream &is, const char *const cmagic, const bool &fortranmode)
 check magic number in file More...
 
void file_magic_write (std::ostream &os, const char *const cmagic, const bool &fortranmode)
 write magic number to file More...
 
int magic (const char *const cmagic)
 function to create the magic number More...
 
int nsignificantdigits (double v, const bool &debug)
 return number of significant digits More...
 
int ntrailingdigits (double v, const bool &debug=false)
 return number of trailing digits (after decimal point) More...
 
template<class C >
readasciidouble (std::istream &is, const int nsamples, const std::string &streamname)
 read the trace data More...
 
void report_deprecated (const std::string &function, const std::string &reason)
 report deprecated function More...
 
void report_violation (const Ereport &t, const std::string &message, const std::string &file, const int &line, const std::string &condition)
 report violation of assertion More...
 
template<class T >
swap (const T &value)
 How to swap any generic type. More...
 
template<class T >
IOUnion< T > swap (const IOUnion< T > &value)
 Specialization in case we use use an IOUnion. i.e. overloading the function. More...
 
std::string trimws (std::string s)
 remove leading and trailing whitespace More...
 

Detailed Description

Some components used by several I/O format modules.