forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunO2MessageMonitor.cxx
More file actions
51 lines (45 loc) · 1.92 KB
/
runO2MessageMonitor.cxx
File metadata and controls
51 lines (45 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright CERN and copyright holders of ALICE O2. This software is
// distributed under the terms of the GNU General Public License v3 (GPL
// Version 3), copied verbatim in the file "COPYING".
//
// See http://alice-o2.web.cern.ch/license for full licensing information.
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
/// @copyright
/// © Copyright 2014 Copyright Holders of the ALICE O2 collaboration.
/// See https://aliceinfo.cern.ch/AliceO2 for details on the Copyright holders.
/// This software is distributed under the terms of the
/// GNU General Public License version 3 (GPL Version 3).
///
/// License text in a separate file.
///
/// In applying this license, CERN does not waive the privileges and immunities
/// granted to it by virtue of its status as an Intergovernmental Organization
/// or submit itself to any jurisdiction.
/// @file runO2MessageMonitor.h
///
/// @since 2014-12-10
/// @author M. Krzewicki <mkrzewic@cern.ch>
#include "runFairMQDevice.h"
#include "O2MessageMonitor/O2MessageMonitor.h"
namespace bpo = boost::program_options;
void addCustomOptions(bpo::options_description& options)
{
options.add_options()
("n",bpo::value<int>()->default_value(-1), "How many loops");
options.add_options()
("sleep",bpo::value<int>()->default_value(0), "sleep between loops in milliseconds");
options.add_options()
("limit",bpo::value<int>()->default_value(0), "limit output of payload to n characters");
options.add_options()
("payload",bpo::value<std::string>()->
default_value("I am the info payload"), "the info string in the payload");
options.add_options()
("name",bpo::value<std::string>()->default_value(""), "optional name in the header");
}
FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/)
{
return new O2MessageMonitor();
}