spda1k_File.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2009 by Aidan Hotan
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/spda1k/dsp/spda1k_File.h
10 
11 #ifndef __SPDA1K_File_h
12 #define __SPDA1K_File_h
13 
14 #include "environ.h"
15 
16 #include "dsp/File.h"
17 
18 namespace dsp {
19 
21  class SPDA1K_File : public File
22  {
23  public:
24 
26  SPDA1K_File (const char* filename = 0);
27 
29  ~SPDA1K_File ();
30 
32  bool is_valid (const char *filename) const;
33 
34 
35  protected:
36 
38  void open_file (const char* filename);
39 
41  int64_t pad_bytes(unsigned char* buffer, int64_t bytes);
42 
43  };
44 }
45 
46 
47 #endif // __SPDA1K_File_h
void open_file(const char *filename)
Open the file.
Definition: spda1k_File.C:44
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
Loads BitSeries data from file.
Definition: File.h:38
SPDA1K_File(const char *filename=0)
Construct and open file.
Definition: spda1k_File.C:24
bool is_valid(const char *filename) const
Return true if filename contains data in the recognized format.
Definition: spda1k_File.C:33
int64_t pad_bytes(unsigned char *buffer, int64_t bytes)
Pad over top of gaps in data.
Definition: spda1k_File.C:93
~SPDA1K_File()
Destructor.
Definition: spda1k_File.C:29

Generated using doxygen 1.8.17