Skip to content
Snippets Groups Projects
Select Git revision
  • 330cd978893604ff61a007bc84f4a05e6680655f
  • master default protected
  • refactor-control-power-properties
  • L2SS-2199-apply-dab-to-xy
  • stop-using-mesh-gateway
  • set_hba_element_power
  • test-pytango-10.0.3
  • revert-cs032-ccd-ip
  • deploy-components-parallel
  • fix-chrony-exporter
  • L2SS-2407-swap-iers-caltable-monitoring-port
  • L2SS-2357-fix-ruff
  • sync-up-with-meta-pypcc
  • stabilise-landing-page
  • all-stations-lofar2
  • v0.39.7-backports
  • Move-sdptr-to-v1.5.0
  • fix-build-ubuntu
  • tokens-in-env-files
  • fix-build
  • L2SS-2214-deploy-cdb
  • v0.52.8 protected
  • v0.52.7 protected
  • v0.55.5-r2 protected
  • v0.52.8-rc1 protected
  • v0.55.5 protected
  • v0.55.4 protected
  • 0.55.2.dev0
  • 0.55.1.dev0
  • 0.55.0.dev0
  • v0.54.0 protected
  • 0.53.2.dev0
  • 0.53.1.dev0
  • v0.52.3-r2 protected
  • remove-snmp-client
  • v0.52.3 protected
  • v0.52.3dev0 protected
  • 0.53.1dev0
  • v0.52.2-rc3 protected
  • v0.52.2-rc2 protected
  • v0.52.2-rc1 protected
41 results

overview.rst

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    FinalMetaData.h 1.24 KiB
    #ifndef LOFAR_INTERFACE_FINAL_METADATA_H
    #define LOFAR_INTERFACE_FINAL_METADATA_H
    
    #include <Stream/Stream.h>
    #include <string>
    #include <vector>
    #include <cstddef>
    #include <ostream>
    
    namespace LOFAR
    {
      namespace RTCP
      {
    
        class FinalMetaData
        {
        public:
          struct BrokenRCU {
            std::string station; // CS001, etc
            std::string type;  // RCU, LBA, HBA
            size_t seqnr;      // RCU/antenna number
            std::string time;  // date time of break
    
            BrokenRCU()
            {
            }
            BrokenRCU(const std::string &station, const std::string &type, size_t seqnr, const std::string &time) :
              station(station), type(type), seqnr(seqnr), time(time)
            {
            }
    
            bool operator==(const BrokenRCU &other) const
            {
              return station == other.station && type == other.type && seqnr == other.seqnr && time == other.time;
            }
          };
    
          std::vector<BrokenRCU>  brokenRCUsAtBegin, brokenRCUsDuring;
    
          void write(Stream &s);
          void read(Stream &s);
        };
    
        std::ostream& operator<<(std::ostream& os, const struct FinalMetaData::BrokenRCU &rcu);
    
        std::ostream& operator<<(std::ostream& os, const FinalMetaData &finalMetaData);
    
      } // namespace RTCP
    } // namespace LOFAR
    
    #endif