BCPMFile.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 - 2011 by Haydon Knight and Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __dsp_BCPMFile_h
10 #define __dsp_BCPMFile_h
11 
12 #include "dsp/File.h"
13 
14 namespace dsp
15 {
17  class BCPMFile : public File
18  {
19 
20  public:
21 
23  BCPMFile (const char* filename = 0);
24 
26  bool is_valid (const char* filename) const;
27 
28  protected:
29 
31  void open_file (const char* filename);
32 
34  void bpp_chans (std::vector<int>& table,
35  double bw, int mb_start_addr, int mb_end_addr, int mb_start_brd, int mb_end_brd, int *cb_id, double *aib_los, float *dfb_sram_freqs, double rf_lo,
36  double& centre_frequency,
37  double& channel_bandwidth);
38 
40  virtual int64_t pad_bytes(unsigned char* buffer, int64_t bytes);
41 
42  friend class BCPMUnpacker;
43 
45  std::vector<int> chtab;
46  };
47 
48 }
49 
50 #endif // !defined(__BCPMFile_h)
51 
void bpp_chans(std::vector< int > &table, double bw, int mb_start_addr, int mb_end_addr, int mb_start_brd, int mb_end_brd, int *cb_id, double *aib_los, float *dfb_sram_freqs, double rf_lo, double &centre_frequency, double &channel_bandwidth)
Pulled out of sigproc.
Definition: BCPMFile.C:254
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
BCPMFile(const char *filename=0)
Construct and open file.
Definition: BCPMFile.C:33
Loads BitSeries data from file.
Definition: File.h:38
virtual void open(const char *filename)
Open the file.
Definition: File.C:120
void open_file(const char *filename)
Open the file.
Definition: BCPMFile.C:104
std::vector< int > chtab
This stores the ordering of the channels in a BCPM data file.
Definition: BCPMFile.h:55
bool is_valid(const char *filename) const
Returns true if filename appears to name a valid BCPM file.
Definition: BCPMFile.C:52
virtual int64_t pad_bytes(unsigned char *buffer, int64_t bytes)
Pads gaps in data. Untested.
Definition: BCPMFile.C:358

Generated using doxygen 1.8.17