37 #define DATRW_PDAS_CC_VERSION \ 43 #include <datrwxx/pdasread.h> 44 #include <aff/seriesoperators.h> 48 const std::ios_base::openmode
62 :
Tbase(is, true, true, true)
73 wid2.nsamples=
data.size();
75 return(datrw::pdas::convertandscale<Tdseries>(
data,
Mtype));
86 wid2.nsamples=
data.size();
88 return(datrw::pdas::convertandscale<Tfseries>(
data,
Mtype));
99 wid2.nsamples=
data.size();
101 return(datrw::pdas::convert<Tiseries>(
data));
123 std::back_inserter(tracefree.lines));
127 int ipday=hd.
date.find(
'-');
128 int ipyear=hd.
date.find(
'-',1+ipday);
129 std::string datestring=hd.
date.substr(1+ipyear)
130 +
'/' + hd.
date.substr(0,ipday)
131 +
'/' + hd.
date.substr(1+ipday,ipyear-ipday-1);
132 int ipspace=hd.
time.find(
' ');
133 datestring +=
'_' + hd.
time.substr(0,ipspace);
134 wid2.date=libtime::TAbsoluteTime(datestring.c_str());
const char *const streamID
Format properties.
static const std::ios_base::openmode openmode
aff::Series< float > Tfseries
static void help(std::ostream &os=std::cout)
aff::Series< double > Tdseries
void setwid2(const sff::WID2 &wid2)
const char *const data
keywords for consistency checks
Root namespace of library.
virtual Tfseries fseries()
void readdata(std::istream &is, Tdata &data, const Etype &type)
read PDAS data (prototypes)
ipdasstream(std::istream &is)
void settracefree(const sff::FREE &free)
aff::Series< int > Tiseries
void help(std::ostream &os)
function to print online help
virtual void skipseries()
Header readheader(std::istream &is, const bool &verbose)
function to read the file header
virtual Tdseries dseries()
virtual Tiseries iseries()
const bool isbinary
Format properties.
int countdata(std::istream &is, const Etype &type)
function to skip the file data but count the samples
std::vector< Tvalue > Tdata