ASPFile.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 __ASPFile_h
10 #define __ASPFile_h
11 
12 #include "dsp/BlockFile.h"
13 
14 namespace dsp {
15 
17  class ASPFile : public BlockFile
18  {
19  public:
20 
22  ASPFile (const char* filename=0, const char* headername=0);
23 
25  ~ASPFile ();
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(__ASPFile_h)
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
ASPFile(const char *filename=0, const char *headername=0)
Construct and open file
Definition: ASPFile.C:21
~ASPFile()
Destructor.
Definition: ASPFile.C:26
Loads BitSeries data from a file organized in blocks.
Definition: BlockFile.h:25
void open_file(const char *filename)
Open the file.
Definition: ASPFile.C:136
bool is_valid(const char *filename) const
Returns true if filename is a valid Mk5 file.
Definition: ASPFile.C:95
uint64_t skip_extra()
Skip (by seeking the file pointer) the next tailer and header.
Definition: ASPFile.C:202

Generated using doxygen 1.8.17