File: indexableset.h

package info (click to toggle)
aoflagger 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,476 kB
  • sloc: cpp: 51,868; python: 152; sh: 25; makefile: 17
file content (40 lines) | stat: -rw-r--r-- 1,227 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef INDEXABLE_SET_H
#define INDEXABLE_SET_H

#include "imageset.h"

#include "../../msio/baselinereader.h"

#include <memory>
#include <string>

namespace rfiStrategy
{
	class IndexableSet : public ImageSet
	{
	public:
		virtual BaselineReaderPtr Reader() const = 0;
		virtual size_t GetAntenna1(const ImageSetIndex &index) const = 0;
		virtual size_t GetAntenna2(const ImageSetIndex &index) const = 0;
		virtual size_t GetBand(const ImageSetIndex &index) const = 0;
		virtual size_t GetField(const ImageSetIndex &index) const = 0;
		virtual size_t GetSequenceId(const ImageSetIndex &index) const = 0;
		virtual size_t AntennaCount() const = 0;
		virtual AntennaInfo GetAntennaInfo(unsigned antennaIndex) const = 0;
		virtual size_t BandCount() const = 0;
		virtual BandInfo GetBandInfo(unsigned bandIndex) const = 0;
		virtual size_t SequenceCount() const = 0;
		virtual ImageSetIndex Index(size_t antenna1, size_t antenna2, size_t bandIndex, size_t sequenceId) const = 0;
		virtual FieldInfo GetFieldInfo(unsigned fieldIndex) const = 0;

		virtual std::string TelescopeName() final override;
	};
}
	
inline std::string rfiStrategy::IndexableSet::TelescopeName()
{
	return Reader()->MetaData().TelescopeName();
}

#endif