DP3
ModelComponent.h
Go to the documentation of this file.
1 // ModelComponent.h: Base class for model components.
2 //
3 // Copyright (C) 2020 ASTRON (Netherlands Institute for Radio Astronomy)
4 // SPDX-License-Identifier: GPL-3.0-or-later
5 
6 #ifndef DPPP_MODELCOMPONENT_H
7 #define DPPP_MODELCOMPONENT_H
8 
9 #include <memory>
10 
11 namespace dp3 {
12 namespace base {
13 
14 class ModelComponentVisitor;
15 struct Direction;
16 
18 
20 
22  public:
23  virtual ~ModelComponent() {}
24  virtual const Direction &direction() const = 0;
25  virtual void accept(ModelComponentVisitor &) const = 0;
26 };
27 
29 
30 } // namespace base
31 } // namespace dp3
32 
33 #endif
Base class for visitors that visit model component hierarchies.
Definition: ModelComponentVisitor.h:20
Base class for model components.
Definition: ModelComponent.h:21
virtual ~ModelComponent()
Definition: ModelComponent.h:23
virtual void accept(ModelComponentVisitor &) const =0
virtual const Direction & direction() const =0
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53
A direction on the celestial sphere.
Definition: Direction.h:15