36 #ifndef DATRW_THIESDL1FILE_H_VERSION 38 #define DATRW_THIESDL1FILE_H_VERSION \ 39 "DATRW_THIESDL1FILE_H V1.0 " 41 #include <libtime++.h> 44 #include <datrwxx/thiesdl1line.h> 65 const char* condition,
66 libtime::TAbsoluteTime earliest,
67 libtime::TAbsoluteTime latest,
68 std::string dataline):
69 Exception(message, file, line, condition),
74 virtual void report()
const;
203 #endif // DATRW_THIESDL1FILE_H_VERSION (includeguard)
internal data types (prototypes)
ExceptionRecordWindow(const char *message, const char *file, const int &line, const char *condition, libtime::TAbsoluteTime earliest, libtime::TAbsoluteTime latest, std::string dataline)
Create with message, failed assertion, and code position.
::sff::FREE filefree() const
return FREE lines read from file header
FileHeader readheader(std::istream &is)
Read and parse a file header.
Exception indicating an inconsistent data line.
aff::Series< float > Tfseries
Tdseries dseries() const
return data block of values
bool Mbetolerantagainstwrongtime
mode: do not abort upon wrong sample time
::sff::FREE tracefree() const
return FREE lines produced while reading the data
void toleratewrongtime(const bool flag=true)
set tolerance for wrong time
void tolerateredundant(const bool flag=true)
set tolerance for redundant samples
Store one line of data as read from DL1.
aff::Series< double > Tdseries
const libtime::TRelativeTime dl1samplinginterval
expected sampling interval of DL1
unsigned int Mnsamples
number of samples
bool Mbetolerantagainstredundant
mode: do not abort upon redundant samples
FileHeader header() const
return file header
aff::Series< bool > Mfilled
an array to keep track of samples
exception class declaration for libdatrwxx (prototypes)
Tiseries Miseries
prepare are series of counts
Base class for exceptions.
void readwithheader(std::istream &is)
actually read file
bool isproperlyfilled(const bool &throwerrors=false) const
bool Mreadyforreading
is this container empty and ready for reading?
bool Mfoundunexpecteddatatime
found unexpected data time
Tiseries iseries() const
return data block of counts
Root namespace of library.
::sff::WID2 wid2line() const
return WID2 header
libtime::TAbsoluteTime Mearliest
FileHeader Mheader
file header
void read(std::istream &is, const FileHeader &header)
actually read file
::sff::FREE Mtracefree
comment header lines
void clear()
clear container
aff::Series< int > Tiseries
libtime::TAbsoluteTime Mlatest
Tfseries fseries() const
return data block of values
virtual void report() const
Screen report.
const char *const precipitationID
SEED channel identifier for precipitation.
int nsamples() const
number of samples expected in this data set
bool foundunexpecteddatatime() const
true if unexpected data time was found
bool Mreadsuccessfully
true if data was read successfully
void put(const DataLine &line)
drop a data line
virtual ~ExceptionRecordWindow()