SingleUnpacker.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2023 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __dsp_Kernel_Classes_SingleUnpacker_h
10 #define __dsp_Kernel_Classes_SingleUnpacker_h
11 
12 #include "dsp/ParallelUnpacker.h"
13 
14 namespace dsp {
15 
17  class SingleUnpacker : public ParallelUnpacker
18  {
19  public:
20 
23 
25  ~SingleUnpacker ();
26 
28  bool matches (const Observation* observation) const override;
29 
31  void match (const Observation* observation) override;
32 
34  void match_resolution (ParallelInput*) override;
35 
37  unsigned get_resolution () const override;
38 
39  protected:
40 
42  virtual void unpack () override;
43  };
44 
45 }
46 
47 #endif // !defined(__dsp_Kernel_Classes_SingleUnpacker_h)
void match_resolution(ParallelInput *) override
Match the unpackers to the resolution.
Definition: SingleUnpacker.C:38
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
SingleUnpacker()
Default constructor.
Definition: SingleUnpacker.C:12
unsigned get_resolution() const override
Return the smallest number of time samples that can be unpacked.
Definition: SingleUnpacker.C:43
Manages an array of Unpacker objects to be process in parallel.
Definition: ParallelUnpacker.h:28
Loads multiple parallel BitSeries data from multiple files.
Definition: ParallelInput.h:30
bool matches(const Observation *observation) const override
Return true if descriptor describes a file that can be opened.
Definition: SingleUnpacker.C:16
static Unpacker * create(const Observation *observation)
Return a pointer to a new instance of the appropriate sub-class.
Definition: Unpacker_create.C:13
~SingleUnpacker()
Destructor.
Definition: SingleUnpacker.C:14
void match(const Observation *observation) override
Specialize the unpackers for the Observation.
Definition: SingleUnpacker.C:26
virtual void unpack() override
The unpacking routine.
Definition: SingleUnpacker.C:33

Generated using doxygen 1.8.17