actually read file
Definition at line 241 of file thiesdl1file.cc.
References DATRW_assert, DATRW_nonfatal_assert, datrw::thiesdl1::FileHeader::earliestdate, datrw::thiesdl1::FileHeader::expectedfinaldataline, header(), datrw::thiesdl1::FileHeader::latestdate, Mbetolerantagainstwrongtime, Mfilled, Mheader, Miseries, Mnsamples, Mreadsuccessfully, Mreadyforreading, datrw::thiesdl1::FileHeader::nsamples(), and put().
Referenced by datrw::ithiesdl1stream::readsamples(), and readwithheader().
245 "ERROR: File container is not empty");
251 fileduration<libtime::TRelativeTime(5),
252 "Duration of file is larger than 5 days!\n" 267 while (hot && is.good())
277 DataLine dataline(line);
281 DATRW_assert(!hot,
"missed expected last line of data file");
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
bool Mbetolerantagainstwrongtime
mode: do not abort upon wrong sample time
unsigned int Mnsamples
number of samples
FileHeader header() const
return file header
aff::Series< bool > Mfilled
an array to keep track of samples
Tiseries Miseries
prepare are series of counts
bool Mreadyforreading
is this container empty and ready for reading?
FileHeader Mheader
file header
aff::Series< int > Tiseries
#define DATRW_nonfatal_assert(F, C, M)
Macro to distinguish between fatal and non fatal assertions.
bool Mreadsuccessfully
true if data was read successfully
void put(const DataLine &line)
drop a data line