GUPPIFile.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2011 by Paul Demorest
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __GUPPIFile_h
10 #define __GUPPIFile_h
11 
12 #include "dsp/GUPPIBlockFile.h"
13 
14 namespace dsp {
15 
17  class GUPPIFile : public GUPPIBlockFile
18  {
19  public:
20 
22  GUPPIFile (const char* filename=0);
23 
25  ~GUPPIFile ();
26 
28  bool is_valid (const char* filename) const;
29 
31  void close ();
32 
33  protected:
34 
36  void open_file (const char* filename);
37 
39  int load_next_block ();
40 
42  int64_t seek_bytes (uint64_t bytes);
43 
45  uint64_t pos0;
46 
47  };
48 
49 }
50 
51 #endif // !defined(__GUPPIFile_h)
int load_next_block()
Load the next hdr/data block.
Definition: GUPPIFile.C:195
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
int64_t seek_bytes(uint64_t bytes)
Seek to a spot in the file.
Definition: GUPPIFile.C:222
void close()
Close the file, free memory.
Definition: GUPPIFile.C:240
Loads BitSeries data from GUPPI data blocks.
Definition: GUPPIBlockFile.h:27
void open_file(const char *filename)
Open the file.
Definition: GUPPIFile.C:126
virtual void close()
Close the file.
Definition: File.C:145
bool is_valid(const char *filename) const
Returns true if filename is a valid GUPPI file.
Definition: GUPPIFile.C:86
uint64_t pos0
The correct starting position in the file.
Definition: GUPPIFile.h:55
~GUPPIFile()
Destructor.
Definition: GUPPIFile.C:29
GUPPIFile(const char *filename=0)
Construct and open file
Definition: GUPPIFile.C:23

Generated using doxygen 1.8.17