DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ers_config.cxx
Go to the documentation of this file.
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
18{
19 std::cout << "Description:" << std::endl;
20 std::cout << "\tPrints ERS streams configuration in the current shell." << std::endl;
21}
22
24{
25 std::cout << "Usage: ers_pc [-h]|[--help]" << std::endl;
26 std::cout << "Options/Arguments:" << std::endl;
27 std::cout << "\t[-h]|[--help]\tprints this help screen." << std::endl;
28}
29
30int main( int argc, char** argv )
31{
32 if ( argc > 1 )
33 {
34 if ( !strcmp( argv[1], "--help" )
35 || !strcmp( argv[1], "-h" ) )
36 {
38 }
39 else
40 {
42 }
43 }
44 else
45 {
46 std::cout << ers::StreamManager::instance();
47 }
48 return 0;
49}
50
static StreamManager & instance()
return the singleton
int main(int argc, char **argv)
void print_description()
void print_usage()