LCOV - code coverage report
Current view: top level - ers/apps - ers_config.cxx (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 17 0
Test Date: 2025-12-21 13:07:08 Functions: 0.0 % 3 0

            Line data    Source code
       1              : /*
       2              :  *  config.cxx
       3              :  *
       4              :  *  Created by Serguei Kolos on 24.01.05.
       5              :  *  Copyright 2005 CERN. All rights reserved.
       6              :  *
       7              :  */
       8              : 
       9              : #include <ers/ers.hpp>
      10              : #include <string.h>
      11              : 
      12              : /** \file config.cxx 
      13              :   * Prints current configuration of all ERS streams,
      14              :   * taking into account environment variables. 
      15              :   */
      16              : 
      17            0 : void print_description()
      18              : {
      19            0 :     std::cout << "Description:" << std::endl;
      20            0 :     std::cout << "\tPrints ERS streams configuration in the current shell." << std::endl;
      21            0 : }
      22              : 
      23            0 : void print_usage()
      24              : {
      25            0 :     std::cout << "Usage: ers_pc [-h]|[--help]" << std::endl;
      26            0 :     std::cout << "Options/Arguments:" << std::endl;
      27            0 :     std::cout << "\t[-h]|[--help]\tprints this help screen." << std::endl;
      28            0 : }
      29              : 
      30            0 : int main( int argc, char** argv )
      31              : {
      32            0 :     if ( argc > 1 )
      33              :     {
      34            0 :         if (     !strcmp( argv[1], "--help" )
      35            0 :               || !strcmp( argv[1], "-h" ) )
      36              :         {
      37            0 :             print_description();
      38              :         }
      39              :         else
      40              :         {
      41            0 :             print_usage();
      42              :         }
      43              :     }
      44              :     else
      45              :     {
      46            0 :         std::cout << ers::StreamManager::instance();
      47              :     }
      48            0 :     return 0; 
      49              : }
      50              : 
        

Generated by: LCOV version 2.0-1