S2File.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2002 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/s2/dsp/S2File.h
10 
11 
12 #ifndef __S2File_h
13 #define __S2File_h
14 
15 #include "dsp/File.h"
16 
17 namespace dsp {
18 
20 
21  class S2File : public File
22  {
23  public:
24 
26  S2File (const char* filename = 0);
27 
29  bool is_valid (const char* filename) const;
30 
31  protected:
33  void open_file (const char* filename);
34 
35  private:
36 
38  void load_S2info (const char* filename);
39 
41  typedef struct {
42  std::string source;
43  char telid;
44  double freq;
45  double calperiod;
46  std::string tapeid;
47  }S2_Extra_Hdr;
48 
49  S2_Extra_Hdr extra_hdr;
50 
51  };
52 
53 }
54 
55 #endif // !defined(__S2File_h)
56 
void open_file(const char *filename)
Open the file.
Definition: S2File.C:46
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
Loads BitSeries data from file.
Definition: File.h:38
virtual void open(const char *filename)
Open the file.
Definition: File.C:120
bool is_valid(const char *filename) const
Returns true if filename appears to name a valid S2 file.
Definition: S2File.C:29
S2File(const char *filename=0)
Construct and open file.
Definition: S2File.C:21

Generated using doxygen 1.8.17