FoldManager.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2020 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __FoldManager_h_
10 #define __FoldManager_h_
11 
16 #include "dsp/Operation.h"
17 
18 namespace dsp {
19 
20  class Fold;
21  class Observation;
22 
24 
76  class FoldManager : public Operation
77  {
78  public :
79 
82 
84  void manage (Fold*);
85 
87  void prepare ();
88 
90  void prepare (const Observation* observation);
91 
93  void combine (const Operation*);
94 
96  void reset ();
97 
99  void finish ();
100 
102  void set_cerr (std::ostream& os) const;
103 
104  protected:
105 
107  virtual void operation();
108 
110  std::vector< Reference::To<Fold> > fold;
111 
112  };
113 
114 }
115 
116 #endif
void set_cerr(std::ostream &os) const
Set verbosity ostream.
Definition: FoldManager.C:90
std::vector< Reference::To< Fold > > fold
The set of fold operations.
Definition: FoldManager.h:115
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
Fold TimeSeries data into phase-averaged profile(s)
Definition: Fold.h:34
Manage multiple Fold operations.
Definition: FoldManager.h:81
Defines the interface by which operations are performed on data.
Definition: Operation.h:37
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
void combine(const Operation *)
If Operation is a FoldManager, integrate its Fold instances.
Definition: FoldManager.C:49
void prepare()
Prepare to fold the input TimeSeries.
Definition: FoldManager.C:37
void manage(Fold *)
Add Fold instance to managed array
Definition: FoldManager.C:17
FoldManager()
Default constructor.
Definition: FoldManager.C:13
void reset()
Reset the PhaseSeries.
Definition: FoldManager.C:78
virtual void operation()
Simply executes all of the Fold operations in order.
Definition: FoldManager.C:22
virtual void set_cerr(std::ostream &) const
void finish()
Perform any final operations.
Definition: FoldManager.C:84

Generated using doxygen 1.8.17