CbmRoot
Loading...
Searching...
No Matches
services/run_info/app/main.cxx
Go to the documentation of this file.
1/* Copyright (C) 2025 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Sergei Zharko [committer] */
4
9
10#include "Application.h"
11
12#include <iostream>
13
14using namespace cbm::services::run_info;
15
16int main(int argc, char* argv[])
17{
18 Application app;
19 try {
20 auto info = app.ParseOptions(argc, argv);
21 if (info.has_value()) {
22 app.Print(info.value());
23 }
24 }
25 catch (const std::exception& err) {
26 std::cerr << "Error: " << err.what() << std::endl;
27 return EXIT_FAILURE;
28 }
29
30 return EXIT_SUCCESS;
31}
Main class of the "cbmreco_fairrun" application.
The application class for the run_info service.
int main(int argc, char *argv[])