Project
Loading...
Searching...
No Matches
BoostOptionsRetriever.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11#ifndef FRAMEWORK_BOOSTOPTIONSRETRIEVER_H
12#define FRAMEWORK_BOOSTOPTIONSRETRIEVER_H
13
16
17#include <boost/property_tree/ptree_fwd.hpp>
18#include <memory>
19#include <vector>
20
21namespace boost
22{
23namespace program_options
24{
25class options_description;
26}
27} // namespace boost
28
29namespace o2::framework
30{
31
35{
36 public:
37 BoostOptionsRetriever(bool ignoreUnknown,
38 int argc, char** argv);
39 void update(std::vector<ConfigParamSpec> const& specs,
40 boost::property_tree::ptree& store,
41 boost::property_tree::ptree& provenance) override;
42
43 private:
44 std::unique_ptr<boost::program_options::options_description> mDescription;
45 int mArgc;
46 char** mArgv;
47 bool mIgnoreUnknown;
48};
49
50} // namespace o2::framework
51#endif // FRAMEWORK_BOOSTOPTIONSRETRIEVER_H
void update(std::vector< ConfigParamSpec > const &specs, boost::property_tree::ptree &store, boost::property_tree::ptree &provenance) override
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20