38 #ifndef DATRW_PDASREAD_H_VERSION 40 #define DATRW_PDASREAD_H_VERSION \ 41 "DATRW_PDASREAD_H V1.2 " 45 #include<datrwxx/pdasflags.h> 76 typedef std::vector<Tvalue>
Tdata;
101 retval(i)=Toutvalue(sample);
110 long unsigned int factor;
114 { factor=0x80000000; }
116 { factor=0x10000000; }
120 Tcontfactor cfactor=Tcontfactor(factor);
121 return(datrw::pdas::convert<C>(
data) / cfactor);
125 void help(std::ostream& os=std::cout);
131 #endif // DATRW_PDASREAD_H_VERSION (includeguard) C convertandscale(const Tdata &data, const Etype &type)
function to scale data
C convert(const Tdata &data)
function to convert data
Etype
define pdas data types
const int nsamples
number of samples per minute block and channel
exception class declaration for libdatrwxx (prototypes)
const char *const data
keywords for consistency checks
Tvalue readsample(std::istream &is, const Etype &type)
function to read one sample
Root namespace of library.
void readdata(std::istream &is, Tdata &data, const Etype &type)
HeaderLine readline(std::istream &is, const bool &verbose)
function to read the file header line
#define DATRW_abort(M)
Abort and give a message.
void help(std::ostream &os)
function to print online help
Header readheader(std::istream &is, const bool &verbose)
function to read the file header
int countdata(std::istream &is, const Etype &type)
function to skip the file data but count the samples
std::vector< Tvalue > Tdata