DADAOutputFile.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2024 by Andrew Jameson & Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Classes/dsp/DADAOutputFile.h
10 
11 #ifndef __dsp_DADAOutputFile_h
12 #define __dsp_DADAOutputFile_h
13 
14 #include "dsp/OutputFile.h"
15 #include "dsp/DADAHeader.h"
16 
17 namespace dsp {
18 
23  class DADAOutputFile : public OutputFile
24  {
25  public:
26 
32  DADAOutputFile(const std::string& filename);
33 
38  DADAHeader* get_header () { return &dada_header; }
39 
40  protected:
41 
46  void write_header();
47 
53  std::string get_extension() const;
54 
56  DADAHeader dada_header;
57  };
58 
59 } // namespace dsp
60 
61 #endif // !defined(__DADAOutputFile_h)
DADAHeader dada_header
Manages the ASCII header that will be written to the start of each file.
Definition: DADAOutputFile.h:66
std::string get_extension() const
Get the extension to be added to the end of new filenames.
Definition: DADAOutputFile.C:20
DADAOutputFile(const std::string &filename)
Construct a new DADAOutputFile object, opening the file for writing.
Definition: DADAOutputFile.C:14
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
virtual void set_machine(const std::string &_m)
Set the instrument used to record signal.
Definition: Observation.h:192
Pure virtual base class of all objects that can unload BitSeries data.
Definition: OutputFile.h:30
std::string output_filename
The name of the output file.
Definition: OutputFile.h:59
void write_header()
Write the input BitSeries header to the open file, via dsp::ASCIIObservation::unload.
Definition: DADAOutputFile.C:25
void unload(char *header)
Write an ASCII header block.
Definition: ASCIIObservation.C:563
DADAHeader * get_header()
Get the DADA header manager.
Definition: DADAOutputFile.h:48
Parses Observation attributes from an ASCII header.
Definition: ASCIIObservation.h:29

Generated using doxygen 1.8.17