GMRTBinaryFile.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2011 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/gmrt/dsp/GMRTBinaryFile.h
10 
11 
12 #ifndef __GMRTBinaryFile_h
13 #define __GMRTBinaryFile_h
14 
15 #include "dsp/File.h"
16 
17 namespace dsp {
18 
20  class GMRTBinaryFile : public File
21  {
22 
23  public:
24 
26  GMRTBinaryFile (const char* filename=0);
27 
29  bool is_valid (const char* filename) const;
30 
31  protected:
32 
34  virtual void open_file (const char* filename);
35 
37  static std::string get_header (const char* filename);
38 
39  };
40 
41 }
42 
43 #endif // !defined(__GMRTBinaryFile_h)
44 
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
GMRTBinaryFile(const char *filename=0)
Construct and open file.
Definition: GMRTBinaryFile.C: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 GMRTBinary file.
Definition: GMRTBinaryFile.C:45
static std::string get_header(const char *filename)
Read the ascii header from filename.hdr.
Definition: GMRTBinaryFile.C:24
virtual void open_file(const char *filename)
Open the file.
Definition: GMRTBinaryFile.C:72
const std::string get_message() const
void load(const char *header)
Read the ASCII header block.
Definition: ASCIIObservation.C:88
Parses Observation attributes from an ASCII header.
Definition: ASCIIObservation.h:29

Generated using doxygen 1.8.17