LCOV - code coverage report
Current view: top level - timing/src - OuroborosMuxDesign.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 15 0
Test Date: 2025-12-21 13:07:08 Functions: 0.0 % 5 0

            Line data    Source code
       1              : /**
       2              :  * @file OuroborosMuxDesign.cpp
       3              :  *
       4              :  * This is part of the DUNE DAQ Software Suite, copyright 2020.
       5              :  * Licensing/copyright details are in the COPYING file that you should have
       6              :  * received with this code.
       7              :  */
       8              : 
       9              : #include "timing/OuroborosMuxDesign.hpp"
      10              : 
      11              : #include <sstream>
      12              : #include <string>
      13              : 
      14              : namespace dunedaq::timing {
      15              : 
      16            0 : UHAL_REGISTER_DERIVED_NODE(OuroborosMuxDesign)
      17              : 
      18              : //-----------------------------------------------------------------------------
      19            0 : OuroborosMuxDesign::OuroborosMuxDesign(const uhal::Node& node)
      20              :   : TopDesignInterface(node)
      21              :   , MuxDesignInterface(node)
      22              :   , MasterDesignInterface(node)
      23              :   , MasterMuxDesign(node)
      24            0 :   , EndpointDesignInterface(node)
      25              : 
      26            0 : {}
      27              : //-----------------------------------------------------------------------------
      28              : 
      29              : //-----------------------------------------------------------------------------
      30            0 : OuroborosMuxDesign::~OuroborosMuxDesign()
      31            0 : {}
      32              : //-----------------------------------------------------------------------------
      33              : 
      34              : //-----------------------------------------------------------------------------
      35              : std::string
      36            0 : OuroborosMuxDesign::get_status(bool print_out) const
      37              : {
      38            0 :   std::stringstream status;
      39            0 :   status << get_io_node_plain()->get_pll_status();
      40            0 :   status << this->get_master_node_plain()->get_status();
      41            0 :   status << this->get_endpoint_node_plain(0)->get_status();
      42              :   // mux status
      43            0 :   if (print_out)
      44            0 :     TLOG() << status.str();
      45            0 :   return status.str();
      46            0 : }
      47              : //-----------------------------------------------------------------------------
      48              : 
      49              : //-----------------------------------------------------------------------------
      50              : // void
      51              : // OuroborosMuxDesign::get_info(opmonlib::InfoCollector& ci, int level) const
      52              : // { 
      53              : //   opmonlib::InfoCollector master_collector;
      54              : //   get_master_node_plain()->get_info(master_collector, level);
      55              : //   ci.add("master", master_collector);
      56              : 
      57              : //   opmonlib::InfoCollector hardware_collector;
      58              : //   get_io_node_plain()->get_info(hardware_collector, level);
      59              : //   ci.add("io", hardware_collector);
      60              : 
      61              : //   opmonlib::InfoCollector endpoint_collector;
      62              : //   this->get_endpoint_node_plain(0)->get_info(endpoint_collector, level);
      63              : //   ci.add("endpoint", endpoint_collector);
      64              : // }
      65              : //-----------------------------------------------------------------------------
      66              : } // namespace dunedaq::timing  
        

Generated by: LCOV version 2.0-1