VDIFnByteUnpacker.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2018 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/vdif/dsp/VDIFnByteUnpacker.h
10 
11 #ifndef __VDIFnByteUnpacker_h
12 #define __VDIFnByteUnpacker_h
13 
14 #include "dsp/Unpacker.h"
15 
16 namespace dsp
17 {
18 
20  class VDIFnByteUnpacker : public Unpacker
21  {
22 
23  public:
24 
26  VDIFnByteUnpacker (const char* name = "VDIFnByteUnpacker");
27 
28  protected:
29 
31  virtual void unpack ();
32 
34  virtual bool matches (const Observation* observation);
35 
36  unsigned get_output_ichan (unsigned idig) const;
37  unsigned get_output_ipol (unsigned idig) const;
38 
39 
40  };
41 
42 }
43 
44 #endif // !defined(__VDIFnByteUnpacker_h)
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
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 name
Operation name.
Definition: Operation.h:153
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
virtual bool matches(const Observation *observation)
Return true if we can convert the Observation.
Definition: VDIFnByteUnpacker.C:21
Abstract base class of Transformations that convert n-bit to float.
Definition: Unpacker.h:42
VDIFnByteUnpacker(const char *name="VDIFnByteUnpacker")
Constructor.
Definition: VDIFnByteUnpacker.C:16
virtual void unpack()
The unpacking routine.
Definition: VDIFnByteUnpacker.C:48
std::string get_machine() const
Return the instrument used to record signal.
Definition: Observation.h:194

Generated using doxygen 1.8.17