36 #define DATRW_IBINARYSTREAM_CC_VERSION \ 37 "DATRW_IBINARYSTREAM_CC V1.1" 46 const std::ios_base::openmode
53 Tbase(is, true, true, true, debug),
64 std::cerr <<
"*** file version: " <<
Mversion << std::endl;
67 "ERROR: file version does not match library version");
84 "reading file FREE block");
88 "ERROR: could not read behind file header");
97 "Mis.good(): " <<
Mis.good());
108 "Mis.good(): " <<
Mis.good());
154 typename aff::Series<T>& series,
178 std::cerr <<
"flags: " << int(flags) << std::endl;
243 DATRW_abort(
"ERROR (ibinarystream::skipseries): data type not indicated");
264 "BINARY reading functions" << std::endl <<
265 "------------------------" << std::endl <<
269 "This module reads binary data.\n" 270 "See the output module for further comments.\n" static void help(std::ostream &os=std::cout)
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
macro function for debugging output (prototypes)
Cout convert(const typename Cin::Tcoc &data)
function template to convert a whole series
void setinfo(const sff::INFO &info)
aff::Series< float > Tfseries
void checktraceflags(const char &flags)
abort if trace flags are inconsistent
virtual void skipseries()
void checkfileflags(const char &flags)
abort if file flags are inconsistent
void setfilefree(const sff::FREE &free)
virtual Tfseries fseries()
ibinarystream(std::istream &is, const bool &debug=false)
write raw binary data (prototypes)
const char *const magic
magic number to identify file type and bytesex
unsigned int skipfseries()
static bool report_on_construct_flag()
return report on construct flag
void setsrce(const sff::SRCE &srce)
static void dont_report_on_construct()
Issue NO screen report on construction of exception.
aff::Series< double > Tdseries
#define DATRW_IBINARYSTREAM_CC_VERSION
const int nsamples
number of samples per minute block and channel
exception class declaration for libdatrwxx (prototypes)
unsigned int skipdseries()
Base class for exceptions.
static const std::ios_base::openmode openmode
void setwid2(const sff::WID2 &wid2)
const short version
a version number for files - just in case
Root namespace of library.
void setnsamples(const unsigned int &nsamples)
utilities used by more than one type of data reader (prototypes)
virtual Tiseries iseries()
void readany(ibinstream &is, typename aff::Series< T > &series, const char &flags)
#define DATRW_abort(M)
Abort and give a message.
void settracefree(const sff::FREE &free)
aff::Series< int > Tiseries
stream like class for binary input of basic types and classes
virtual Tdseries dseries()
#define DATRW_debug(C, N, M)
produce debug output
char Mnextflags
flags for next trace
unsigned int skipiseries()