TS++ library: time series library
filterbase.cc
Go to the documentation of this file.
1 
37 #define TF_FILTERBASE_CC_VERSION \
38  "TF_FILTERBASE_CC V1.2"
39 
40 #include <iostream>
41 #include <tsxx/filterbase.h>
42 #include <tsxx/debug.h>
43 
44 namespace ts {
45 
46  namespace filter {
47 
49  const bool& debug) const
50  {
51  Ttimeseries retval(s);
52  Tfilterlist::const_iterator i=this->Tfilterlist::begin();
53  while (i!=this->Tfilterlist::end())
54  {
55  TSXX_debug(debug, "FilterCollection::operator()",
56  "apply filter" );
57  retval=(*i)->operator()(retval, debug);
58  ++i;
59  }
60  TSXX_debug(debug, "FilterCollection::operator()",
61  "applied all filters" );
62  return retval;
63  }
64 
65  void Exception::report() const {
66  this->Tbase::report();
67  }
68 
70  this->Tbase::report();
71  std::cerr << "requested filter type: \"" << Mfilter << "\""
72  << std::endl;
73  }
74 
75  // place these into the binary library
78 
79  } // namespace filter
80 
81 } // namespace ts
82 
83 /* ----- END OF filterbase.cc ----- */
debug macro (prototypes)
BasicFilter()
Do not allow to use the baseclass alone.
Definition: filterbase.cc:76
#define TSXX_debug(C, N, M)
produce debug output
Definition: debug.h:51
virtual void report() const
Definition: filterbase.cc:69
Structure to hold the data samples of a series together with header information to form a time series...
Definition: tsxx.h:83
base class for all filter classes (prototypes)
All stuff in this library will be placed within namespace ts.
Definition: anyfilter.cc:43
virtual void report() const
Definition: filterbase.cc:65
Ttimeseries operator()(const Ttimeseries &s, const bool &debug=false) const
Definition: filterbase.cc:48