316 __debug_abort_on_wrong_size_<CLBCommonHeader>(40);
317 __debug_abort_on_wrong_size_<DAQCommonHeader>(56);
318 __debug_abort_on_wrong_size_<UTCTime>(8);
325 po::options_description desc(
"Options");
327 (
"help,h",
"Print this help and exit.")
328 (
"version,v",
"Print the version and exit.")
329 (
"optical,o",
"Set the optical mode.")
330 (
"acoustic,a",
"Set the acoustic mode.")
332 po::value<std::string>(&server)->default_value(server),
333 "Set the address of the SM server.")
335 po::value<std::string>(&logger)->default_value(logger),
336 "Set the address of the logger server.")
338 po::value<std::string>(&client_name)->default_value(client_name),
339 "Set the address of the client name.")
341 po::value<int>(&debug)->default_value(debug),
342 "Set the debug level.");
344 bool acou =
false, opto =
false;
348 po::variables_map vm;
350 po::command_line_parser(argc, argv).
options(desc).run(),
353 if (vm.count(
"help"))
355 std::cout << desc << std::endl;
359 if (vm.count(
"version"))
367 opto = vm.count(
"optical");
369 acou = vm.count(
"acoustic");
371 if (! (acou || opto))
373 throw std::runtime_error(
"FATAL: no mode specified. Use -o, -a or both. See the help.");
376 catch (
const po::error& e)
378 std::cerr <<
"DataQueue: Error: " << e.what() <<
'\n'
379 << desc << std::endl;
382 catch (
const std::runtime_error& e)
384 std::cerr <<
"DataQueue: Error: " << e.what() <<
'\n'
385 << desc << std::endl;
405 dqueue.setClockInterval(30*1000*1000);
void initLogger(JLOGGER::JMessageLoggerThreadSafe const &second)
then set_variable DIR else fatal Wrong number of arguments fi for INPUT_FILE in ls rt $DIR stage * log
Message logging based on ControlHost.
then usage $script[port]< option > nPossible options
void store(const std::string &file_name, const JDetector &detector)
Store detector to output file.
static InBufferCollector & getCollector()
Thread-safe message logger.