PuMa2File.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2005 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/puma2/dsp/PuMa2File.h
10 
11 
12 #ifndef __PuMa2File_h
13 #define __PuMa2File_h
14 
15 #include "dsp/File.h"
16 
17 namespace dsp {
18 
20  class PuMa2File : public File
21  {
22 
23  public:
24 
26  PuMa2File (const char* filename=0);
27 
29  bool is_valid (const char* filename) const;
30 
32  static bool want_to_check_bocf;
33 
34  protected:
35 
37  virtual void open_file (const char* filename);
38 
40  static std::string get_header (const char* filename);
41 
42  };
43 
44 }
45 
46 #endif // !defined(__PuMa2File_h)
47 
static bool want_to_check_bocf
Set this to 'false' if you don't need to check bocf.
Definition: PuMa2File.h:42
PuMa2File(const char *filename=0)
Construct and open file.
Definition: PuMa2File.C:27
static std::string get_header(const char *filename)
Read the PuMa2 ascii header from filename.
Definition: PuMa2File.C:34
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
General means of constructing Observation attributes from PuMa2 data.
Definition: PuMa2_Observation.h:29
Loads BitSeries data from file.
Definition: File.h:38
virtual void open(const char *filename)
Open the file.
Definition: File.C:120
uint64_t get_offset_bytes() const
Get the number of bytes offset from the beginning of acquisition.
Definition: ASCIIObservation.h:55
bool is_valid(const char *filename) const
Returns true if filename appears to name a valid PuMa2 file.
Definition: PuMa2File.C:47
virtual void open_file(const char *filename)
Open the file.
Definition: PuMa2File.C:70
const float version
The baseband/dsp version number.
Definition: dsp.C:19

Generated using doxygen 1.8.17