35 #define DATRW_GSEREAD_CC_VERSION \ 36 "DATRW_GSEREAD_CC V1.0 " 38 #include <datrwxx/gseread.h> 57 std::getline(is, theline);
58 std::istringstream iss(theline);
75 void help(std::ostream& os)
79 "GSE reading functions" << std::endl <<
80 "---------------------" << std::endl <<
83 "This module is designed to read raw GSE files." << std::endl <<
84 "Only one trace per file can be handled." << std::endl <<
85 "All additional line (prior to WID2 and after CHK2) are ignored." 102 std::cerr <<
"ERROR (datrw::gse::read_gse_data): " 103 <<
"allocating series for " 104 <<
nsamples <<
" samples!" << std::endl;
109 GSE2::waveform::TDAT2readCM6 freader(
nsamples);
110 for(aff::Iterator<Tiseries> i(retval); i.valid(); ++i)
111 { (*i) =
Tvalue(freader(is)); }
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
sff::WID2 next_wid2(std::istream &is)
find next WID2 line
#define DATRW_GSEREAD_CC_VERSION
aff::Series< Tivalue > Tiseries
const int nsamples
number of samples per minute block and channel
exception class declaration for libdatrwxx (prototypes)
Tiseries read_gse_data(std::istream &is, const int &nsamples)
read samples from file
Root namespace of library.
void help(std::ostream &os)
print info about GSE reading