File: tfpagecontroller.h

package info (click to toggle)
aoflagger 3.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,000 kB
  • sloc: cpp: 67,891; python: 497; sh: 242; makefile: 22
file content (29 lines) | stat: -rw-r--r-- 785 bytes parent folder | download | duplicates (2)
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
#ifndef TF_PAGE_CONTROLLER_H
#define TF_PAGE_CONTROLLER_H

#include <utility>
#include <vector>

#include "heatmappagecontroller.h"

class TFPageController : public HeatMapPageController {
 public:
  TFPageController();

  void SetStatistics(const StatisticsCollection* statCollection,
                     const std::vector<class AntennaInfo>&) override final {
    _statCollection = statCollection;
    UpdateImage();
  }
  void CloseStatistics() override final { _statCollection = nullptr; }
  bool HasStatistics() const { return _statCollection != nullptr; }

 protected:
  std::pair<TimeFrequencyData, TimeFrequencyMetaDataCPtr> constructImage(
      QualityTablesFormatter::StatisticKind kind) final override;

 private:
  const StatisticsCollection* _statCollection;
};

#endif