Commit f0ac3985 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

sutest scans and reports file contents through stream

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.

SVN Path:
SVN Revision: 3479
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 5519b653
......@@ -146,9 +146,36 @@ int main(int iargc, char* argv[])
std::ifstream ifs(opt.sfilename.c_str(),
datrw::isustream is(ifs, opt.debug);
::datrw::Tfseries series;
::sff::WID2 wid2;
::sff::SRCE srce;
::sff::INFO info;
int itrace=0;
is >> srce;
::sff::verbose(cout, srce);
while (is.good())
cout << endl << "trace #" << itrace << endl;
is >> series;
is >> wid2;
is >> info;
::sff::verbose(cout, wid2);
::sff::verbose(cout, info);
int l=3;
l=series.l()>l ? l:series.l();
for (int i=series.f(); i<=l; ++i)
cout << "s("<<i<<")="<<series(i)<<" ";
cout << endl;
l=series.f()>l ? series.f():l;
for (int i=l; i<=series.l(); ++i)
cout << "s("<<i<<")="<<series(i)<<" ";
cout << endl;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment