Skip to content
Snippets Groups Projects
Select Git revision
  • 491c285324ccee99ddaa3883d2e61690d6a0fc89
  • master default protected
  • L2SS-1914-fix_job_dispatch
  • TMSS-3170
  • TMSS-3167
  • TMSS-3161
  • TMSS-3158-Front-End-Only-Allow-Changing-Again
  • TMSS-3133
  • TMSS-3319-Fix-Templates
  • test-fix-deploy
  • TMSS-3134
  • TMSS-2872
  • defer-state
  • add-custom-monitoring-points
  • TMSS-3101-Front-End-Only
  • TMSS-984-choices
  • SDC-1400-Front-End-Only
  • TMSS-3079-PII
  • TMSS-2936
  • check-for-max-244-subbands
  • TMSS-2927---Front-End-Only-PXII
  • Before-Remove-TMSS
  • LOFAR-Release-4_4_318 protected
  • LOFAR-Release-4_4_317 protected
  • LOFAR-Release-4_4_316 protected
  • LOFAR-Release-4_4_315 protected
  • LOFAR-Release-4_4_314 protected
  • LOFAR-Release-4_4_313 protected
  • LOFAR-Release-4_4_312 protected
  • LOFAR-Release-4_4_311 protected
  • LOFAR-Release-4_4_310 protected
  • LOFAR-Release-4_4_309 protected
  • LOFAR-Release-4_4_308 protected
  • LOFAR-Release-4_4_307 protected
  • LOFAR-Release-4_4_306 protected
  • LOFAR-Release-4_4_304 protected
  • LOFAR-Release-4_4_303 protected
  • LOFAR-Release-4_4_302 protected
  • LOFAR-Release-4_4_301 protected
  • LOFAR-Release-4_4_300 protected
  • LOFAR-Release-4_4_299 protected
41 results

FinalMetaData.h

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