LCOV - code coverage report
Current view: top level - ers/apps - ers_config.cxx (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 16 0
Test Date: 2026-10-11 15:05:20 Functions: 0.0 % 3 0

            Line data    Source code
       1              : /*
       2              :  * DUNE DAQ modification notice:
       3              :  * This file has been modified from the original ATLAS ers source for the DUNE DAQ project.
       4              :  * Fork baseline commit: 8267df82a4f6fe6bf02c4014923eba19eddc4614 (2020-04-14).
       5              :  * Renamed since fork: yes (from bin/config.cxx to apps/ers_config.cxx).
       6              :  *
       7              :  * Original copyright:
       8              :  * Copyright (C) 2001-2020 CERN for the benefit of the ATLAS collaboration.
       9              :  * Licensed under the Apache License, Version 2.0.
      10              :  */
      11              : 
      12              : /*
      13              :  *  config.cxx
      14              :  *
      15              :  *  Created by Serguei Kolos on 24.01.05.
      16              :  *  Copyright 2005 CERN. All rights reserved.
      17              :  *
      18              :  */
      19              : 
      20              : #include <ers/ers.hpp>
      21              : #include <string.h>
      22              : 
      23              : /** \file config.cxx
      24              :  * Prints current configuration of all ERS streams,
      25              :  * taking into account environment variables.
      26              :  */
      27              : 
      28              : void
      29            0 : print_description()
      30              : {
      31            0 :   std::cout << "Description:" << std::endl;
      32            0 :   std::cout << "\tPrints ERS streams configuration in the current shell." << std::endl;
      33            0 : }
      34              : 
      35              : void
      36            0 : print_usage()
      37              : {
      38            0 :   std::cout << "Usage: ers_pc [-h]|[--help]" << std::endl;
      39            0 :   std::cout << "Options/Arguments:" << std::endl;
      40            0 :   std::cout << "\t[-h]|[--help]\tprints this help screen." << std::endl;
      41            0 : }
      42              : 
      43              : int
      44            0 : main(int argc, char** argv)
      45              : {
      46            0 :   if (argc > 1) {
      47            0 :     if (!strcmp(argv[1], "--help") || !strcmp(argv[1], "-h")) {
      48            0 :       print_description();
      49              :     } else {
      50            0 :       print_usage();
      51              :     }
      52              :   } else {
      53            0 :     std::cout << ers::StreamManager::instance();
      54              :   }
      55            0 :   return 0;
      56              : }
        

Generated by: LCOV version 2.0-1