LBADR64_File.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 by Craig West & Aidan Hotan
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/lbadr64/dsp/LBADR64_File.h
10 
11 #ifndef __LBADR64_File_h
12 #define __LBADR64_File_h
13 
14 #include "environ.h"
15 
16 #include "dsp/File.h"
17 
18 namespace dsp {
19 
21  class LBADR64_File : public File
22  {
23  public:
24 
26  LBADR64_File (const char* filename = 0);
27 
29  ~LBADR64_File ();
30 
32  bool is_valid (const char *filename) const;
33 
34 
35  protected:
36 
38  void open_file (const char* filename);
39 
41  int64_t pad_bytes(unsigned char* buffer, int64_t bytes);
42 
43  private:
44 
46  char header[4096];
47 
48  };
49 }
50 
51 
52 #endif // __LBADR64_File_h
virtual void open(const std::string &id)
Prepare the appropriate Input and Unpacker.
Definition: IOManager.C:38
Produces TimeSeries data by integrating an Input with an Unpacker.
Definition: IOManager.h:26
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
static bool verbose
Verbosity flag.
Definition: Observation.h:39
void open_file(const char *filename)
Open the file.
Definition: LBADR64_File.C:70
LBADR64_File(const char *filename=0)
Construct and open file.
Definition: LBADR64_File.C:21
bool is_valid(const char *filename) const
Return true if filename contains data in the recognized format.
Definition: LBADR64_File.C:31
void set_output(TimeSeries *output)
Set the TimeSeries object used to store output data.
Definition: UnpackerSource.h:188
Loads BitSeries data from file.
Definition: File.h:38
virtual bool operate()
Call this method to operate on data Returns false on failure.
Definition: Operation.C:90
Arrays of consecutive samples for each polarization and frequency channel.
Definition: TimeSeries.h:29
~LBADR64_File()
Destructor.
Definition: LBADR64_File.C:26
Converts BitSeries data from two-bit digitized to floating-point values.
Definition: TwoBitCorrection.h:39
int64_t pad_bytes(unsigned char *buffer, int64_t bytes)
Pad over top of gaps in data.
Definition: LBADR64_File.C:164
const InputType * get_input() const
Return pointer to the appropriate InputType.
Definition: UnpackerSource.h:77
const UnpackerType * get_unpacker() const
Return pointer to the appropriate UnpackerType.
Definition: UnpackerSource.h:242
virtual void set_block_size(uint64_t _size)
Set the number of time samples to load on each load_block.
Definition: Input.C:399

Generated using doxygen 1.8.17