VDIFEightBitUnpacker.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2015 by Paul Demorest
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __VDIFEightBitUnpacker_h
10 #define __VDIFEightBitUnpacker_h
11 
12 #include "dsp/EightBitUnpacker.h"
13 
14 namespace dsp {
15 
17  class VDIFEightBitUnpacker : public EightBitUnpacker {
18 
19  public:
20 
22  VDIFEightBitUnpacker (const char* name = "VDIFEightBitUnpacker");
23 
24  protected:
25 
27  virtual bool matches (const Observation* observation);
28 
29  };
30 
31 }
32 
33 #endif // !defined(__VDIFEightBitUnpacker_h)
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
Converts 8-bit digitised samples to floating point.
Definition: EightBitUnpacker.h:24
unsigned get_nbit() const
Return the number of bits per value.
Definition: Observation.h:95
VDIFEightBitUnpacker(const char *name="VDIFEightBitUnpacker")
Constructor.
Definition: VDIFEightBitUnpacker.C:14
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
virtual bool matches(const Observation *observation)
Return true if we can convert the Observation.
Definition: VDIFEightBitUnpacker.C:20
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