ReceptionModelReport.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2012 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Polarimetry/Pulsar/ReceptionModelReport.h
10 
11 #ifndef __ReceptionModelReport_H
12 #define __ReceptionModelReport_H
13 
14 #include "Pulsar/ReceptionModel.h"
15 
16 namespace Calibration
17 {
19  class ReceptionModel::Report : public Reference::Able
20  {
21 
22  public:
23 
25  virtual Report* clone () const = 0;
26 
28  virtual void report (std::ostream&) = 0;
29 
31  Report (const std::string& name) { filename = name; }
32 
34  void set_model (ReceptionModel* _model) { model = _model; }
35 
37  void set_filename (const std::string& _name) { filename = _name; }
38  const std::string& get_filename () const { return filename; }
39 
41  void report ();
42 
43  protected:
44 
46  std::string filename;
47 
50 
51  };
52 
53 }
54 
55 #endif
56 
Reference::To< ReceptionModel, false > model
The measurement equation to be solved.
Definition: ReceptionModelReport.h:59
std::string filename
Filename to which the report will be written.
Definition: ReceptionModelReport.h:56
void report()
Write the report.
Definition: ReceptionModelReport.C:14
ReceptionModel()
null constructor
Definition: ReceptionModel.C:19
virtual Report * clone() const =0
Return a new, copy-constructed clone of self.
Report(const std::string &name)
Construct with filename.
Definition: ReceptionModelReport.h:41
void set_model(ReceptionModel *_model)
Set the measurement equation on which to report.
Definition: ReceptionModelReport.h:44
void set_filename(const std::string &_name)
Set the name of the file to which the report will be written.
Definition: ReceptionModelReport.h:47

Generated using doxygen 1.8.17