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

proceeding

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: 1831
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 02690f20
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.22 2005-07-06 14:11:13 tforb Exp $
# $Id: Makefile,v 1.23 2005-07-07 08:22:01 tforb Exp $
#
# Copyright (c) 2002 by Thomas Forbriger (IMG Frankfurt)
#
......@@ -149,7 +149,8 @@ DOXYSRC=$(README) $(HEADERS) $(SRC)
doc%/html/index.html: doxy%.cfg doxyclean $(DOXYSRC)
mkdir -p $(DOXYWWWPATH)
/bin/rm -rfv doc/* doc
/bin/rm -rfv $(patsubst doxy%.cfg,doc%,$<)/*
/bin/rm -rfv $(patsubst doxy%.cfg,doc%,$<)
ln -sfv $(DOXYWWWPATH) $(patsubst doxy%.cfg,doc%,$<)
doxygen $<
......@@ -161,7 +162,7 @@ doxydoc: doxyclean doxybrief doxyfull
doxyfullview doxybriefview: doxy%view: doxy%
mozilla doc$(patsubst doxy%view,%,$@)/html/index.html &
doxyview: doxyfullview doxybrief
doxyview: doxyfullview
#======================================================================
# delegate test targets
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: tidofi.cc,v 1.4 2005-07-07 07:52:08 tforb Exp $
* $Id: tidofi.cc,v 1.5 2005-07-07 08:22:01 tforb Exp $
* \author Thomas Forbriger
* \date 17/02/2004
*
......@@ -19,7 +19,7 @@
#define TIDOFI_VERSION \
"TIDOFI V1.0 time domain filter"
#define TIDOFI_CVSID \
"$Id: tidofi.cc,v 1.4 2005-07-07 07:52:08 tforb Exp $"
"$Id: tidofi.cc,v 1.5 2005-07-07 08:22:01 tforb Exp $"
#include <iostream>
#include <fstream>
......@@ -28,17 +28,24 @@
#include <tfxx/xcmdline.h>
#include <tfxx/error.h>
#include <tfxx/stringfunc.h>
#include <tfxx/rangestring.h>
#include <tfxx/rangelist.h>
#include <tsxx/anyfilter.h>
#include <datreadxx/readany.h>
#include <sffxx.h>
#include <sffostream.h>
using std::cout;
using std::cerr;
using std::endl;
typedef ts::filter::Ttimeseries Ttimeseries;
typedef Ttimeseries::Tseries Tseries;
/*----------------------------------------------------------------------*/
struct Options {
bool verbose;
bool verbose, debug;
bool overwrite;
bool readcommandfile;
std::string commandfile;
......@@ -99,8 +106,10 @@ int main(int iargc, char* argv[])
{NULL}
};
static const char tracekey[]="t";
// define commandline argument modifier keys
static const char* cmdlinekeys[]={"t", 0};
static const char* cmdlinekeys[]={tracekey, 0};
// no arguments? print usage...
if (iargc<2)
......@@ -269,10 +278,10 @@ int main(int iargc, char* argv[])
{
filefree.append(" " + file->name);
line=" ";
tfxx::cmdline::Toptionlist::const_iterator option=file->options.begin();
tfxx::cmdline::Toptionmap::const_iterator option=file->options.begin();
while (option != file->options.end())
{
line += " " + option->key + ":" + option->value;
line += " " + option->first + ":" + option->second;
++option;
}
if (line.size()>2) { filefree.append(line); }
......@@ -323,7 +332,7 @@ int main(int iargc, char* argv[])
filefree.append(infilefree);
}
os << filefree;
is (is.hassrce())
if (is.hassrce())
{
sff::SRCE insrceline;
is >> insrceline;
......@@ -333,7 +342,30 @@ int main(int iargc, char* argv[])
// cycle through traces of input file
// ----------------------------------
// setup trace selection
typedef tfxx::RangeList<int> Trangelist;
bool doselect=infile->haskey(tracekey);
Trangelist traceranges=
tfxx::string::rangelist<Trangelist::Tvalue>(infile->value(tracekey));
int itrace=0;
while (is.good())
{
++itrace;
if ((!doselect) || traceranges.contains(itrace))
{
if (opt.verbose)
{ std::cout << " process trace #" << itrace << std::endl; }
is.skipseries();
}
else
{
if (opt.verbose)
{ std::cout << " skip trace #" << itrace << std::endl; }
is.skipseries();
}
}
// go to next file
firstfile=false;
++infile;
}
......
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