Project
Loading...
Searching...
No Matches
CommonDriverServices.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.
11
15
16// Make sure we can use aggregated initialisers.
17#pragma GCC diagnostic push
18#pragma GCC diagnostic ignored "-Wpedantic"
19
20namespace o2::framework
21{
22
24{
25 std::vector<ServiceSpec> specs{
27 // Load plugins depending on the environment
28 std::vector<LoadablePlugin> loadableServices = {};
29 char* loadableServicesEnv = getenv("DPL_LOAD_DRIVER_SERVICES");
30 // String to define the services to load is:
31 //
32 // library1:name1,library2:name2,...
33 if (loadableServicesEnv) {
34 loadableServices = PluginManager::parsePluginSpecString(loadableServicesEnv);
35 PluginManager::loadFromPlugin<ServiceSpec, ServicePlugin>(loadableServices, specs);
36 }
37 return specs;
38}
39} // namespace o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
static std::vector< ServiceSpec > defaultServices()
static ServiceSpec configurationSpec()
static std::vector< LoadablePlugin > parsePluginSpecString(char const *str)
Parse a comma separated list of <library>:<plugin-name> plugin declarations.