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
16namespace Calibration
17{
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.set(_model); }
35
37 void set_filename (const std::string& _name) { filename = _name; }
38 const std::string& get_filename () const { return filename; }
39
41 void set_path (const std::string& _name) { path = _name; }
42 const std::string& get_path () const { return path; }
43
45 std::string make_reports_path (const std::string& subdir = "");
46
48 virtual void report ();
49
50 protected:
51
53 std::string path;
54
56 std::string filename;
57
60 };
61
62}
63
64#endif
65
Base class of objects that report on properties of the measurement equation.
Definition ReceptionModelReport.h:20
virtual void report()
Write the report.
Definition ReceptionModelReport.C:39
std::string filename
Filename to which the report is written.
Definition ReceptionModelReport.h:56
void set_model(ReceptionModel *_model)
Set the measurement equation on which to report.
Definition ReceptionModelReport.h:34
void set_filename(const std::string &_name)
Set the name of the file to which the report will be written.
Definition ReceptionModelReport.h:37
Reference::To< ReceptionModel, false > model
The measurement equation for which report is written.
Definition ReceptionModelReport.h:59
std::string path
Path to which reports are written.
Definition ReceptionModelReport.h:53
Report(const std::string &name)
Construct with filename.
Definition ReceptionModelReport.h:31
void set_path(const std::string &_name)
Set the root path to which reports will be written.
Definition ReceptionModelReport.h:41
virtual Report * clone() const =0
Return a new, copy-constructed clone of self.
virtual void report(std::ostream &)=0
Write the report.
std::string make_reports_path(const std::string &subdir="")
Create the reports directory and return the constructed path name.
Definition ReceptionModelReport.C:22
ReceptionModel()
null constructor
Definition ReceptionModel.C:20

Generated using doxygen 1.14.0