WAPPFile.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 __WAPPFile_h
10 #define __WAPPFile_h
11 
12 #include "dsp/File.h"
13 
14 
15 namespace dsp {
16 
17  class WAPPUnpacker;
18 
20  class WAPPFile : public File
21  {
22  public:
23 
25  WAPPFile (const char* filename=0);
26 
28  ~WAPPFile ();
29 
31  bool is_valid (const char* filename) const;
32 
33  protected:
34 
35  friend class WAPPUnpacker;
36 
38  void open_file (const char* filename);
39 
41  void* header;
42 
43  };
44 
45 }
46 
47 #endif // !defined(__WAPPFile_h)
void open_file(const char *filename)
Open the file.
Definition: WAPPFile.C:79
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
WAPPFile(const char *filename=0)
Construct and open file
Definition: WAPPFile.C:30
void * header
The header parser.
Definition: WAPPFile.h:46
Loads BitSeries data from file.
Definition: File.h:38
bool is_valid(const char *filename) const
Returns true if filename is a valid WAPP file.
Definition: WAPPFile.C:44
~WAPPFile()
Destructor.
Definition: WAPPFile.C:37
const std::string get_message() const
Simple 8-bit to float unpacker for the WAPP files.
Definition: WAPPUnpacker.h:24

Generated using doxygen 1.8.17