DP3
VdsDesc.h
Go to the documentation of this file.
1 // VdsDesc.h: Describe an entire visibility data set
2 //
3 // Copyright (C) 2020 ASTRON (Netherlands Institute for Radio Astronomy)
4 // SPDX-License-Identifier: GPL-3.0-or-later
5 
9 
10 #ifndef LOFAR_LMWCOMMON_VDSDESC_H
11 #define LOFAR_LMWCOMMON_VDSDESC_H
12 
13 #include "VdsPartDesc.h"
14 
15 #include <casacore/casa/Utilities/Regex.h>
16 
17 namespace dp3 {
18 namespace common {
19 
22 
33 
34 class VdsDesc {
35  public:
38  explicit VdsDesc(const VdsPartDesc& = VdsPartDesc());
39 
42  explicit VdsDesc(const std::string& parsetName);
43  explicit VdsDesc(const ParameterSet& parset) { init(parset); }
45 
47  void addPart(const VdsPartDesc& part) { itsParts.push_back(part); }
48 
50  const std::vector<VdsPartDesc>& getParts() const { return itsParts; }
51 
53  const VdsPartDesc& getDesc() const { return itsDesc; }
54 
58  void setDesc(const VdsPartDesc& desc) { itsDesc = desc; }
59 
61  void write(std::ostream& os) const;
62 
63  private:
65  void init(const ParameterSet& parset);
66 
67  VdsPartDesc itsDesc;
68  std::vector<VdsPartDesc> itsParts;
69 };
70 
71 } // namespace common
72 } // namespace dp3
73 
74 #endif
Description of a visibility data set or part thereof.
Implements a map of Key-Value pairs.
Definition: ParameterSet.h:31
Describe an entire visibility data set.
Definition: VdsDesc.h:34
void addPart(const VdsPartDesc &part)
Add a part.
Definition: VdsDesc.h:47
void write(std::ostream &os) const
Write it in parset format.
const VdsPartDesc & getDesc() const
Get the description of the VDS.
Definition: VdsDesc.h:53
VdsDesc(const VdsPartDesc &=VdsPartDesc())
VdsDesc(const std::string &parsetName)
const std::vector< VdsPartDesc > & getParts() const
Get the description of the parts.
Definition: VdsDesc.h:50
void setDesc(const VdsPartDesc &desc)
Definition: VdsDesc.h:58
VdsDesc(const ParameterSet &parset)
Definition: VdsDesc.h:43
Description of a visibility data set or part thereof.
Definition: VdsPartDesc.h:39
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53