38 #ifndef DATRW_BINARY_H_VERSION 40 #define DATRW_BINARY_H_VERSION \ 45 #include<datrwxx/ibinstream.h> 46 #include<datrwxx/obinstream.h> 69 extern const char*
const magic;
113 static void help(std::ostream& os=std::cout);
135 static void help(std::ostream& os=std::cout);
140 virtual void writetrace(
const Tdseries::Tcoc& series);
142 virtual void writetrace(
const Tfseries::Tcoc& series);
144 virtual void writetrace(
const Tiseries::Tcoc& series);
153 #endif // DATRW_BINARY_H_VERSION (includeguard)
static void help(std::ostream &os=std::cout)
obinarystream(std::ostream &os, const bool &debug=false)
const char *const streamID
Format properties.
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
virtual Tfseries fseries()
ibinarystream(std::istream &is, const bool &debug=false)
const char *const magic
magic number to identify file type and bytesex
aff::Series< double > Tdseries
binary output for basic types and classes
const int nsamples
number of samples per minute block and channel
static void help(std::ostream &os=std::cout)
virtual void writefileheader()
actually write the file header
static const std::ios_base::openmode openmode
bool debug()
indicate debug mode
const short version
a version number for files - just in case
bool debug()
indicate debug mode
Root namespace of library.
void setnsamples(const unsigned int &nsamples)
virtual void writetrace(const Tdseries::Tcoc &series)
write double data
Eflags
indicate file or trace properties
virtual Tiseries iseries()
aff::Series< int > Tiseries
stream like class for binary input of basic types and classes
virtual Tdseries dseries()
void writetraceheader(const binary::Eflags &, const unsigned int &nsamples)
char Mnextflags
flags for next trace
static const std::ios_base::openmode openmode
const bool isbinary
Format properties.
class to read binary data
generic interface definition (prototypes)