SigProcFile.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/sigproc/dsp/SigProcFile.h
10 
11 
12 #ifndef __SigProcFile_h
13 #define __SigProcFile_h
14 
15 #include "dsp/File.h"
16 
17 namespace dsp {
18 
20  class SigProcFile : public File
21  {
22 
23  public:
24 
26  SigProcFile (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(__SigProcFile_h)
47 
Parses Observation attributes from a SigProc header.
Definition: SigProcObservation.h:24
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
Loads BitSeries data from file.
Definition: File.h:38
static std::string get_header(const char *filename)
Read the SigProc ascii header from filename.
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 SigProc file.
Definition: SigProcFile.C:22
virtual void open_file(const char *filename)
Open the file.
Definition: SigProcFile.C:28
static bool want_to_check_bocf
Set this to 'false' if you don't need to check bocf.
Definition: SigProcFile.h:42
SigProcFile(const char *filename=0)
Construct and open file.
Definition: SigProcFile.C:16

Generated using doxygen 1.8.17