ResponseProduct.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Signal/General/dsp/ResponseProduct.h
10 
11 #ifndef __ResponseProduct_h
12 #define __ResponseProduct_h
13 
14 #include "dsp/Response.h"
15 #include "Reference.h"
16 #include "Rational.h"
17 
18 namespace dsp {
19 
21 
28  class ResponseProduct: public Response {
29 
30  public:
31 
34 
37 
39  void match (const Observation* input, unsigned nchan);
40 
42  void match (const Response* response);
43 
46 
48  void set_copy_index (unsigned i);
49 
51  void set_match_index (unsigned i);
52 
53  protected:
54 
56  std::vector< Reference::To<Response> > response;
57 
59  bool component_changed;
60 
61  unsigned copy_index;
62  unsigned match_index;
63 
66 
68  void build ();
69 
70  };
71 
72 }
73 
74 #endif
bool component_changed
Flag set true when a component has changed.
Definition: ResponseProduct.h:69
void add_response(Response *response)
Add a response to the product.
Definition: ResponseProduct.C:47
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
Callback< Response > changed
Called when the Response has been changed.
Definition: Response.h:159
Describes a frequency (or impulse) response.
Definition: Response.h:34
unsigned nchan
Number of frequency divisions (channels)
Definition: Shape.h:115
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
void match(const Observation *input, unsigned nchan)
Create a product to match the input.
Definition: ResponseProduct.C:23
std::vector< Reference::To< Response > > response
The responses.
Definition: ResponseProduct.h:66
~ResponseProduct()
Destructor.
Definition: ResponseProduct.C:18
void set_copy_index(unsigned i)
Set the element that is copied.
Definition: ResponseProduct.C:60
void build()
The builder.
Definition: ResponseProduct.C:73
void set_match_index(unsigned i)
Set the element to which all others are matched.
Definition: ResponseProduct.C:66
ResponseProduct()
Default constructor.
Definition: ResponseProduct.C:12
void set_component_changed(const Response &response)
Called when a component has changed.
Definition: ResponseProduct.C:54

Generated using doxygen 1.8.17