GMRTFile.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2006 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __GMRTFile_h
10 #define __GMRTFile_h
11 
12 #include "dsp/BlockFile.h"
13 
14 namespace dsp {
15 
17  class GMRTFile : public BlockFile
18  {
19  public:
20 
22  GMRTFile (const char* filename=0, const char* headername=0);
23 
25  ~GMRTFile ();
26 
28  bool is_valid (const char* filename) const;
29 
30  protected:
31 
33  void open_file (const char* filename);
34 
35  uint64_t skip_extra ();
36 
37  };
38 
39 }
40 
41 #endif // !defined(__GMRTFile_h)
uint64_t skip_extra()
Skip (by seeking the file pointer) the next tailer and header.
Definition: GMRTFile.C:188
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
bool is_valid(const char *filename) const
Returns true if filename is a valid Mk5 file.
Definition: GMRTFile.C:100
Loads BitSeries data from a file organized in blocks.
Definition: BlockFile.h:25
GMRTFile(const char *filename=0, const char *headername=0)
Construct and open file
Definition: GMRTFile.C:26
~GMRTFile()
Destructor.
Definition: GMRTFile.C:31
void open_file(const char *filename)
Open the file.
Definition: GMRTFile.C:129

Generated using doxygen 1.8.17