PuMaFile.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2003 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/puma/dsp/PuMaFile.h
10 
11 
12 #ifndef __dsp_PuMaFile_h
13 #define __dsp_PuMaFile_h
14 
15 #include "dsp/File.h"
16 
17 namespace dsp {
18 
20 
21  class PuMaFile : public File
22  {
23  public:
24 
26  PuMaFile (const char* filename = 0);
27 
29  ~PuMaFile ();
30 
32  bool is_valid (const char* filename) const;
33 
34  protected:
35 
37  void open_file (const char* filename);
38 
40  void parse (const void* hdr);
41 
42  private:
43 
45  void* header;
46 
47  };
48 
49 }
50 
51 #endif // !defined(__PuMaFile_h)
52 
PuMaFile(const char *filename=0)
Construct and open file.
Definition: PuMaFile.C:27
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
static bool verbose
Loads TimeSeries data from a PuMa data file.
Definition: PuMaFile.h:26
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: PuMaFile.C:87
~PuMaFile()
Destructor.
Definition: PuMaFile.C:45
bool is_valid(const char *filename) const
Returns true if filename appears to name a valid PuMa file.
Definition: PuMaFile.C:50
void parse(const void *hdr)
Set the Input::info attribute, given a loaded Header_type object.
Definition: PuMaFile.C:114

Generated using doxygen 1.8.17