DP3
ModelComponentVisitor.h
Go to the documentation of this file.
1 // ModelComponentVisitor.h: Base class for visitors that visit model component
2 // hierarchies.
3 //
4 // Copyright (C) 2020 ASTRON (Netherlands Institute for Radio Astronomy)
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 
7 #ifndef DPPP_MODELCOMPONENTVISITOR_H
8 #define DPPP_MODELCOMPONENTVISITOR_H
9 
10 namespace dp3 {
11 namespace base {
12 
13 class PointSource;
14 class GaussianSource;
15 
17 
19 
21  public:
23 
24  virtual void visit(const PointSource&) = 0;
25  virtual void visit(const GaussianSource&) = 0;
26 };
27 
29 
30 } // namespace base
31 } // namespace dp3
32 
33 #endif
Gaussian source model component.
Definition: GaussianSource.h:18
Base class for visitors that visit model component hierarchies.
Definition: ModelComponentVisitor.h:20
virtual ~ModelComponentVisitor()
Definition: ModelComponentVisitor.h:22
virtual void visit(const PointSource &)=0
virtual void visit(const GaussianSource &)=0
Point source model component with optional spectral index and rotation measure.
Definition: PointSource.h:26
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53