DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
ers
apps
ers_config.cxx
Go to the documentation of this file.
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
27
28
void
print_description
()
29
{
30
std::cout <<
"Description:"
<< std::endl;
31
std::cout <<
"\tPrints ERS streams configuration in the current shell."
<< std::endl;
32
}
33
34
void
print_usage
()
35
{
36
std::cout <<
"Usage: ers_pc [-h]|[--help]"
<< std::endl;
37
std::cout <<
"Options/Arguments:"
<< std::endl;
38
std::cout <<
"\t[-h]|[--help]\tprints this help screen."
<< std::endl;
39
}
40
41
int
main
(
int
argc,
char
** argv )
42
{
43
if
( argc > 1 )
44
{
45
if
( !strcmp( argv[1],
"--help"
)
46
|| !strcmp( argv[1],
"-h"
) )
47
{
48
print_description
();
49
}
50
else
51
{
52
print_usage
();
53
}
54
}
55
else
56
{
57
std::cout <<
ers::StreamManager::instance
();
58
}
59
return
0;
60
}
61
ers::StreamManager::instance
static StreamManager & instance()
return the singleton
Definition
StreamManager.cpp:162
ers.hpp
main
int main(int argc, char **argv)
Definition
ers_config.cxx:41
print_description
void print_description()
Definition
ers_config.cxx:28
print_usage
void print_usage()
Definition
ers_config.cxx:34
Generated on
for DUNE-DAQ by
1.17.0