SMROFile.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 by Craig West
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/lbadr/dsp/SMROFile.h
10 
11 #ifndef __SMROFile_h
12 #define __SMROFile_h
13 
14 #include "environ.h"
15 
16 #include "dsp/File.h"
17 
18 namespace dsp {
19 
21  class SMROFile : public File
22  {
23  public:
24 
26  SMROFile (const char* filename = 0);
27 
29  ~SMROFile ();
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 
44  bool legacy;
45 
46  private:
47 
49  char header[4096];
50 
51  };
52 }
53 
54 
55 #endif // __SMROFile_h
bool is_valid(const char *filename) const
Return true if filename contains data in the recognized format.
Definition: SMROFile.C:38
int64_t pad_bytes(unsigned char *buffer, int64_t bytes)
Pad over top of gaps in data.
Definition: SMROFile.C:273
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
Loads BitSeries data from file.
Definition: File.h:38
void open_file(const char *filename)
Open the file.
Definition: SMROFile.C:80
SMROFile(const char *filename=0)
Construct and open file.
Definition: SMROFile.C:27
bool legacy
Legacy header format compatibility mode.
Definition: SMROFile.h:54
~SMROFile()
Destructor.
Definition: SMROFile.C:33

Generated using doxygen 1.8.17