SpigotFile.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/spigot/dsp/SpigotFile.h
10 
11 
12 #ifndef __dsp_SpigotFile_h
13 #define __dsp_SpigotFile_h
14 
15 #include "dsp/File.h"
16 
17 namespace dsp {
18 
20  class SpigotFile : public File
21  {
22 
23  public:
24 
26  SpigotFile (const char* filename = 0);
27 
29  ~SpigotFile ();
30 
32  bool is_valid (const char* filename) const;
33 
34  protected:
35 
37  void open_file (const char* filename);
38 
40  void parse (void* hdr);
41 
42  };
43 
44 }
45 
46 #endif // !defined(__SpigotFile_h)
47 
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h: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 Spigot file.
Definition: SpigotFile.C:35
void open_file(const char *filename)
Open the file.
Definition: SpigotFile.C:72
void parse(void *hdr)
Set the Input::info attribute, given a loaded Header_type object.
Definition: SpigotFile.C:111
~SpigotFile()
Destructor.
Definition: SpigotFile.C:30
SpigotFile(const char *filename=0)
Construct and open file.
Definition: SpigotFile.C:23

Generated using doxygen 1.8.17