Project
Loading...
Searching...
No Matches
FairOptionsRetriever.cxx
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.
13#include "PropertyTreeHelpers.h"
14
15#include <fairmq/ProgOptions.h>
16#include <boost/program_options.hpp>
17#include <boost/property_tree/ptree.hpp>
18#include <string>
19#include <vector>
20
21using namespace o2::framework;
22namespace bpo = boost::program_options;
23namespace bpt = boost::property_tree;
24
25namespace o2::framework
26{
27
28void FairOptionsRetriever::update(std::vector<ConfigParamSpec> const& schema,
29 boost::property_tree::ptree& store,
30 boost::property_tree::ptree& provenance)
31{
32 PropertyTreeHelpers::populate(schema, store, mOpts->GetVarMap(), provenance);
33}
34
35} // namespace o2::framework
void update(std::vector< ConfigParamSpec > const &schema, boost::property_tree::ptree &store, boost::property_tree::ptree &provenance) override
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
static void populate(std::vector< ConfigParamSpec > const &schema, boost::property_tree::ptree &tree, boost::program_options::variables_map const &vmap, boost::property_tree::ptree &provenance)