CPSRFile.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2002 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/cpsr/dsp/CPSRFile.h
10 
11 
12 #ifndef __CPSRFile_h
13 #define __CPSRFile_h
14 
15 #include "dsp/File.h"
16 
17 namespace dsp {
18 
20  class CPSRFile : public File
21  {
22  public:
23 
25  CPSRFile (const char* filename = 0);
26 
28  virtual ~CPSRFile();
29 
31  bool is_valid (const char* filename) const;
32 
34  int tapenum;
35 
37  int filenum;
38 
39  protected:
41  virtual void open_file (const char* filename);
42 
43  };
44 
45 }
46 
47 #endif // !defined(__CPSRFile_h)
48 
int tapenum
The tape number.
Definition: CPSRFile.h:44
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
CPSRFile(const char *filename=0)
Construct and open file.
Definition: CPSRFile.C:30
virtual ~CPSRFile()
Virtual destructor.
Definition: CPSRFile.C:39
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 CPSR file.
Definition: CPSRFile.C:41
virtual void open_file(const char *filename)
Open the file.
Definition: CPSRFile.C:77
int filenum
The file number on tape.
Definition: CPSRFile.h:47

Generated using doxygen 1.8.17