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

support format modifier strings

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:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 4110
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 337c6b4f
......@@ -271,7 +271,7 @@ int main(int iargc, char* argv[])
// open filter input file
if (opt.verbose) { cout << "open input file " << filterinputname << endl; }
std::ifstream ifs(filterinputname.c_str());
datrw::ianystream is(ifs, datrw::anyID(opt.inputformat));
datrw::ianystream is(ifs, opt.inputformat);
is >> finputfilefree;
int itrace=1;
while (itrace!=filterinputtrace) { is.skipseries(); ++itrace; }
......@@ -290,7 +290,7 @@ int main(int iargc, char* argv[])
// open filter output file
if (opt.verbose) { cout << "open input file " << filteroutputname << endl; }
std::ifstream ifs(filteroutputname.c_str());
datrw::ianystream is(ifs, datrw::anyID(opt.inputformat));
datrw::ianystream is(ifs, opt.inputformat);
is >> foutputfilefree;
int itrace=1;
while (itrace!=filteroutputtrace) { is.skipseries(); ++itrace; }
......
......@@ -537,7 +537,7 @@ int main(int iargc, char* argv[])
// open input file
if (opt.verbose) { cout << "open input file " << infile->name << endl; }
std::ifstream ifs(infile->name.c_str());
datrw::ianystream is(ifs, datrw::anyID(opt.inputformat));
datrw::ianystream is(ifs, opt.inputformat);
// handle file header
if (firstfile)
{
......
......@@ -218,7 +218,7 @@ int main(int iargc, char* argv[])
Tfile Zindata;
{
std::ifstream ifs(filename.Zin.c_str());
datrw::ianystream is(ifs, datrw::anyID(opt.inputformat));
datrw::ianystream is(ifs, opt.inputformat);
Zindata.read(is.idatstream(), opt.verbose);
}
// read radial component input data
......@@ -227,7 +227,7 @@ int main(int iargc, char* argv[])
Tfile Rindata;
{
std::ifstream ifs(filename.Rin.c_str());
datrw::ianystream is(ifs, datrw::anyID(opt.inputformat));
datrw::ianystream is(ifs, opt.inputformat);
Rindata.read(is.idatstream(), opt.verbose);
}
......
......@@ -257,7 +257,7 @@ int main(int iargc, char* argv[])
// open input file
if (opt.verbose) { cout << "open input file " << infile->name << endl; }
std::ifstream ifs(infile->name.c_str());
datrw::ianystream is(ifs, datrw::anyID(opt.inputformat));
datrw::ianystream is(ifs, opt.inputformat);
// handle file header
if (firstfile)
{
......
......@@ -194,7 +194,7 @@ int main(int iargc, char* argv[])
tfxx::string::rangelist<Trangelist::Tvalue>(sigfile.value(tracekey));
if (opt.verbose) { cout << "open signal file " << sigfile.name << endl; }
std::ifstream ifs(sigfile.name.c_str());
datrw::ianystream is(ifs, datrw::anyID(opt.inputformat));
datrw::ianystream is(ifs, opt.inputformat);
if (doselect)
{ signal.read(is.idatstream(), traceranges, opt.verbose); }
else
......@@ -215,7 +215,7 @@ int main(int iargc, char* argv[])
if (opt.verbose) { cout << "open correction file "
<< infile->name << endl; }
std::ifstream ifs(infile->name.c_str());
datrw::ianystream is(ifs, datrw::anyID(opt.inputformat));
datrw::ianystream is(ifs, opt.inputformat);
// cycle through traces of input file
// ----------------------------------
......
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