SigProcUnpacker.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2010 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/sigproc/dsp/SigProcUnpacker.h
10 
11 #ifndef __SigProcUnpacker_h
12 #define __SigProcUnpacker_h
13 
14 #include "dsp/HistUnpacker.h"
15 
16 namespace dsp
17 {
18 
20  class SigProcUnpacker : public Unpacker
21  {
22 
23  public:
24 
26  SigProcUnpacker (const char* name = "SigProcUnpacker");
27 
28  protected:
29 
31  virtual void unpack ();
32 
34  virtual bool get_order_supported (TimeSeries::Order) const;
35 
37  virtual void set_output_order (TimeSeries::Order);
38 
40  virtual bool matches (const Observation* observation);
41 
42  };
43 
44 }
45 
46 #endif // !defined(__SigProcUnpacker_h)
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
virtual bool get_order_supported(TimeSeries::Order) const
Return true; support any output order.
Definition: SigProcUnpacker.C:21
unsigned get_ndim() const
Return the dimension of each datum.
Definition: Observation.h:80
unsigned get_nbit() const
Return the number of bits per value.
Definition: Observation.h:95
std::string get_format() const
Return the format used to record signal.
Definition: Observation.h:199
Order
Order of the dimensions.
Definition: TimeSeries.h:39
std::string name
Operation name.
Definition: Operation.h:153
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
virtual void set_output_order(TimeSeries::Order)
Set the order of the dimensions in the output TimeSeries.
Definition: SigProcUnpacker.C:27
Abstract base class of Transformations that convert n-bit to float.
Definition: Unpacker.h:42
virtual void unpack()
The unpacking routine.
Definition: SigProcUnpacker.C:48
virtual bool matches(const Observation *observation)
Return true if we can convert the Observation.
Definition: SigProcUnpacker.C:32
SigProcUnpacker(const char *name="SigProcUnpacker")
Constructor.
Definition: SigProcUnpacker.C:16
std::string get_machine() const
Return the instrument used to record signal.
Definition: Observation.h:194
@ OrderFPT
Frequency, Polarization, Time (default before 3 October 2008)
Definition: TimeSeries.h:47
@ OrderTFP
Time, Frequency, Polarization (better for many things)
Definition: TimeSeries.h:50

Generated using doxygen 1.8.17