DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ers_config.cxx File Reference
#include <ers/ers.hpp>
#include <string.h>
Include dependency graph for ers_config.cxx:

Go to the source code of this file.

Functions

void print_description ()
void print_usage ()
int main (int argc, char **argv)

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 44 of file ers_config.cxx.

45{
46 if (argc > 1) {
47 if (!strcmp(argv[1], "--help") || !strcmp(argv[1], "-h")) {
49 } else {
51 }
52 } else {
53 std::cout << ers::StreamManager::instance();
54 }
55 return 0;
56}
static StreamManager & instance()
return the singleton
void print_usage()
void print_description(std::ostream &s, const std::string &text, const char *dx)
Definition utils.cpp:65

◆ print_description()

void print_description ( )

Definition at line 29 of file ers_config.cxx.

30{
31 std::cout << "Description:" << std::endl;
32 std::cout << "\tPrints ERS streams configuration in the current shell." << std::endl;
33}

◆ print_usage()

void print_usage ( )

Definition at line 36 of file ers_config.cxx.

37{
38 std::cout << "Usage: ers_pc [-h]|[--help]" << std::endl;
39 std::cout << "Options/Arguments:" << std::endl;
40 std::cout << "\t[-h]|[--help]\tprints this help screen." << std::endl;
41}