GMRTUnpacker.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2006 by Jayanta Roy and Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/gmrt/dsp/GMRTUnpacker.h
10 
11 #ifndef __GMRTUnpacker_h
12 #define __GMRTUnpacker_h
13 
14 #include "dsp/EightBitUnpacker.h"
15 
16 namespace dsp {
17 
19  class GMRTUnpacker : public EightBitUnpacker {
20 
21  public:
22 
24  GMRTUnpacker (const char* name = "GMRTUnpacker");
25 
26  protected:
27 
29  virtual bool matches (const Observation* observation);
30 
31  };
32 
33 }
34 
35 #endif // !defined(__GMRTUnpacker_h)
virtual bool matches(const Observation *observation)
Return true if we can convert the Observation.
Definition: GMRTUnpacker.C:20
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
Converts 8-bit digitised samples to floating point.
Definition: EightBitUnpacker.h:24
GMRTUnpacker(const char *name="GMRTUnpacker")
Constructor.
Definition: GMRTUnpacker.C:14
unsigned get_nbit() const
Return the number of bits per value.
Definition: Observation.h:95
std::string name
Operation name.
Definition: Operation.h:153
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
Look-up table for converting N-bit digitized to floating point numbers.
Definition: BitTable.h:22
void set_table(BitTable *table)
Set the digitisation convention.
Definition: BitUnpacker.C:35
std::string get_machine() const
Return the instrument used to record signal.
Definition: Observation.h:194

Generated using doxygen 1.8.17